carlitux / deoplete-ternjs

deoplete.nvim source for javascript
MIT License
277 stars 24 forks source link

Random error #45

Closed ahmedelgabri closed 7 years ago

ahmedelgabri commented 7 years ago

I started to get this error(s) like 2-3weeks ago & it's totally random. I don't really know when or how to reproduce

screen shot 2017-04-04 at 21 22 43
carlitux commented 7 years ago

@ahmedelgabri reading the traceback I can't see this source on it. Any other info to find the bug?

ahmedelgabri commented 7 years ago

Will try to keep an eye on this to try & find any useful info.

ahmedelgabri commented 7 years ago

Here is a gif that might be helpful deoplete-tern

carlitux commented 7 years ago

could you remove custom settings for deoplete and try without them, then start adding them to know what is happening still nothing useful.

I am not getting that error.

ahmedelgabri commented 7 years ago

I removed all deoplete options & still getting the error.

here is my setup

https://github.com/ahmedelgabri/dotfiles/blob/HEAD/neovim/.config/nvim/init.vim#L26-L30 https://github.com/ahmedelgabri/dotfiles/blob/d98b5c24ca7502adb7fbb0e4938ae073e7e99c7b/neovim/.config/nvim/after/plugin/deoplete.vim

carlitux commented 7 years ago

could you try to disable this to be sure https://github.com/ahmedelgabri/dotfiles/blob/HEAD/neovim/.config/nvim/init.vim#L35

This are my settings: https://github.com/linkux-it/vimgalaxy/search?utf8=%E2%9C%93&q=deoplete&type=

ahmedelgabri commented 7 years ago

I have disabled deoplete-flow for the past nearly two days & the error still happens, I will start commenting out parts of here to see if it's related

tamoore commented 7 years ago

I get a similar error to this, trying to debug it at the moment. I think it might be related to nvm, but not 100% sure right now. It happens in some of my projects and not in others.

tamoore commented 7 years ago

Apologies, turns out this was caused by deoplete-flow not having access to the flow bin. However, for anyone coming to this issue, make sure that you have tern installed in the node version you're currently using with nvm. That may also cause a similar error.

ahmedelgabri commented 7 years ago

In my case, I have flow in my path & tern installed globally. I even removed deoplete-flow completely but I'm still getting the errors.

tamoore commented 7 years ago

what happens when you run !tern or !flow in the command prompt in vim/neovim? Does it return with a status 0?

ahmedelgabri commented 7 years ago

Both work fine !tern & !flow

carlitux commented 7 years ago

Guys I don't have that issue but just I added error messages maybe will help us to find the error please test it.

ahmedelgabri commented 7 years ago

This just happened, this is what I'm dealing with.

screen shot 2017-04-14 at 11 04 13 screen shot 2017-04-14 at 11 04 29 screen shot 2017-04-14 at 11 04 38 screen shot 2017-04-14 at 11 04 50 screen shot 2017-04-14 at 11 05 02
wavded commented 7 years ago

I can attest that I get either the same or similar errors from time to time but do not have a clear way to reproduce. If I get one again I will pass it on.

carlitux commented 7 years ago

@ahmedelgabri thank you very much! I will review now what is happening

carlitux commented 7 years ago

I tried to fix other bugs and improve logs here.

At some point looks like the error appears on python client, but honestly I don't think so... I hope we can find soon what is the error.

shelldandy commented 7 years ago

i get that error from time to time sometimes 😕

carlitux commented 7 years ago

@mike3run any way to reproduce it? I am working all days with it and no errors.

carlitux commented 7 years ago

@ahmedelgabri @tamoore @wavded @mike3run are you still getting this error?

shelldandy commented 7 years ago

@carlitux not really as of recently, but i remember that it used to happen while entering git in fugitive like after a commit for example

shelldandy commented 7 years ago

screen shot 2017-08-15 at 10 58 41 pm

Just got the error today but with deoplete in a scss file so its safe to assume this is not related to deoplete-tern project but actually to deoplete itself

carlitux commented 7 years ago

@mike3run you are right.