-
-
Notifications
You must be signed in to change notification settings - Fork 374
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: jedi-vim fails to load with colorama 0.3.6 #522
Comments
Actually loading colorama fails. But this is not a jedi-vim error, because all Jedi does is importing it and calling the Are you using gvim? |
Hi David, Thanks for having a look at it. I'm not using gvim, just the regular one. If it helps you my .vimrc and .vim files can be found here: https://github.com/danielmellado/rcfiles |
Can you try to start Python, import colorama and then use init? |
Hi David, from within vim, I've tried the following: the latest led to this trace showing, were you refering to this or how are you meant to init jedi_vim from python?
|
After checking, it seems that reverting back to colorama 0.3.5 solved the issue. It was present with latest colorama 0.3.6 |
Hmm that is bad, I have to test this as well. What you did above is not enough, after calling |
In Neovim, I have a similar error in #523 regarding an |
This is what
Sounds similar (the same, actually) to what @tony gets in his Neovim. I ended up having jedi-vim fail whenever I was working on a project that had pylint installed, because pylint depends on Thanks for looking into it :) |
The problem can be reproduced using:
So, you need to have colorama 0.3.6 installed - and activated your virtualenv. I only have colorama 0.3.3 (Arch is not up-to-date in that regard), and do not activate my virtualenvs (jedi-vim (Git master) picks up |
@tarcisioe @danielmellado |
I think I have the fix for colorama: tartley/colorama#84 |
Exactly, problem occurs on both, I am using Vim 7.4. Friend of mine uses Neovim and faced the same problem, just as @tony. |
@blueyed I'm a bit confused by all the colorama related issues. Is this now related with neovim or is it really a colorama issue (and not something that would occur in say emacs)? What action would you suggest? Should we wrap the colorama import in Jedi, to catch any Exception that it throws while initializing? |
@davidhalter
Not sure - would be a short term fix only - but maybe wrap the imports there altogether. Also the tracebacks should be better reported (there's an issue for that). |
@blueyed no, I was using normal Vim |
@danielmellado |
Downgrading to 0.3.5 makes it work again ;)
|
Latest Jedi linter branch solves this issue. It just ignores all exceptions coming from colorama's |
@davidhalter |
Hmm I don't know. We could do that. But maybe it's better to wait for Jedi? I guess it's not a bad idea to have the same submodule branch as the current pip version. |
After deploying a new system, jedi-vim fails to load with the following error message
System: Fedora22
EDIT
Suggested fix for colorama: tartley/colorama#84
The text was updated successfully, but these errors were encountered: