tern-meteor-sublime icon indicating copy to clipboard operation
tern-meteor-sublime copied to clipboard

ST3 unresponsive

Open karldanninger opened this issue 10 years ago • 11 comments

When I try to do 'jump to definition' on anything, Sublime just beach balls. I've tried small & large apps. Is there a way I can debug Sublime to give you a better idea of what is happening?

I'm using build 3083.

karldanninger avatar Apr 29 '15 18:04 karldanninger

This is .. very sad. To get an initial diagnose, see what is blocking: open an activity monitor and see if there is a node process running on 100% cpu or is it sublime. Also, you can open a console in sublime and try to observe logs. You can put logs into the python code if you open your local copy of the plugin.

Slava avatar Apr 29 '15 20:04 Slava

This is the case for me as well, it will hang Sublime Text 3 instantly on keydown.

A couple of node processes (I think four?) gets spawned and run @ 100%. And they won't die even if I force quit Sublime, so I need to force quit those as well.

krstffr avatar May 28 '15 13:05 krstffr

OK there are only two node processes being spawned, not four! Unless you do this twice. :)

krstffr avatar May 28 '15 13:05 krstffr

The first couple of times I try an autocompletion it times out on me as well but after a couple of those it seems to cache everything and the editor works fine.

steve-ross avatar Jun 30 '15 17:06 steve-ross

Since iv'e been using the Meteor Autocomplete package e get a timeout alert multiple times while writing code. It gets really annoying. This is what comes up in the SublimeText console when it happens:

screen shot 2015-07-01 at 10 22 05

Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 296, in on_selection_modified_async callback.on_selection_modified_async(v) File "/Users/elvismercado/Library/Application Support/Sublime Text 3/Packages/Meteor Autocomplete (TernJS)/tern.py", line 48, in on_selection_modified_async on_selection_modified(view) File "/Users/elvismercado/Library/Application Support/Sublime Text 3/Packages/Meteor Autocomplete (TernJS)/tern.py", line 28, in on_selection_modified if pfile is not None: show_argument_hints(pfile, view) File "/Users/elvismercado/Library/Application Support/Sublime Text 3/Packages/Meteor Autocomplete (TernJS)/tern.py", line 454, in show_argument_hints render_argument_hints(pfile, view, parsed, argpos) File "/Users/elvismercado/Library/Application Support/Sublime Text 3/Packages/Meteor Autocomplete (TernJS)/tern.py", line 469, in render_argument_hints msg = ftype["name"] + "(" KeyError: 'name'

elvismercado avatar Jul 01 '15 08:07 elvismercado

I mean, TernJS is a single-threaded server that does CPU-heavy work. I can't fix this. If this doesn't work for your project, don't use this plugin. This is as simple as this. I worked hard to get the features out, but fixing the performance problems in ternjs, is not something I will work on.

Slava avatar Jul 01 '15 08:07 Slava

Ok, now i understand. Thnx

elvismercado avatar Jul 01 '15 12:07 elvismercado

Did that temporary fix help? It works great for looking up function definitions (brilliantly, actually) -- but as soon as I start to type, beach ball.

newswim avatar Jul 24 '15 15:07 newswim

Same here, Time Out error

Kostanos avatar Oct 01 '15 12:10 Kostanos

I have a similiar problem, but mine would be solved if Tern would ignore one specific folder (which I believe is loaded into memory and stuff). How can I do this?

rikkuporta avatar Feb 12 '16 12:02 rikkuporta

Which folders you should exclude? I'm excluding (in project settings), it helps, but some time it still keep getting errors:

    "ternjs":
    {
        "exclude":
        [
            ".meteor/**",
            "node_modules/**",
            ".gagarin"
        ]
    }

Kostanos avatar Feb 12 '16 13:02 Kostanos