spf13 / spf13-vim

The ultimate vim distribution
http://vim.spf13.com
Apache License 2.0
15.55k stars 3.64k forks source link

Error when writing Haskell files #625

Open sproctor opened 10 years ago

sproctor commented 10 years ago

I get this error when I write a Haskell file.

Error detected while processing BufWritePost Auto commands for "*.hs": E492: Not an editor command: GhcModCheckAndLintAsync

I do have ghc-mod installed. If I remove the sections of .vimrc around lines 636 and 915 all is well.

rhapsodyv commented 10 years ago

Seems it's searching for "ghcmod", but cabal have installed "ghc-mod"... I created a symbolic link ghcmod-->ghc-mod and it working fine for me now.

sproctor commented 10 years ago

Is there any difference between that and removing the offending lines? With them removed I was still getting the error reporting from Haskell, which I assume was what the removed sections were intended for. There is a comment next to one of those sections mentioning that the functionality might be handled by another plugin.

Regardless of that, having that same code in two places seems like an obvious mistake.

franklinexpress commented 8 years ago

how did you add the symbolic link? in mac terminal or in vimrc? I'm having the same issue

sproctor commented 8 years ago

On my computer it's $HOME/.cabal/bin which is in my $PATH. There didn't seem to be any benefit to this over just removing those lines. That functionality is handled by another program whose name I can't remember at the moment, AFAIK.

wegry commented 8 years ago

Still an issue.

zibo-wang commented 8 years ago

There is a line setting up ghc-mod, you just search ghcmod in .vimrc file, and it is around line 1036, change the "ghcmod" to "ghc-mod", then it will work well.