bitc / lushtags

Create ctags compatible tags files for Haskell programs
MIT License
81 stars 14 forks source link

Lushtags doesn't work with tagbar on OS X. #5

Open oryband opened 12 years ago

oryband commented 12 years ago

This is probably something local on my machine, but I have been trying to make this work for several days without success.

I'm using a 2010 13i Macbook Pro, OS X Lion. I have installed Lushtags with cabal install lushtags and am using the Vundle plugin manager to install lushtags & TagBar, which has been working smoothly for other languages (Python, JS, etc.).

Executing lushtags through the terminal works fine and produces ctags files as it should. However, TagBar doesn't show anything when opening *.hs files.

What am I missing?

oryband commented 12 years ago

I got it! The problem was with my .bash_profile (Mac's .bashrc). I added the Cabal packages bin directory incorrectly.

I changed this:

PATH="~/.cabal/bin:$PATH"

Into this:

PATH="$HOME/.cabal/bin:$PATH"

And now everything works like a charm.

The problem was that Vim's PATH is different from bash's PATH, thus Vim didn't have lushtags available for use.

You should probably add this to your README.md. I've seen other people post similar issues on other Haskell/Vim plugins like Syntastic.