The impossible happen, mkUsage, HLS 1.5.0 #2385
Labels
component: ghcide
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
I'm really sorry, this will be a bug report without much context.
What I know: it was working with HLS 1.4 and it is now failing with HLS 1.5.
HLS fails on a file with:
fromString
is a symbol defined in our library.The problem only happen with the following setup: The symbol
fromString
is defined inA.hs
, inB.hs
I had:And the issue only happen if the module
B
is imported in moduleC
. There is obviously something else in the equation because I cannot write a proper repro.I was able to workaround the problem with the following version of
B.hs
:Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
:haskell-language-server version: 1.5.0.0 (GHC: 8.10.7) (PATH: /nix/store/aqkbkdwfyacpl7qwmzpq7js4g2jaxmza-haskell-language-server-1.5.0.0/bin/haskell-language-server) Tool versions found on the $PATH cabal: 3.4.0.0 stack: Not found ghc: 8.10.7
Which OS do you use: Linux
Which lsp-client do you use: nvim-lspconfig, but the problem happen in command line too
Describe your project (alternative: link to the project): huge proprietary codebase
Contents of
hie.yaml
: Unfortunately it defer to a script which calls bazel in order to gather flagsSteps to reproduce
I have no idea ;(
Expected behaviour
It should not fail.
Actual behaviour
It fails, see the error message printed above.
I do realize that my project have
.hs-boot
files too. Maybe it is related to #2377, I'll try that first.The text was updated successfully, but these errors were encountered: