Open alicoding opened 10 years ago
That's weird.... Can you check if the mentioned file is there or not? It'supposed to be installed with npm when you install the plugin.... Seems like a strange atom behavior...
Is there, but link to something empty.
lrwxr-xr-x 1 alialdallal staff 137B 15 Mar 07:42 tern -> /private/var/folders/jb/7cch4h6x2c77vxn_cntxn44w0000gn/T/apm-install-dir-114215-71794-hd0fm9/node_modules/Tern/node_modules/tern/bin/tern
╭─alialdallal@Alis-MacBook-Pro ~/.atom/packages/Tern/node_modules/.bin
╰─$ tern
zsh: command not found: tern
That's super-weird... Can you run apm update within the Tern folder and see if things get better? On Mar 15, 2014 12:44 PM, "Ali Al Dallal" notifications@github.com wrote:
Is there, but link to something empty.
lrwxr-xr-x 1 alialdallal staff 137B 15 Mar 07:42 tern -> /private/var/folders/jb/7cch4h6x2c77vxn_cntxn44w0000gn/T/apm-install-dir-114215-71794-hd0fm9/node_modules/Tern/node_modules/tern/bin/tern ╭─alialdallal@Alis-MacBook-Pro ~/.atom/packages/Tern/node_modules/.bin ╰─$ tern zsh: command not found: tern
— Reply to this email directly or view it on GitHubhttps://github.com/artoale/atom-tern/issues/2#issuecomment-37723779 .
I did and still doesn't work.
╭─alialdallal@Alis-MacBook-Pro ~/.atom/packages/Tern
╰─$ ./node_modules/.bin/tern
zsh: no such file or directory: ./node_modules/.bin/tern
The werid thing is that it links to something that doesn't even exist.
Ok now it's working for me, but here is what I did.
I first remove tern
folder from node_modules
(I have to remove it manually). Then I ran npm install tern
. Restart Atom and run tern server from the that cmd+shift+P.
And now it's linked to the right package.
╭─alialdallal@Alis-MacBook-Pro ~/.atom/packages/Tern/node_modules/.bin
╰─$ ll
total 8
lrwxr-xr-x 1 alialdallal staff 16B 15 Mar 07:58 tern -> ../tern/bin/tern
Thanks you very much... I'll dive into that next week and see if I can reproduce it! On Mar 15, 2014 1:01 PM, "Ali Al Dallal" notifications@github.com wrote:
And now it's linked to the right package.
╭─alialdallal@Alis-MacBook-Pro ~/.atom/packages/Tern/node_modules/.bin ╰─$ ll total 8 lrwxr-xr-x 1 alialdallal staff 16B 15 Mar 07:58 tern -> ../tern/bin/tern
— Reply to this email directly or view it on GitHubhttps://github.com/artoale/atom-tern/issues/2#issuecomment-37724038 .
@artoale Can you please explain how to fix this issue on a windows build? i removed the package manually and npm installed it. didn't help
Uncaught TypeError: Cannot call method 'completions' of null c:\Users\oron.atom\packages\Tern\lib\tern.coffee:20