-
Notifications
You must be signed in to change notification settings - Fork 100
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
No definition found when issuing "TernDef" command #45
Comments
isn't it |
Thank u @shawndumas . it's typo. I did use .tern-project. |
Can you show us an example of a file (plus the point where you're trying to get the definition) that fails? |
Thanks @marijnh . they are just two normal javascript files like foo.js and bar.js. In foo.js, there is a function fun1 that references fun2 defined in bar.js. When i am trying to jump to fun2 from fun1, i got "no definition found". I tested, it could jump to symbol definition correctly within one file, but didn't work across multiple files. I also added loadEagerly in .tern-project to load all the related javascript files, but still with no luck. |
Works for me. Which is why I asked you to provide the actual files. Here are mine: foo.js
bar.js
.tern-project
|
Hi @marijnh , I added a log in respond function of tern script and found that data returned is undefined which is supposed to be an object for above query. any suggestion to troubleshoot the problems? thanks |
Which version of Tern are you using? |
I am using tern 0.5.0 and my node version is v0.10.24 |
Hi All,
I installed this plugin as it's mentioned in the tutorial. (Using Vundle to load,running npm install in .vim/bundle/tern_for_vim/) and below is my .tern-project configuration file. but i got No definition error while running TernDef for a function inside a javascript file. Any ideas? Thanks in advance.
{
"libs": [
"browser",
"jquery",
"ecma5",
"underscore"
],
"plugins": {
"requirejs": {
"baseURL": "./",
"paths": {}
}
}
}
The text was updated successfully, but these errors were encountered: