Installation into Linux Sublime Text 3
pnunn opened this issue · comments
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.
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.
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.
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
Sorry, didn't mean to close that... First line should be.. ."Looks like a problem with vim as well on linux".
Yep... that would do it... Sorry. All good in vim now.. so, have to get it working in Sublime.. thanks.
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?)
Try my new package that doesn't require any configuration: https://github.com/Slava/tern-meteor-sublime