crigor.com

Macvim and Upgrading Janus

In true developer fashion, I decided to spend more hours working on my tools than coding. Tonight, it’s time to upgrade Janus. Janus is a collection of vim plugins. It sets up your vim environment with a few commands.

I followed the instructions on how to upgrade Janus. I ran curl -Lo- http://bit.ly/janus-bootstrap | bash and expected everything to work. I typed mvim and got this

1
2
3
Error detected while processing function janus#load_pathogen:
line    3:
E484: Can't open file /Users/crigor/.vim/janus/vim/core/pathogen/autoload/pathogen.vim

True enough that file doesn’t exist. In fact, the directory /Users/crigor/.vim/janus/vim/core/pathogen/autoload doesn’t exist. After checking the source code of Janus, I found out that pathogen is a git submodule. Something is not set up correctly if the submodule doesn’t exist. Maybe it’s time to look at the output of that curl command.

Aha! I didn’t notice that there was a git error when I installed Janus.

1
2
fatal: reference is not a tree: 47e897d92f47196017ab00281919a8bcd71e1cd3
Unable to checkout '47e897d92f47196017ab00281919a8bcd71e1cd3' in submodule path 'janus/vim/colors/getafe'

Instead of trying to find out what’s wrong with that submodule, I just deleted it with

1
git rm janus/vim/colors/getafe

. Then I didn’t want to run rake on the ~/.vim because that would just clone the Janus repo again and try to install the getafe submodule. I ran

1
2
git submodule init
git submodule update

After all the submodules were updated, including the pathogen submodule, I ran

1
rake install

After I added a few custom settings on ~/.vimrc.before and ~/.vimrc.after, my new macvim environment is set.

Comments