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

Strange error #77

Open
holmescharles opened this issue Apr 24, 2020 · 5 comments · May be fixed by #110
Open

Strange error #77

holmescharles opened this issue Apr 24, 2020 · 5 comments · May be fixed by #110

Comments

@holmescharles
Copy link

holmescharles commented Apr 24, 2020

I have neovim 0.4.3 installed on my mac.
I have a spartan .vimrc right now:

call plug#begin()
if has('nvim')
    Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}
endif
call plug#end()

When I open a python file, I get this error:

Error detected while processing function <SNR>10_filetype_changed:
line    4:
E492: Not an editor command:             Semshi enable
Press ENTER or type command to continue

Google yields nothing. Any idea what's going on?

@holmescharles
Copy link
Author

Nevermind. Had to explicitly call :UpdateRemotePlugins with nvim.
Any idea why this had to be explicitly called and did not just run on its own?

@wookayin
Copy link
Contributor

The idea behind UpdateRemotePlugins: https://neovim.io/doc/user/remote_plugin.html

But I think that the error message should be improved. We can make :Semshi as a pure vim command defined in plugin/semshi.vim and dispatch to actual rplugin commands, giving a warning/error message if these commands do not exist.

@holmescharles
Copy link
Author

holmescharles commented Apr 25, 2020

The idea behind UpdateRemotePlugins: https://neovim.io/doc/user/remote_plugin.html

Actually, my question had more to do with why I had to explicitly call that function even though my .vimrc contained the following:

Plug 'numirias/semshi', {'do': ':UpdateRemotePlugins'}

I thought that "do" statement would have handled it. Why not?

@Piggintins
Copy link

I ran UpdateRematePluggins and I still have this problem.

@Ttayu Ttayu linked a pull request Aug 31, 2021 that will close this issue
@a45s67
Copy link

a45s67 commented Aug 28, 2022

I thought that "do" statement would have handled it. Why not?

@holmescharles
I have the same question too. After searching some related issue, I found it seems other plugins using :UpdateRemotePlugins also have similar problems when using vim-plug.

You can check this: wilder.nvim - UpdateRemotePlugins needs to be run manually. Looks like it is because the post hook of :PlugInstall(vim-plug) does not register plugins when calling :UpdateRemotePlugins .

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

Successfully merging a pull request may close this issue.

4 participants