ternjs / tern_for_vim

Tern plugin for Vim
MIT License
1.83k stars 100 forks source link

urlopen error: cannot find node server #31

Closed HerringtonDarkholme closed 11 years ago

HerringtonDarkholme commented 11 years ago

Tern_for_vim works finely before. But now I find completion does not work. And every time I call TernDef, error messages are echoed in cmd area. "<urlopen error [Errno 2] No such file or directory>" BTW, I didn't change any configuration. and it suddenly broke down :(

Maybe this is caused by failure to find correct server path. Tern_for_vim create new a node process every time I press key in insert mode or call tern method.

ps axu | grep node 28859 0.0 0.0 0 0 pts/1 Z+ 11:57 0:00 [node] 30146 0.0 0.0 0 0 pts/1 Z+ 11:58 0:00 [node] 30327 0.0 0.0 0 0 pts/1 Z+ 11:59 0:00 [node] 30335 0.0 0.0 0 0 pts/1 Z+ 11:59 0:00 [node] 30337 0.0 0.0 0 0 pts/1 Z+ 11:59 0:00 [node] 30339 0.0 0.0 0 0 pts/1 Z+ 11:59 0:00 [node] 30370 0.0 0.0 0 0 pts/1 Z+ 11:59 0:00 [node] 30372 0.0 0.0 0 0 pts/1 Z+ 11:59 0:00 [node] 30374 0.0 0.0 0 0 pts/1 Z+ 11:59 0:00 [node]

I have no idea what actually happened here. I try my best to present problem. Hope this will help you.

HerringtonDarkholme commented 11 years ago

It works today, though...

marijnh commented 11 years ago

Strange. Did you ever find out what the difference between the working situation and the broken one was? Shall I close this or are you still seeing the problem and planning to provide details?

HerringtonDarkholme commented 11 years ago

Please close this issue. I've never encounter this problem again, even if I intentionally try to remake it. Tern works finely on linux, windows and mac.

The broken situation has nothing different from the working one(according to my recollection). Restarting is almost the panacea for minor issues in tern vim.