-
-
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
call signature breaks undo #651
Comments
Where? For |
An easier test case / related issue appears to be that with the following file,
I'll look into this shortly. |
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
@Kareeeeem |
re: first comment. Any call signature popup. I'll test out #652 and get back to you. |
I'm afraid I'm still encountering the same behavior using the latest commit on your pull request I simply did
allowing the signature popup to show and then undo (multiple times) and was left with the following. It only disappears when I undo all the way to an empty file (undoing much older changes before finally removing the break statement).
|
Weird. set nocp
let &rtp .= ','.expand("$PWD").','.expand("$PWD").'/after'
let g:jedi#show_call_signatures=1
syn on |
I've seen the popup for |
Odd that it can't be reproduced. I have tried again with the minimal vimrc. set nocp
call plug#begin('~/.vim/plugged')
Plug 'davidhalter/jedi-vim', {'for': 'python'}
call plug#end()
let g:jedi#show_call_signatures=1
syn on the initial file def blah():
print "hello"
if __name__ == '__main__':
blah() insert the following allowing the popup to show def blah():
print "hello"
for i in range(5):
break
if __name__ == '__main__':
blah() undo will never remove this is the jedi debug info Using Python version: 3
|
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
Same issue as #493. We are trying to get rid of changing the buffer for this feature and are trying to use floating windows. |
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
This uses vim.current.buffer directly, with `:undojoin` before it. Fixes davidhalter#651. Note: it uses `silent!` with `undojoin` to work around E790 ("undojoin not allowed after undo"), although `undo` was not used (AFAIK), but only the cursor being moved.
Issue
When the call_signature option is on it breaks undo.
let g:jedi#show_call_signatures=0 solves it.
Steps to reproduce
Initial state of buffer
u
.The buffer now looks like this
The
for
statement is removed but anything after that line remains. No matter how many times I undo.Versions
Output of the "JediDebugInfo" command (in a Python buffer)
Using Python version: 3
Jedi path: /home/kareem/.vim/plugged/jedi-vim/jedi/jedi/init.py
Jedi version: 0.10.0
jedi-vim git version: 80378d8
jedi git submodule status: 2ba78ab725f1e02dfef8bc50b0204cf656e8ee23 jedi (v0.9.0-547
-g2ba78ab7)
Output of the "messages" Vim command
Output of "scriptnames" Vim command
The text was updated successfully, but these errors were encountered: