Slava / tern-meteor

Autocompletion plugin for Meteor 1.0 (extending TernJS)

Home Page:https://www.youtube.com/watch?v=5cAHxpNEHTc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error trying to parse project

aadamsx opened this issue · comments

I get the following while trying to edit my project file:

Error trying to parse project: Expected value in ~/Meteors/test2/untitled.sublime-project:4:16

How do you expect anyone to help you if you don't show what is in the file causing problems?

Sorry friend. Basically I'm trying to get this set up in a new Meteor project. I'm new to Meteor and Sublime. So I open Sublime and try to start a new project... don't don't exactly what this means... I already have a dir with Meteor running... so I try to start something new hoping to just add the meteor files later... so I make a new dir and say save project and that works. So now I'm in the new project that only has *.sublime-project and *.sublime-workspace and I save the configuration setting you said to save in the *.sublime-project file and that's when the error above occurs...

Sorry again.

Again: what is the contents of the file causing error?

{
  "folders":
  [
           ... don't touch this part, leave it as it was ...
  ],
  // add this! ternjs object
  "ternjs": {
    "libs": ["browser", "underscore", "jquery"],
    "plugins": {
      "meteor": {}
    }
  }
}

I copied this into the *.sublime-project file and saved and that's when the error dialog pops up

You were not supposed to copy it as is. But rather intelligently look at the comments that tell you to leave the "folders" part as is and add the "ternjs" object to the json. Do all of that w/o mentioned comments.

Man I'm so dumb. Let me try that and report back.

Ok, so I got everything in place, but I don't see any autocompletion anything different. I'm not using a vim plugin or anything. Are there shortcut keys or something?

I installed the plugin, copied over the meteor.js file to the correct spot and copied over the project configuration as stated into an existing meteor project.

That should be enough for it to work.

@aadamsx if you know Eclipse, I suggest you to install tern.java with update site that you can find at https://github.com/angelozerr/tern.java/wiki/Installation-Update-Site

After that it's very easy to enable tern meteor plugin (just by checking it in an UI). See https://github.com/angelozerr/tern.java/wiki/Tern-&-Meteor-support

Just use this package for the ST3: https://github.com/Slava/tern-meteor-sublime