ternjs / tern_for_vim

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

'tuple' object has no attribute 'open' #64

Open wizardwerdna opened 10 years ago

wizardwerdna commented 10 years ago

Tern and tfv have been terrific, but without explanation, Tern now seems unable to find refs and definitions any more, instead printing the error message above. (Which appears to be pythony in nature.)

I can't seem to get it working again. Any suggestion?

marijnh commented 10 years ago

There are two instances of .open in the vim plugin -- one used for every HTTP request made to the server, and one when opening a documentation URL in the browser.

Do some things, like completion still work? If so, then the first one is probably not the problem. Could it be that the error only occurs when you try to go to the definition of externally defined things? (That is when it'll try to open a URL)

wizardwerdna commented 10 years ago

Thanks for the feedback, I'll experiment a bit and report back. The error occurred when using :TernDef after opening a split including a markdown file. It also occurs when using :TernDoc, but only on the second occurrence, the first time it just remains silent.

On Fri, May 2, 2014 at 3:19 AM, Marijn Haverbeke notifications@github.comwrote:

There are two instances of .open in the vim plugin -- one used for every HTTP request made to the server, and one when opening a documentation URL in the browser.

Do some things, like completion still work? If so, then the first one is probably not the problem. Could it be that the error only occurs when you try to go to the definition of externally defined things? (That is when it'll try to open a URL)

— Reply to this email directly or view it on GitHubhttps://github.com/marijnh/tern_for_vim/issues/64#issuecomment-42013728 .