-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inference hangs on some files #16
Comments
|
It works for me now. Can you describe how you're running Tern when this happens? |
I’m running Tern on a project with 30 files. It happens when I’m requesting completions like so: https://github.com/sergeche/ternjs-sublime/blob/master/ternjs/js/controller.js#L205 Altho, it works fine on simple project with two files. I’ll try to narrow down my tests to figure out when this error appears. |
I'm seeing something similar: With one good sized file in its own directory (jquery-1.7.js, about 9300 lines) I add the following lines of code by hand (don't cut and paste all at once) about 2/3 of the way down the file: var x = "foo"; The time required for each succeeding hint increases from 700ms to 5800ms to 38900ms etc. All the time is spent in infer.js in the inferWrapper AST walk, but I don't know why. It might be the same problem you're seeing. |
@jeffkenton Are you using the current code? Some changes were made yesterday that should help with this. |
Not yet. I'll try it. Thanks. From: Marijn Haverbeke <notifications@github.commailto:notifications@github.com> @jeffkentonhttps://github.com/jeffkenton Are you using the current code? Some changes were made yesterday that should help with this. — |
Closing. Please file a new issue (with test case) when it comes up again. |
Thanks. From: Marijn Haverbeke <notifications@github.commailto:notifications@github.com> Closing. Please file a new issue (with test case) when it comes up again. — |
Example: http://underscorejs.org/underscore-min.js
The text was updated successfully, but these errors were encountered: