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

Tern not running on node v6.1.0 #6083

Closed
sendyhalim opened this issue May 18, 2016 · 2 comments
Closed

Tern not running on node v6.1.0 #6083

sendyhalim opened this issue May 18, 2016 · 2 comments

Comments

@sendyhalim
Copy link

sendyhalim commented May 18, 2016

Tern not running on node v6.1.0

I upgraded node from v5.7.0 to v6.1.0, I installed tern on v6.1.0 (globally). It works on v5.7.0, any idea? However, it works if I start the tern manually:

  1. Start emacs
  2. Open a javascript file
  3. Autocomplete not working
  4. I start the tern manually
  5. Run tern-use-server and specify the port of the tern that I ran manually.
  6. Autocomplete works fine
which tern
$HOME/.nvm/versions/node/v6.1.0/bin/tern

Reproduction guide

  • Start Emacs
  • Open a javascript file
  • Type a variable name
  • Press TAB, it will fail to show completion and there's a message Request failed: (nil)

Observed behaviour:
There's a message Request failed: (nil), I did check the tern process ps aux | grep tern, no tern process running.

Expected behaviour:
It should show completion list when I pressed TAB when I'm typing a variable name

System Info

  • OS: darwin
  • Emacs: 24.5.1
  • Spacemacs: 0.105.20
  • Spacemacs branch: master (rev. 9c7250a)
  • Graphic display: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(auto-completion elm emacs-lisp git go haskell html javascript markdown org osx php react restclient swift syntax-checking themes-megapack theming unimpaired version-control vim-empty-lines vim-powerline yaml)

Backtrace

BACKTRACE IF RELEVANT
@ghost
Copy link

ghost commented May 31, 2016

Might be related to this problem. nodejs/node#6563
Open a shell in emacs and check if you can run node in it. You should get "Abort trap: 6 error ".
If so, then you have to upgrade Node to 6.2

@sendyhalim
Copy link
Author

@tmkbry yep upgrading to v6.2.0 solves the issue, downgrading to v5.7.0 solves it too. I'm closing this issue because it's node related.

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

No branches or pull requests

2 participants