haskell / haskell/haskell-language-server

Variable that is in scope marked as not in scope

Open
#4,577 2 comments 0 reactions 0 assignees View on GitHub
status: needs info type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

### Your environment

Which OS do you use?
Windows
Which version of GHC do you use and how did you install it?
9.12.2 from ghcup
How is your project built (alternative: link to the project)?
![Image](https://github.com/user-attachments/assets/2d540b94-eff9-4bc9-a3c6-b2efe7737259)

Which LSP client (editor/plugin) do you use?
VS Code + haskell.haskell extension
Which version of HLS do you use and how did you install it?
2.10.0.0 from ghcup
Have you configured HLS in any way (especially: a `hie.yaml` file)?
no

### Steps to reproduce

1. Start HLS in VS Code

### Expected behaviour

Function declared in imported module is not highlighted as error

### Actual behaviour

Function is marked by "Variable not in scope" even when module explicitly exports it

### Debug information

[hlsistheworstlsiveeverseen.log](https://github.com/user-attachments/files/20028643/hlsistheworstlsiveeverseen.log)
[HSCifirWorks.cabal.sincegithub.txt](https://github.com/user-attachments/files/20028698/HSCifirWorks.cabal.sincegithub.txt)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.