-
Notifications
You must be signed in to change notification settings - Fork 59
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
"parse error in ghcmod: Could not parse..." using ghc-mod >= 4.1.0 #47
Comments
Are you using the latest ghcmod-vim? |
Yes, I am using HEAD at the moment. It happens much more rarely now, so I suppose there's something else not being parsed correctly. A project I have handy where it always outputs this error for all src files is bweakfwu. If you clone it and run ghcmod-vim on e.g. this file: https://github.com/plaimi/bweakfwu/blob/master/src/Main.hs -- you should see the error. |
It works for me. git clone https://github.com/plaimi/bweakfwu
cd bweakfwu
vim bweakfwu.cabal # Remove GLUT version constraint
cabal sandbox init
cabal install -j4 --only-dependencies --enable-tests
vim src/Main.hs :GhcModCheck Could you show me the output of |
-----BEGIN PGP SIGNED MESSAGE----- On 14/05/14 14:16, Kohei Suzuki wrote:
|| parse error in ghcmod! Could not parse the following ghc-mod Which is a bit wonky, but hardly cryptic. However, if I run it on the $ ghc-mod check src/Main.hs And it is on this particular checkout I get the ghcmod-vim parse error: Main.hs|| : cannot satisfy -package-id So the problem is elusive. Alexander iF4EAREIAAYFAlNzYdIACgkQRtClrXBQc7VYHwD/Qmj3zA7JQh6VltSrs89TQeof |
If I remove gloss package, I get the same error message from ghc-mod.
But I don't get any parse error from ghcmod-vim. |
When using ghc-mod 4.1.0 or newer (including current git HEAD), ghcmod-vim HEAD outputs the following on most files:
|| parse error in ghcmod! Could not parse the following ghc-mod output: (use -v for more information)
The text was updated successfully, but these errors were encountered: