Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when writing Haskell files #625

Open
sproctor opened this issue Jun 17, 2014 · 6 comments
Open

Error when writing Haskell files #625

sproctor opened this issue Jun 17, 2014 · 6 comments

Comments

@sproctor
Copy link

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
Copy link

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
Copy link
Author

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
Copy link

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

@sproctor
Copy link
Author

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
Copy link

wegry commented Feb 4, 2016

Still an issue.

@zibo-wang
Copy link

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.

ZhenjieRuan pushed a commit to ZhenjieRuan/spf13-vim that referenced this issue Mar 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants