-
Notifications
You must be signed in to change notification settings - Fork 174
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
NameError: name 'vim' is not defined when in neovim #101
Comments
this suggests that your neovim is broken or not correctly installed. Please check |
FWIW, I have exactly the same errors reported here when running through the demo using neovim (latest version 0.4.3). checkhealth is all green for me. Demo works perfectly with vim8 on the same system with same vimrc. |
hmm ok let me have a look. But I need a solid reproducible case, as this doesn't repro for me. |
OK I think there is yet-another-neovim-vs-vim-incompatibility. In Vim, the |
can you try applying this patch locally to see if it fixes it : in function! vimspector#internal#state#Reset() abort
let prefix = ''
if s:is_neovim
let prefix='neo'
endif
py3 << EOF
import vim
from vimspector import debug_session
_vimspector_session = debug_session.DebugSession( vim.eval( 'prefix' ) )
EOF
endfunction |
🎆 ...that worked for me. |
I'll fix this in vimspector. standby. |
Describe the bug
I am trying to setup Vimspector with Neovim, and I am getting this error when I
call vimspector#Launch()
:My NeoVim has both python2 and 3 support. (
pynvim
installed)To Reproduce
I followed this issue and added
to my
init.vim
.When I
:call vimspector#ToggleBreakpoint()
or:call vimspector#Launch()
, I would get the error listed above.Vimspector config file:
(
~/.vimspector.log
is empty)Environemnt
vim --version
which vim
::py3 pass
:Up-to-date Arch Linux
The text was updated successfully, but these errors were encountered: