Skip to content
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

Error Installing With Vim-Plug and Neovim - Add better error handling / suggestions / improve docs #43

Open
John-P opened this issue Mar 30, 2020 · 5 comments

Comments

@John-P
Copy link

John-P commented Mar 30, 2020

I tried installing with Neovim (v0.2.2) and Vim-Plug and got the following error:

Error detected while processing function vimade#Init[2]..vimade#CreateGlobals:
line   21:
E168: :finish used outside of a sourced file
Press ENTER or type command to continue

Then pressing enter leads to a series of undefined variables. I've just included the first few here:

Error detected while processing function vimade#Init[2]..vimade#CreateGlobals:
line   25:
E121: Undefined variable: g:vimade_py_cmd
Error detected while processing function vimade#Init[15]..vimade#CheckWindows:
line    7:
E121: Undefined variable: g:vimade_py_cmd
Error detected while processing function vimade#FocusGained[2]..vimade#InvalidateSigns:
line    6:
E121: Undefined variable: g:vimade_py_cmd
vimade#FocusGained[2]..vimade#InvalidateSigns[11]..vimade#CheckWindows:
line    7:
E121: Undefined variable: g:vimade_py_cmd

Please let me know if there are any other details which could help resolve this.

@John-P
Copy link
Author

John-P commented Mar 30, 2020

I figured out that you get this error if the neovim pynvim package cannot be loaded when PlugInstall is run. I just made sure that it was in my path when installing.

@John-P John-P closed this as completed Mar 30, 2020
@benfrain
Copy link

benfrain commented Apr 6, 2020

I think this is a genuine issue that does need addressing. I just did install as per instructions using NeoVim 0.4.3. and got the same issue.

@TaDaa TaDaa reopened this Apr 6, 2020
@TaDaa TaDaa changed the title Error Installing With Vim-Plug and Neovim Error Installing With Vim-Plug and Neovim - Add better error handling / suggestions / improve docs Apr 6, 2020
@TaDaa
Copy link
Owner

TaDaa commented Apr 6, 2020

Thanks for the feedback gents. Makes sense to improve the install instructions to include python/pynvim. Also would be nice to have better error handling for when python is not configured correctly.

@caetanosauer
Copy link

I just ran into this as well. For those that like me did not understand the fix proposed above: run :checkhealth in NeoVim and look for the instructions on installing pynvim

@lamchau
Copy link

lamchau commented Oct 23, 2023

Ran into this when running in a new venv, might be something we can add to check that there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants