Skip to content
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

Installation into Linux Sublime Text 3 #7

Closed
pnunn opened this issue Feb 1, 2014 · 8 comments
Closed

Installation into Linux Sublime Text 3 #7

pnunn opened this issue Feb 1, 2014 · 8 comments

Comments

@pnunn
Copy link

pnunn commented Feb 1, 2014

Hi, I'm trying to follow the bouncing ball with Sublime Text 3 on Linux. I've installed the tern packages (both of them) using the package manager, but can find no trace of the location to put the .js file. Doing a search, the only mention of tern on the system is in ~/.config/sublime-text-3/Installed Packages but that is a binary package.

Ta.

Peter.

@Slava
Copy link
Owner

Slava commented Feb 1, 2014

Hi, @pnunn

indeed, it looks like Sublime Text 3 prefers installing binary packages and hacking on them is a little bit more difficult. The way I solved it on my ST3 is:

  • remove packages with Package Control
  • go to <SUBLIME>/Packages
  • checkout the package with git: git clone https://github.com/emmetio/sublime-tern.git
  • go inside and download meteor.js to plugin folder

Unfortunately, these are the actions I can propose. I don't know much about ST3, if someone can help and update the plugin or register a fork plugin, that would be great.

@Slava
Copy link
Owner

Slava commented Feb 1, 2014

P.S. and make sure you have the PyV8 plugin as well... this sucks, I know. I will invest more time on the weekend to make the installation process simpler.

@pnunn
Copy link
Author

pnunn commented Feb 1, 2014

Looks like a problem with vim a

Failed to start server:

/home/pnunn/.dotfiles/.vim/bundle/tern_for_vim/node_modules/tern/plugin/meteor.js:6

^
SyntaxError: Unexpected token <
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at loadPlugins (/home/pnunn/.dotfiles/.vim/bundle/tern_for_vim/node_modules/tern/bin/tern:85:5)
at startServer (/home/pnunn/.dotfiles/.vim/bundle/tern_for_vim/node_modules/tern/bin/tern:109:17)
at Object. (/home/pnunn/.dotfiles/.vim/bundle/tern_for_vim/node_modules/tern/bin/tern:105:14)
at Module._compile (module.js:456:26)
s well....
TernDoc: produces

@pnunn pnunn closed this as completed Feb 1, 2014
@pnunn
Copy link
Author

pnunn commented Feb 1, 2014

Sorry, didn't mean to close that... First line should be.. ."Looks like a problem with vim as well on linux".

@Slava
Copy link
Owner

Slava commented Feb 1, 2014

@pnunn did you download html file instead of JavaScript?

@Slava Slava reopened this Feb 1, 2014
@pnunn
Copy link
Author

pnunn commented Feb 1, 2014

Yep... that would do it... Sorry. All good in vim now.. so, have to get it working in Sublime.. thanks.

@pnunn pnunn closed this as completed Feb 1, 2014
@iboxgithub
Copy link

Hi, I did what is metioned before to install TernJS + your plugin on Fedora 20 and it looks like if with your "tricky way" to install it ST3 doesn't even recognize TernJS... With Package Control it was working but I couldn't install your plugin, do you have an idea where I do a mistake? (I don't know if you prefer that I open a new thread?)

@Slava
Copy link
Owner

Slava commented Mar 15, 2015

Try my new package that doesn't require any configuration: https://github.com/Slava/tern-meteor-sublime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants