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

Some plugins not loading on windows #193

Closed
eduardocereto opened this issue Jul 11, 2012 · 7 comments
Closed

Some plugins not loading on windows #193

eduardocereto opened this issue Jul 11, 2012 · 7 comments

Comments

@eduardocereto
Copy link

I have the exact same setting on Ubuntu and Windows. On Windows some plugins load just fine, and some don't. The plugins that are not loading at the moment are sparkup and NERDtree.

Here's my rtp

C:\Users\eduardocereto\vimfiles\bundle\vundle,C:\Users\eduardocereto\vimfiles\bundle\vim-fugitive,C:\Users\eduardocereto\vimfiles\bundle\vim-easymotion,C:\Users\eduardocereto\vimfiles\bundle\vim-powerline,C:\Users\eduardocereto\vimfiles\bundle\sparkup\vim\,C:\Users\eduardocereto\vimfiles\bundle\nerdtree,C:\Users\eduardocereto/vimfiles,C:\Program Files (x86)\Vim/vimfiles,C:\Program Files (x86)\Vim\vim73,C:\Program Files (x86)\Vim/vimfiles/after,C:\Users\eduardocereto/vimfiles/after,C:\Users\eduardocereto/vimfiles/bundle/vundle/,C:\Users\eduardocereto\vimfiles\bundle\vundle/after,C:\Users\eduardocereto\vimfiles\bundle\vim-fugitive/after,C:\Users\eduardocereto\vimfiles\bundle\vim-easymotion/after,C:\Users\eduardocereto\vimfiles\bundle\vim-powerline/after,C:\Users\eduardocereto\vimfiles\bundle\sparkup\vim\/after,C:\Users\eduardocereto\vimfiles\bundle\nerdtree/after

:BuildInstall runs fine and says installed all my plugins. I can see that the plugins are cloned inside my vimfiles directory. EasyMotion and powerLine work just fine. I see no errors or anything when I open Vim. Been bashing my head on this one for a while.

@gmarik
Copy link
Contributor

gmarik commented Jul 11, 2012

Hey @eduardocereto,

did the plugins work before (before Vundle)?

It's hard to diagnose the cause just by looking at rtp… My guess is that some dependencies aren't satisfied.
For instance sparkup runs sparkup.py which requires python.
Not sure why NERDtree isn't working.

What needs to be done here is:

  1. create separate simple .vimrc-test without vundle
  2. install plugins in manually (copying them into vim/plugin or vim/ftplugin or whatever they require to get installed)
  3. verify plugins work by running vim -u .vimrc-test

Let me know how that works for you.

@eduardocereto
Copy link
Author

If I remove Vundle and place the scripts directly on the folders vim expect they work.

I was able to fix this by changing from this

Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}

to this:

Bundle 'rstacruz/sparkup', {'rtp': 'vim'}

Strangely enough after that change not only sparkup but NERDtree also works!

If I place the last slash back, they are both broken again, si even though it's weird I can confirm that this indeed fix both plugins.

@eduardocereto
Copy link
Author

By placing the NERDtree bundle above the sparkup bundle it works either way.

So the problem is definitely with the slash at the end of sparkup rtp. It doesn't import sparkup or any other bundle placed bellow it.

@gmarik
Copy link
Contributor

gmarik commented Jul 11, 2012

Oh, i see....
Yeah, looks like {'rtp':'vim/'} isn't portable and breaks whole thing, sorry about that.

Good catch!

Do you still want to keep the issue open?

@eduardocereto
Copy link
Author

Note that the following also doesn't work.

Bundle 'rstacruz/sparkup', {'rtp': 'vim\'}

It can't have the slash at all, it's not just a matter of using the right OS separator.

If I want to keep the bug open? I don know, kinda n00b when it comes to vim plugins.

It seems to me that the plugin should treat this use case somehow. Maybe remove the slash on windows.

I'll do some more testst, I don't know what might happen if rtp is a sub directory, something like {'rtp':'path/to/vim'}

At the very least the other Bundles should not break. It seems to me now that if you have a Bundle with a slash at the end on windows it also breaks any other bundle afterwards. That at least deserves a fix.

If you decide not to patch to treat this on windows than at least it deserves a note on the wiki page.

So leave it open for now. I'll take a deeper look, and maybe learn some vim plugin authoring on the way. Thanks

@gmarik
Copy link
Contributor

gmarik commented Jul 12, 2012

updated Wiki
Closing

@gmarik gmarik closed this as completed Jul 12, 2012
@Davidrjx
Copy link

even though Plugin ''rstacruz/sparkup', {'rtp': 'vim'} is placed after Plugin 'scrooloose/nerdtree', NERDTree is not working why some core NERDTree vim files are loaded in wrong runtimepath order.
Here,what i want to know/get is right solution to resolve the problem at Vundle's end.

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

3 participants