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

error appears when :Terndoc runs #23

Open
lookforit opened this issue Jun 14, 2013 · 16 comments
Open

error appears when :Terndoc runs #23

lookforit opened this issue Jun 14, 2013 · 16 comments

Comments

@lookforit
Copy link

Hi
I installed this plugin ( also node.js and npm) with no problem,but when i run :Ternxxx command, error ocurrs like this:
ternerr

is there any misconfigration?

@marijnh
Copy link
Member

marijnh commented Jun 14, 2013

Your screenshot only shows the backtrace, not the actual error. It appears to have something to do with spawning the Tern server, which is apparently a very hard thing to do portably in Python, but without the error message, there's not much I can say about this.

@lookforit
Copy link
Author

Your screenshot only shows the backtrace, not the actual error. It appears to have something to do with spawning the Tern server, which is apparently a very hard thing to do portably in Python, but without the error message, there's not much I can say about this.

thanks.
so how do i get the detailed error message?

@marijnh
Copy link
Member

marijnh commented Jun 14, 2013

I think it should show up in :messages -- but I don't know all that much about vim.

@lookforit
Copy link
Author

I tried :message, but it output the same as the top.

ps: my vim is 7.3.969, os is windows xp sp3

@marijnh
Copy link
Member

marijnh commented Jun 14, 2013

Hold on, actually the WindowsError: [error 6] part is the error message, it's just not a very useful one. Searching around for that string suggests it is what you get when you try to execute something that's not executable. Did you successfully intsall Tern? Can you run node_modules/tern/bin/tern and get a running server? What does the :show tern#command give you?

@lookforit
Copy link
Author

I'm sorry i just assumed that tern-for-vim can work independently, so i did not install Tern before .

By the way, when i run tern/bin/tern.cmd, the prompt says "Listening on port 1747", seems the server worked.

@marijnh
Copy link
Member

marijnh commented Jun 14, 2013

You don't need to install it 'before', you simply need to do npm install to get it into your plugin directory. Is it in node_modules in the place where you installed the plugin?

@lookforit
Copy link
Author

I tried to install Tern with npm:
tern_install

unfortunately error comes again.
am i in the right way to install Tern?

@lookforit
Copy link
Author

You don't need to install it 'before', you simply need to do npm install to get it into your plugin directory. Is it in node_modules in the place where you installed the plugin?

Yes.I used pathogen to manage plugins ,the path of node_modules directory is:
bundle\tern_for_vim\node_modules

@marijnh
Copy link
Member

marijnh commented Jun 14, 2013

You don't need a separate Tern checkout. Does bundle\tern_for_vim\node_modules\tern\bin\tern exist and start up propertly?

@lookforit
Copy link
Author

You don't need a separate Tern checkout. Does bundle\tern_for_vim\node_modules\tern\bin\tern exist and start up propertly?

Yes, the directory does exsit,like this:
ternrun

how shoud i check whether the Tern startup properly?
I'm sorry i 'm new to js scripting.

@marijnh
Copy link
Member

marijnh commented Jun 14, 2013

You could run it with node. But if it exists, I guess that wasn't the problem. I'm out of ideas on this.

@lookforit
Copy link
Author

You could run it with node. But if it exists, I guess that wasn't the problem. I'm out of ideas on this.

i tried
node tern
"Listening on port 2136." gives back.

how do i trigger auto-complete feature? I just want to see wethear error appears for that.

@snj33v
Copy link
Contributor

snj33v commented Jun 23, 2013

have you installed git in your system

@lookforit
Copy link
Author

yes ,I installed it .The version is 1.8.1.2, on win xp.

发件人: [email protected] [mailto:[email protected]] 代表 Sanjeev
发送时间: 2013年6月23日 12:33
收件人: marijnh/tern_for_vim
抄送: Dennis Xiong
主题: Re: [tern_for_vim] error appears when :Terndoc runs (#23)

do you have installed git installed in your system


Reply to this email directly or view #23 (comment) it on GitHub. https://github.com/notifications/beacon/K3PMwQ1lZnrI6AhGFL5_RGmtvZspE5KSxEetX09ScrE3YJT5cUVN8uQxdmDbO2PG.gif

@snj33v
Copy link
Contributor

snj33v commented Jun 24, 2013

no ERR! not found git
npm doesn't recognize git, strange

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

3 participants