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
nvim does not throw IndexError when out of line in vim.current.buffer. #128
Comments
- Remove support for python 3.2 to reduce number of test cases and because it actually fails with Neovim. It is not a supported version anyways. - Due to Neovim not handling fast typing through the console properly (neovim/neovim#2454), the typing is actually simulated through the Python client. We need to differentiate now if a keystroke is meant for the terminal or for the Vim session. Using neovim.input() introduces additional chances for races since inputs are not buffered but processed right away. This results in more retries for some tests. - Neovim needs more parameters and configuration passed in through the test script. Added command line arguments for these. - Skip an extra test under Neovim due to neovim/pynvim#128.
See neovim/neovim#2676. |
@SirVer this needs to be fixed on the Neovim side, could you reopen on the main repository? |
It's because of neovim/neovim#2846 which is a feature. |
Even so, we might be able to emulate this vim behavior with a session hook on script_host.py, see how |
Sure, that sounds good. Just wanted to point it out. |
Reopened as requested. I think @tarruda is right that this should be emulated - after all the promise is for the neovim python client to provide a vim compatible python interface. |
The line to test is
:py import vim; vim.current.buffer[100000]
. In regular vim you'll get:In nvim no error is thrown.
This was surfaced through this UltiSnips test which is the last one failing with neovim in my current test branch, which is nice.
On another note: I found out the hard way that nvim sets a bunch of options differently on startup (for example
smarttab
,autoindent
andbackspace
) when started using-u NONE
than vim. Is that intentional?The text was updated successfully, but these errors were encountered: