Slava / tern-meteor-sublime

Meteor Framework autocompletion for Sublime
246 stars 11 forks source link

sublime 3 hangs/crashes on js files outside of meteor project #4

Closed orangewise closed 9 years ago

orangewise commented 9 years ago

My sublime goes to non-responding when I open a file outside of a meteor project... Plugin works great inside meteor.

kevincharm commented 9 years ago

I believe I have the same issue. Are you getting the EMFILE (too many open files) error?

Slava commented 9 years ago

What would be an example of a path? I think I can debug this. The problem is probably in the fact that I traverse the parent directories looking for .meteor and at some point I just hit "access denied" or similar.

kevincharm commented 9 years ago

My working directory would be something like /Users/hellstad/dev/someproject Currently it throws the error on pretty much every file. screen shot 2015-03-15 at 10 10 04 pm

Slava commented 9 years ago

@hellstad are you opening a stand-alone JS file?

orangewise commented 9 years ago

@hellstad I do not get the EMFILE error, maybe I do not wait long enough :)

@Slava My sublime also 'hangs' when I open a single js file (outside of meteor)...

kevincharm commented 9 years ago

@Slava yeah standalone js files.

Slava commented 9 years ago

Thanks everyone for this report. I fixed it in the version 1.0.3 of this plugin. It soon should be available as an update on Package Control!

Not it is all smooth and steady :3

orangewise commented 9 years ago

Great job @Slava, problem solved!

kevincharm commented 9 years ago

Yep, no problems so far... thanks @Slava :)