tern_for_vim
tern_for_vim copied to clipboard
urlopen error [Errno 61] Connection refused
I am trying to install ternjs on vim.
I am on OS X Yosemite 10.10.5.
What did I do :
1.Install YouCompleteMe.
2.Install Nodejs v4.2.3 via the node-v4.2.3.pkg.
3.Run npm install in the tern_for_vim directory (nothing seems to happen).
gy@~/.vim/plugged/tern_for_vim$ npm install
gy@~/.vim/plugged/tern_for_vim$
4.Create a .tern-project file in my javascript application directory (which contains only on test.js file) :
$ cat .tern-project
{
"libs": [
"browser",
"underscore",
"jquery"
],
"plugins": {
}
}
5.Touch test.js with the demo code:
//Use ctrl-space to complete something
co
document.body.a
// Put the cursor in or after an expression, press ctrl-i to
// find its type
var fno = ["array", "of", "strings"]
var bar = foo.slice(0, 2).join("").split("a")[0]
// Works for locally defined types too.
function CTor() { this.size = 10 }
CTor.prototype.hallo = "hallo"
var baz = new CTor
6.Try to use :TernRename, :TernDoc..etc. Example of output for :TernRename
new name? fno urlopen error [Errno 61] Connection refused
What did I forgot?
(nothing seems to happen).
This is very suspicious. It should list the dependencies it installed. Is there anything in your ~/.vim/plugged/tern_for_vim/node_modules directory?
I'm having a similar problem. It says no global tern-config file was found when I try to open a file. Trying to get youcompleteme and tern to work but tern just seems to be refusing to cooperate as npm install also does nothing for me
It says no global tern-config file was found when I try to open a file.
Really? What is the precise error message? A missing config file shouldn't be a problem (it'll just use the default config), and I'm not aware of any code that might be signalling such an error.
Did you guys ever figure this out? I'm getting the same issue
Weirdly it never seems to happen on the first attempt at executing a command. Then it just silently does nothing. The second time I try to do it then it gives me this error.
@audun- Two possible situations:
- You idle too long (5 mins) and the server will shut down.
- Or the server crashed caused some code snippets we don't support well.
If this is case 2, could you provide the code snippets?
@othree Nuking my vim install and reinstalling everything worked ¯\(ツ)/¯ but thanks for the tip!