Public bug reported:
When the jedi-vim plugin runs colorama.init(), colorama assumes that the
vim.message object which is sys.stdout (and/or sys.stderr) will have a
'closed' attribute. It doesn't which causes the following traceback:
Traceback (most recent call last):
File "/home/daniel/.vim/bundle/jedi-vim/initialize.py", line 22, in <module>
import jedi_vim
File "/home/daniel/.vim/bundle/jedi-vim/jedi_vim.py", line 96, in <module>
import jedi
File "/home/daniel/.vim/bundle/jedi-vim/jedi/jedi/__init__.py", line 41, in
<module>
from jedi.api import Script, Interpreter, NotFoundError, set_debug_function
File "/home/daniel/.vim/bundle/jedi-vim/jedi/jedi/api/__init__.py", line 16,
in <module>
from jedi.parser import Parser, load_grammar
File "/home/daniel/.vim/bundle/jedi-vim/jedi/jedi/parser/__init__.py", line
21, in <module>
from jedi.parser import tree as pt
File "/home/daniel/.vim/bundle/jedi-vim/jedi/jedi/parser/tree.py", line 39,
in <module>
from jedi import cache
File "/home/daniel/.vim/bundle/jedi-vim/jedi/jedi/cache.py", line 32, in
<module>
from jedi import debug
File "/home/daniel/.vim/bundle/jedi-vim/jedi/jedi/debug.py", line 17, in
<module>
init()
File "/usr/lib/python3/dist-packages/colorama/initialise.py", line 37, in init
wrap_stream(orig_stdout, convert, strip, autoreset, wrap)
File "/usr/lib/python3/dist-packages/colorama/initialise.py", line 76, in
wrap_stream
convert=convert, strip=strip, autoreset=autoreset)
File "/usr/lib/python3/dist-packages/colorama/ansitowin32.py", line 67, in
__init__
strip = conversion_supported or (not wrapped.closed and not
is_a_tty(wrapped))
AttributeError: 'vim.message' object has no attribute 'closed'
This issue is described in more detail in
https://github.com/tartley/colorama/pull/84 and fixed in
https://github.com/tartley/colorama/commit/1244a00ae1accfeca3b4b1a85a3b718a920dd6bd
upstream.
** Affects: python-colorama (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1554129
Title:
python-colorama breaks jedi-vim plugin on xenial
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-colorama/+bug/1554129/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs