@chris here’s how I got it working
Install and update atom and then install https://github.com/tststs/atom-ternjs and https://github.com/atom-community/autocomplete-plus
Then download meteor.js
from https://github.com/Slava/tern-meteor and copy it over to ~/.atom/packages/atom-ternjs/node_modules/tern/plugin/
which holds all tern plugins.
Create a file called .tern-project
right within the root of your meteor project and paste in the following
{
"libs": [
"browser",
"jquery",
"underscore"
],
"loadEagerly": [ "*.js", "*/*.js", "*/*/*.js", "*/*/*/*.js" ],
"dontLoad": [ ".meteor" ],
"plugins": {
"complete_strings": {},
"meteor": {},
"doc_comment": {
"fullDocs": true
},
}
}
The atom-ternjs readme and http://ternjs.net/doc/manual.html#plugins are good sources of information.
Also, take note that there is an open and possibly unresolvable bug that causes tern-meteor plugin (the meteor.js
file) to get deleted whenever atom-ternjs gets an update so I sugggest you keep that file handy in order to be able to copy it over to the plugin folder after an update.
As a final note, you should restart atom for tern to pick up your changes. So if you’ve just created the .tern-project
file or you’ve updated it, or if you’ve copied over meteor.js
, just do quick restart.
If you don’t want to lose the state of your editor across restarts, https://atom.io/packages/save-session and https://atom.io/packages/remember-session are two nice alternatives that can help you with that.
And then go install webstorm and don’t listen to @lampe