Open berberman opened 3 years ago
@Ailrun was right, I overlooked default plugins at that time... https://github.com/haskell/haskell-language-server/issues/741#issuecomment-764745971
@berberman iguess it still is reproduced for the two modules which still life in default. If that is the case it would be great fill anisue in implicit hie, to investigate the cause tham may affect other projects.
@jneira Do we even need to leave them in default
plugin directory? I mean, yes, this issue is still better to be fixed for other projects, but for HLS itself, I think we can either move those two example plugins into the src
directory or into an example plugin package.
Sure, the correct place even without this bug would be in ./plugins/hls-example-plugin
imo.
But i would close this one when we have an issue tracking this upstream.
Yes, probably that will be better for this issue itself. I just wanted to be clear about HLS devs' problem.
HLS version:
I found HLS could not load modules in this directory: for example, I opened Example.hs, and I got
The cradles generated by implicit-hie didn't include this file. However,
worked without error, and further, after I changed
loadImplicitHieCradle
toHieBios.loadImplicitCradle
athttps://github.com/haskell/haskell-language-server/blob/c95b0766fe363a4de90e4532204e05bcc092ab59/ghcide/session-loader/Development/IDE/Session.hs#L117
and
https://github.com/haskell/haskell-language-server/blob/c95b0766fe363a4de90e4532204e05bcc092ab59/ghcide/session-loader/Development/IDE/Session.hs#L389
i.e. using hie-bios to load the cradle rather than implicit-hie-cradle, I could load these modules successfully. So I think this should be a bug in implicit-hie. It seems that implicit-hie doesn't support common stanzas, but after normalizing these parts (by running
cabal format
), the result is still inaccurate: