SublimeLinter / SublimeLinter-flow

SublimeLinter plugin for JavaScript static type checking, using flow.
MIT License
116 stars 24 forks source link

Too many open files #63

Closed dantman closed 6 years ago

dantman commented 6 years ago

I'm trying to use flow with SublimeLinter and it's working.

However after awhile I get this error and have to restart sublime.

SublimeLinter: #219 flow UpdateHelpers.mjs ERROR:

 could not launch ['{app}/node_modules/.bin/flow', 'check-contents', '{app}/src/responsive-editor/js/store/template-helpers/UpdateHelpers.mjs', '--show-all-errors', '--json']
Reason: [Errno 24] Too many open files
PATH: /Users/daniel/.yarn/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/usr/local/MacGPG2/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/sbin:/usr/local/share/npm/bin:/Users/daniel/Library/Android/sdk/platform-tools

Is there a way to fix this?

kaste commented 6 years ago

How many threads are running at that time? How long does one lint job usually take?

Possible fix https://github.com/SublimeLinter/SublimeLinter/pull/1234 Related https://github.com/SublimeLinter/SublimeLinter/issues/1201

dantman commented 6 years ago
$ time yarn flow -- check-contents src/responsive-editor/js/store/template-helpers/UpdateHelpers.mjs --show-all-errors --json < src/responsive-editor/js/store/template-helpers/UpdateHelpers.mjs
...
✨  Done in 0.52s.

real    0m0.883s
user    0m0.480s
sys 0m0.088s

How do I check the thread count?

kaste commented 6 years ago

How do I check the thread count?

Each OS has its own program here. Doesn't need to be fancy. Maybe 'Process Monitor' / 'Task Monitor'.

You could check out https://github.com/SublimeLinter/SublimeLinter/pull/1234

nvtkaszpir commented 6 years ago

https://superuser.com/questions/433746/is-there-a-fix-for-the-too-many-open-files-in-system-error-on-os-x-10-7-1

kaste commented 6 years ago

Closing old issue without movement.