jedi-vim: Vim freezes on first line comment
Issue
Vim freezes when typing a comment on the first line of the file. Here “freezes” means that it becomes impossible to exit insert mode nor can anything be inserted. This only happens when entering a comment on the first line of the edited Python file. This isn’t about ctrl-s 😃
Steps to reproduce
To perform the tests I created a clean environment as follows:
- vagrant init bento/ubuntu-16.04
- vagrant up
- vagrant ssh
- sudo apt install git vim-nox curl
- download vim-plug: curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- setup vim-plug (.vimrc contents below)
- run :PlugInstall in vim to install jedi-vim
- quit vim before running the tests
Contents of .vimrc
call plug#begin('~/.vim/plugged')
Plug 'davidhalter/jedi-vim'
call plug#end()
The following tests were performed and all of them begin by opening the empty test file test.py and entering insert mode:
- type “#dead<enter><esc>” => Vim is frozen and in insert mode, cursor on second line
- type “#dead<enter><esc>” really fast => Vim exits insert mode and is not frozen
- type “carl<enter>#david<enter><esc>” => Vim exits insert mode and is not frozen
- type “#<esc>” => Vim exits insert mode and is not frozen
- type “#<enter>” => Vim is in insert mode and is frozen
- type “#carl<esc>a david<esc>” => Vim is in insert mode and is frozen
Versions
- jedi-vim: 682f37792d830bb3211df40e049e992db26e4ec0
- Vim: 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
- Python: 3.5.2
- Vim-plug: e3252aae2c9fa6d5ab9bbd3dfe149f35573f4773
Output of the “JediDebugInfo” command (in a Python buffer)
Jedi-vim debug information
Using Python version: 3
- sys.version: 3.5.2 (default, Nov 17 2016, 17:05:23), [GCC 5.4.0 20160609]
- site module: /usr/lib/python3.5/site.py Jedi path: /home/vagrant/.vim/plugged/jedi-vim/jedi/jedi/init.py
- version: 0.10.0
- sys_path:
- /home/vagrant/.vim/plugged/jedi-vim
- /usr/lib/python35.zip
- /usr/lib/python3.5
- /usr/lib/python3.5/plat-x86_64-linux-gnu
- /usr/lib/python3.5/lib-dynload
- /usr/local/lib/python3.5/dist-packages
- /usr/lib/python3/dist-packages
- vim_path jedi-vim git version: 682f377 jedi git submodule status: 70200861661a921016563717487c1ced9993acdb jedi (v0.10.0)
Settings
omnifunc=
completeopt=menuone,longest,preview
Last set from ~/.vim/plugged/jedi-vim/plugin/jedi.vim
Output of the “messages” Vim command
No output other than “Messages maintainer: Bram Moolenaar Bram@vim.org”.
Output of “scriptnames” Vim command
1: /usr/share/vim/vimrc
2: /usr/share/vim/vim74/debian.vim
3: /usr/share/vim/vim74/syntax/syntax.vim
4: /usr/share/vim/vim74/syntax/synload.vim
5: /usr/share/vim/vim74/syntax/syncolor.vim
6: /usr/share/vim/vim74/filetype.vim
7: ~/.vimrc
8: ~/.vim/autoload/plug.vim
9: /usr/share/vim/vim74/ftoff.vim
10: /usr/share/vim/vim74/ftplugin.vim
11: /usr/share/vim/vim74/indent.vim
12: ~/.vim/plugged/jedi-vim/plugin/jedi.vim
13: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
14: /usr/share/vim/vim74/plugin/gzip.vim
15: /usr/share/vim/vim74/plugin/logiPat.vim
16: /usr/share/vim/vim74/plugin/matchparen.vim
17: /usr/share/vim/vim74/plugin/netrwPlugin.vim
18: /usr/share/vim/vim74/plugin/rrhelper.vim
19: /usr/share/vim/vim74/plugin/spellfile.vim
20: /usr/share/vim/vim74/plugin/tarPlugin.vim
21: /usr/share/vim/vim74/plugin/tohtml.vim
22: /usr/share/vim/vim74/plugin/vimballPlugin.vim
23: /usr/share/vim/vim74/plugin/zipPlugin.vim
24: ~/.vim/plugged/jedi-vim/autoload/jedi.vim
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 12
- Comments: 19 (3 by maintainers)
Commits related to this issue
- Disable g:jedi#show_call_signatures https://github.com/davidhalter/jedi-vim/issues/687 https://github.com/davidhalter/jedi/issues/878 — committed to carno/dotfiles by carno 7 years ago
I’m on it. Didn’t really have time/motivation to look at the issues. I have had 10 issues open that I want to quickly look at. I have already fixed 3. I hope to be able to push it this week.
Should be fixed by now.
@davidhalter We should have a bugfix release with a fix for this severe issue, and possibly others. I could try preparing something by cherry-picking, but maybe you want to do it instead?
Confirmed in Vim, but not Neovim.
It is triggered caused by
g:jedi#show_call_signatures(both 1 and 2, using 0 does not trigger it).TEST CASE:
lol. The work arounds 😄
My VIM freezes after Ctrl+Space after dot. I see 100% load of CPU with process of VIM.
Ubuntu 14.04 i386