Closed agauniyal closed 8 years ago
Have you a stack trace error? WHich version of ternjs do you use? If you are using 0.17.0, try to remove tern folder from the tern-node-express/node_modules/tern
Stack trace error from where? As far as I know it isn't producing any errors in sublime text's console or somewhere else I could notice. I have installed it both ways, globally as well as in project. which way should I check?
@agauniyal I had the same error and noticed the tern_for_sublime package uses 0.17.0. Removing the tern folder, like @angelozerr suggests gives me express completions
Thanks @dhensche for your answer. I have published 0.4.0 which is based on tern 0.17.0, It should work now without removing tern folder. I close this issue.
@dhensche do you mind sharing your steps to configure tern-node-express with sublime. Mine are:
{
"ecmaVersion": 5,
"plugins": {
"node": {},
"node-express": {}
}
}
Now open sublime, still dosen't works :/
@agauniyal you need to go into your tern_for_sublime installation directory (/Users/dhensche/Library/Application Support/Sublime Text 3/Packages/tern_for_sublime
) for me and run the npm install tern-node-express
there. The tern_for_sublime package starts up its own tern server and according to http://ternjs.net/doc/manual.html#plugin_third_party, this is one of the ways to install third party plugins
@dhensche this was it. Many thanks for your help :blush:
I'm using tern_for_sublime and tern is working perfectly but fails to provide suggestions for express specific code.