Invalid import is not reported and it breaks the eval plugin #4487
Labels
component: ghcide
component: hls-eval-plugin
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
My environment
OS: MacOS
GHC 9.10.1 from ghcup
Project: https://github.com/noughtmare/tmp.oYnk68xwKl
LSP client: VS Codium+vscode-haskell
HLS: 2.9.0.1 from ghcup
No special configuration
Steps to reproduce
app/Main.hs
Evaluate...
actionExpected behaviour
First of all, of course there is an obvious error in the project: the
Foo
module is not listed in the cabal file. This issue is about how HLS functions in spite of that error.I expect an error on the line
import Foo
inapp/Main.hs
, because that module is not valid in the cabal package. Furthermore, clicking theEvaluate...
action should either work without problems or it would also be acceptable if the action was not shown in the first place.Actual behaviour
HLS reports no errors in
app/Main.hs
. Clicking theEvaluate...
action results in a cryptic error:Debug information
The text was updated successfully, but these errors were encountered: