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

urlopen error [Errno 61] Connection refused #122

Open
germaintanguy opened this issue Dec 13, 2015 · 7 comments
Open

urlopen error [Errno 61] Connection refused #122

germaintanguy opened this issue Dec 13, 2015 · 7 comments

Comments

@germaintanguy
Copy link

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?

@marijnh
Copy link
Member

marijnh commented Dec 28, 2015

(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?

@ericheinmiller
Copy link

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

@marijnh
Copy link
Member

marijnh commented Jan 12, 2016

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.

@audunmo
Copy link

audunmo commented Dec 17, 2018

Did you guys ever figure this out? I'm getting the same issue

@audunmo
Copy link

audunmo commented Dec 17, 2018

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.

@othree
Copy link
Collaborator

othree commented Dec 18, 2018

@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?

@audunmo
Copy link

audunmo commented Dec 18, 2018

@othree Nuking my vim install and reinstalling everything worked ¯\(ツ)/¯ but thanks for the tip!

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

No branches or pull requests

5 participants