Open andrewufrank opened 3 years ago
Not knowing anything about this particular issue of implicit-hie, but there is also cabal-hie
which generates a hie.yaml
based on the generated plan.json
(in other words, you need to call cabal build
before cabal-hie
works).
Additionally, if you use cabal 3.4
you don't need a generated hie.yaml
as cabal is smart enough to figure it out on its own.
It is enough to have a hie.yaml
:
cradle:
cabal:
@andrewufrank hi, thanks for the bug report, although the workaround provided by @fendor would make it work, it should work out-of-the-box too
could you paste the hie.yaml
generated by gen-hie
and the .cabal
file?
From the logs:
/home/frank/Workspace11/uniformBase/uniformSources/uniform-algebras/app/Main.hs
src\
So if the .cabal
file has an excutable stanza, this would be a implicit-hie bug
@jneira: I have to check later (at the moment there is no executable).
@fendor: thank you for the clarification. I was not aware that I could use cabal-hie - could you see that documentation could be improved? I am grateful that it is automatic and a minimal cradle is all what is needed. Now I can start HLS without getting error message about no prefix matches
. I hope it works as intended now! Thank you for help!
I use vscode and have installed implicite-hie with cabal for ghc 8.10.4. when I start HLS in vscode I get the error message:
The project is build with cabal build and contains a trivial main in
app
and three modules inlib/uniform-algebra
.The same appears when I create the craddle with
gen-hie > hie.yaml
. The result is that HLS does not work for this directory (it works on other directories in other projects. What do I wrong? Thank you for HLS.. when it works it is very helpful!