Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLS does not update variables when working on multiple files #3419

Closed
Karthik-Dulam opened this issue Dec 21, 2022 · 2 comments
Closed

HLS does not update variables when working on multiple files #3419

Karthik-Dulam opened this issue Dec 21, 2022 · 2 comments
Labels
status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@Karthik-Dulam
Copy link

Karthik-Dulam commented Dec 21, 2022

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

@Karthik-Dulam Karthik-Dulam added status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Dec 21, 2022
@fendor
Copy link
Collaborator

fendor commented Dec 21, 2022

Hi, thank you for bug report!

It sounds like a duplicate of #1822

@Karthik-Dulam
Copy link
Author

Thank you, generating a hie.yaml using gen-hie fixed the problem.

@Karthik-Dulam Karthik-Dulam closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

2 participants