Eval Plugin can't handle local module imports even if they are explicitly listed in exposed-modules
#485
Labels
component: hls-eval-plugin
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Subject of the issue
The Eval Plugin in hls-0.5.0.0 seems incapable of treating local module imports properly.
Your environment
Output of
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
(Using precompiled binary automatically downloaded by vscode-haskell)
Which lsp-client do you use: VS Code
Describe your project: Minimal Repro here
Contents of
hie.yaml
: contained in the above repro.Steps to reproduce
lib/Lib/API.hs
and wait for HLS to load package successfully.Evaluate...
appears above-- >>> "hello"
, clickEvaluate...
.Lib.API
again.Expected behaviour
Actual behaviour
In Step 3, Eval plugin silently fails and Output of HLS says (stack cradle):
A cabal cradle gives a slightly different (but seems essentially the same) error message:
After Step 4: import of
Lib.API.Loaded
get highlighted as error and HLS reportsCould not find module ‘Lib.API.Loaded’
.Include debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: