I just set up an ignore file to bypass all libs.  Still getting this error,
now on a different file:

  eslint:cli-engine Processing
chooser-frontend_trunk/chooser-frontend/public/t8/min/no_NO/t8-chooser.min.js
+12s
  eslint:cli-engine Linting
/home/jgourgou/Documents/workspace/netrepo/chooser-frontend_trunk/chooser-frontend/public/t8/min/no_NO/t8-chooser.min.js
+0ms
  eslint:cli-engine Processing
chooser-frontend_trunk/chooser-frontend/public/t8/min/zh_TW/t8-dateFormatter.min.js
+6s
  eslint:cli-engine Linting
/home/jgourgou/Documents/workspace/netrepo/chooser-frontend_trunk/chooser-frontend/public/t8/min/zh_TW/t8-dateFormatter.min.js
+0ms
FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory


Is there a way I can print out the size of the result object?

-Jim G


On Fri, Jan 30, 2015 at 2:28 PM, jim g <[email protected]> wrote:

> Looks like it's dying while trying to parse Highcharts.js:
>
>   eslint:cli-engine Processing
> chooser-frontend_trunk/chooser-frontend/public/scmp/lib/highcharts/2.3.3/highcharts.js
> +3s
>   eslint:cli-engine Linting
> /home/jgourgou/Documents/workspace/netrepo/chooser-frontend_trunk/chooser-frontend/public/scmp/lib/highcharts/2.3.3/highcharts.js
> +0ms
> FATAL ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory
>
> However, if I point it at that file specifically and singly:
>
> eslint -c ~/.eslintrc -f compact
>  
> /home/jgourgou/Documents/workspace/netrepo/chooser-frontend_trunk/chooser-frontend/public/scmp/lib/highcharts/2.3.3/highcharts.js
>
> ...it executes normally, finding 2637 problems, so I'm leaning towards
> your first hypothesis (result object growing too large).
>
> Thanks!
>
>
> On Wed, Jan 28, 2015 at 4:15 PM, Nicholas Zakas <
> [email protected]> wrote:
>
>> Oh wow, that's pretty big. :)
>>
>> Can you try running ESLint with some debug flags?
>>
>> $ DEBUG=eslint:cli-engine eslint .
>>
>> (replace eslint . with whatever you use normally)
>>
>> That should tell you the last file linted before the error occurs. Can
>> you see if there's anything special about that file (size, mostly).
>>
>> My two theories are:
>>
>> 1. It's the size of the result object growing too large.
>> 2. It's the size of the AST for an overly large file.
>>
>> So if you can get back with what the offending file looks like size-wise,
>> we can go from there.
>>
>>
>> On Wed, Jan 28, 2015 at 4:06 PM, Jim Gourgoutis <[email protected]> wrote:
>>
>>> Apologies.  Forgot to use the -L option on my find command.
>>>
>>> Number of (nested) subdirectories: 1063 (some of these are symlinks)
>>> Number of files: 5809
>>> No files over 685k
>>>
>>> -Jim G
>>>
>>>
>>> On Wednesday, January 28, 2015 at 3:40:20 PM UTC-8, Jim Gourgoutis wrote:
>>>>
>>>> I don't think this is a node issue, because JSHint works fine over the
>>>> same directories.
>>>>
>>>> Number of (nested) subdirectories: 37  (some of these are symlinks)
>>>> Number of files: 229
>>>> No files over 250k
>>>>
>>>> FWIW, I just updated to v0.13.0 and am still seeing this.
>>>>
>>>> Thanks!
>>>> -Jim G
>>>>
>>>>
>>>>
>>>> On Friday, January 23, 2015 at 11:03:10 AM UTC-8, Nicholas Zakas wrote:
>>>>>
>>>>> We don't have a known limit on number of files or file size, but
>>>>> Node.js itself does.
>>>>>
>>>>> From what I've read, the most likely cause is a single large file. Do
>>>>> you have any files that are larger than a megabyte or two?
>>>>>
>>>>> Are there any other statistics you can share about your project
>>>>> folder? Number of subdirectories or files?
>>>>>
>>>>> On Fri, Jan 23, 2015 at 9:57 AM, Jim Gourgoutis <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> It's this same issue.  https://github.com/eslint/eslint/issues/957
>>>>>>  FWIW I'm running v0.12.0 on an 8 core Linux box with 64G of memory.
>>>>>>
>>>>>> Thanks,
>>>>>> -Jim G
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Friday, January 23, 2015 at 9:54:20 AM UTC-8, Jim Gourgoutis wrote:
>>>>>>>
>>>>>>> When I throw ESLint at a large project folder, I'm getting "FATAL
>>>>>>> ERROR: CALL_AND_RETRY_2 Allocation failed - process out of memory" 
>>>>>>> errors.
>>>>>>> Does ESLint have a maximum number of files/errors it can handle?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> -Jim G
>>>>>>>
>>>>>>>  --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "ESLint" group.
>>>>>> To unsubscribe from this group and stop receiving emails from it,
>>>>>> send an email to [email protected].
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> ______________________________
>>>>> Nicholas C. Zakas
>>>>> @slicknet
>>>>>
>>>>> Author, Professional JavaScript for Web Developers
>>>>> Buy it at Amazon.com: http://www.amazon.com/Professional-JavaScript-
>>>>> Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3
>>>>>
>>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "ESLint" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>>
>> ______________________________
>> Nicholas C. Zakas
>> @slicknet
>>
>> Author, Professional JavaScript for Web Developers
>> Buy it at Amazon.com:
>> http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3
>>
>
>
>
> --
> jimg at yojimg dot net
>



-- 
jimg at yojimg dot net

-- 
You received this message because you are subscribed to the Google Groups 
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to