lukerandall / haskellmode-vim

An unpacked copy of the haskellmode vimball. Ping me if it needs updating.
http://projects.haskell.org/haskellmode-vim/
BSD 3-Clause "New" or "Revised" License
135 stars 21 forks source link

Vim(compiler):E666: compiler not supported: ghc #5

Closed o-sam-o closed 13 years ago

o-sam-o commented 13 years ago

I am using Janus on OSX

I install Haskell on my machine from the following site : http://hackage.haskell.org/platform/

I have added the following line to my ~/.vim/Rakefile

vim_plugin_task "haskellmode-vim",  "https://github.com/lukerandall/haskellmode-vim.git"

I have added the following lines to my ~/.vimrc.local

" Haskell Config
au BufEnter *.hs compiler ghc

let g:haddock_browser = "open" 
let g:haddock_browser_callformat = "%s %s"

When I open a hs file I see the following error message

Vim(compiler):E666: compiler not supported: ghc

Please help.

lukerandall commented 13 years ago

I've only seen this error when the haskellmode plugin has not been loaded at all, so I'm assuming that's the issue. Did the plugin definitely download successfully from Git?

o-sam-o commented 13 years ago

When I ran Janus's rake I saw the following output

****************************************
*      Installing haskellmode-vim      *
****************************************

git pull
Already up-to-date.
cp -RfL autoload/* /Users/sam/.vim/autoload/
cp -RfL doc/* /Users/sam/.vim/doc/
cp -RfL ftplugin/* /Users/sam/.vim/ftplugin/

So Janus wasn't copying the complier directory, I updated the Rakefile to copy the directory and now it works. Thanks.

Is the complier directory a standard vim dir? Should I submit a patch to Janus?

lukerandall commented 13 years ago

The compiler directory isn't typically used by Vim plugins (afaik), which is probably why it was omitted. I'd say it's worth submitting a patch for Janus as it's something that should work, unless they have specific reasons for not wanting to support it.