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

newbie haskell error: ghc.vim: GHCi reports errors (try :make?) #18

Open cocodrino opened 9 years ago

cocodrino commented 9 years ago

Hi, sorry for the newbie question, I'm really starting with haskell (I'm doing the edx course) ..these are the steps than I did

I download the latest haskellmode vimball $ vim haskellmode-20101118.vba :!mkdir ~/.vim/bundle/haskellmode :UseVimball ~/.vim/bundle/haskellmode

I'm using panthogen, probably the error is more related to my haskell installation but I'm not sure, can you help me?

I've installed ghc and ghci --- ~/.vim ‹master➔ M› » whereis ghc ghc: /usr/local/bin/ghc

--- ~/.vim ‹master*➔ M› » whereis ghci ghci: /usr/local/bin/ghci

cocodrino commented 9 years ago

Note: other guy seems to have the same issue running other haskell plugin https://github.com/eagletmt/neco-ghc/issues/10

I try these commands ghc-mod list, ghc-mod lang, ghc-mod flag and ghc-mod browse..all except ghc-mod browse return a big list of modules and flags, seems than the problem is not ghc, but really I don't know

hope you can help..thanks!

sramekj commented 8 years ago

I had the same problem. I did try to run :GHCi and i got an error message: *\ WARNING: /home/sramek/.ghc is writable by someone else, IGNORING! I have fixed it with chmod -go-w ~/.ghc

ghc.vim stopped reporting the error but my neco-ghc omni autocomplete stil does not work. (user pattern does work though C-x C-u)