HLS does not update variables when working on multiple files #3419
Labels
status: needs triage
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Your environment
stack new bug --resolver nightly-2022-11-12
This is a ghc-9.4.2 snapshot.
Which OS do you use?
ArchLinux
Which version of GHC do you use and how did you install it?
GHC 9.2.4 from Stack
How is your project built (alternative: link to the project)?
Stack build
Which LSP client (editor/plugin) do you use?
Neovim+LanguageClient-neovim and HLS-tools.
I was able to reproduce this issue on VS Code too.
Which version of HLS do you use and how did you install it?
1.8.0 from GHCup
Have you configured HLS in any way (especially: a
hie.yaml
file)?No.
Steps to reproduce
Prepare a new project using stack new.
stack new bug --resolver nightly-2022-11-12
nvim app/Main.hs src/Lib.hs -p
Edit Lib.hs
data Foo = Spam | Eggs
Edit Main.hs
bug = Eggs
Expected behaviour
No error from HLS.
No error while compiling using GHC.
Actual behaviour
Data Constructor not in scope: Eggs
No error while compiling using GHC.
Debug information
The text was updated successfully, but these errors were encountered: