Open donut opened 8 years ago
Thanks for the report @donut.
Technical Notes - We need to implement ghc-mod root <file>
and use its result as the working directory. I'm thinking a method like String root(String path)
which gets called for commands. It'll probably require some light refactoring of the command methods as well.
Any ideas about what might be different about my setup that's revealing this bug?
@donut - Yes, I should have mentioned that. It seems your module files (the .iml
ones) are in your .idea/
directory. Ideally, they should reside alongside each corresponding .cabal
file. If you are using Stack, you can try to import the project following the steps outlined in the quick start guide. For best results, close the project, remove the .idea
directory, and then try to import the project using the Stack model.
That worked. Thank you!
I'll still leave this open until I implement the ghc-mod root
command to avoid folks running into this in the future.
by the way, since this issue has been fixed ghc-mod soon will not have that ugly requirement anymore. it was initially introduced in 5.4.0 version of ghc-mod to avoid some race conditions and has been spoiling lives of vim users since than. after 5.5.0 it will no longer, as it seems
@a10nik - Thanks for bringing this up. I will leave this open until I get a chance to confirm that it works well with 5.5.0.
I'm running into this error. Looks like anything that uses
ghc-mod
is broken.