-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
PlugUpdate and delayed loading not always playing nicely together #272
Comments
That might be related to the syntax handling (via |
@montefra I can't reproduce this bug. I used a fresh user, with no extising
At the end completion seemed fine, definitely didn't see your ugly line. Can someone else test, am I missing something? I'm on Ubuntu btw, original bug reporter seemed to imply he found it broke on Mint. set nocompatible
filetype plugin indent on
silent !mkdir --parents ~/.vim/autoload
silent !curl --fail --location --output ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
call plug#begin('~/.vim/plugged')
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
call plug#end()
|
I'm on Kubuntu 15.04 with vim 7.4 Included patches: 1-488 @starcraftman: I've just created a new user and tested vim with only your .vimrc and I still see the problem. @blueyed: ok. But why doesn't work if I run |
@montefra I used vagrant to test your setup, namely 15.04 with vim 7.4.488. I still can't replicate. Can you try these steps exactly and report if you still get bug. At the end of these steps, I get what you see in screenshot at bottom. This will provision the same test env I just tried on a given host machine. Uses vagrant & virtualbox for virtualization, ensure you have no sudo apt-get install vagrant virtualbox
vagrant box add vivid https://github.com/kraksoft/vagrant-box-ubuntu/releases/download/15.04/ubuntu-15.04-amd64.box
vagrant init vivid
vagrant up
vagrant ssh Once SSHed, copy the contents of below vimrc to sudo apt-get install git vim
vim +PlugInstall +qa
vim
:PlugUpdate
** push q to close plug buffer **
:e file.py
** use completion ** set nocompatible
filetype plugin indent on
silent !mkdir --parents ~/.vim/autoload
silent !curl --fail --location --output ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
call plug#begin('~/.vim/plugged')
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
call plug#end() |
@starcraftman : thanks for the effort. Can you please check what happens if you type The correct behavior is (the first line is the jedi popup with the function signature):
If I run PlugUdate before I get this instead:
If you can't reproduce the issue this way, I'll go through the virtualbox test. |
@starcraftman Thanks for looking into this. I can reproduce the vimrc: call plug#begin('~/.vim/plugged')
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
call plug#end() |
After doing some investigating, this small patch seems to sort the problem out. The root cause of the garbage was the Edit: This patch does mean we will sometimes double source syntax files, but not a big issue. Is there a way around that? diff --git a/plug.vim b/plug.vim
index 6e14d0e..9eb11fc 100644
--- a/plug.vim
+++ b/plug.vim
@@ -399,7 +399,7 @@ function! s:lod(names, types)
endfunction
function! s:lod_ft(pat, names)
- call s:lod(a:names, ['plugin', 'after/plugin'])
+ call s:lod(a:names, ['plugin', 'after/plugin', 'syntax', 'after/syntax'])
execute 'autocmd! PlugLOD FileType' a:pat
if exists('#filetypeplugin#FileType')
doautocmd filetypeplugin FileType |
* Force syntax files sourcing on lod_ft.
@starcraftman: I've temporary replaced plug.vim with you version and I confirm that now jedi works as expected. Thanks a lot for the fix. |
Fix #272 PlugUpdate and delayed loading
@montefra No problem, happy vimming. Fix is now merged. |
While exploring an issue with the jedi-vim plugin I encountered a possible bug:
In my .vimrc I add jedi as:
If I open a vim session and do:
PlugUdate
the popup with the function/class/... signature looks very messy (see the screenshots in the above link, all the
=
=jedi=0, ==
should not be there). But it works without issues if I open it in a session where PlugUpdate has not been run.If I don't delay the loading:
and repeat the above exercise, then the pop up looks fine.
My guess is that the reload at the end of
PlugUpdate
might not play very well with not jet loaded plugins.The text was updated successfully, but these errors were encountered: