haskell / haskell/vscode-haskell

Whenever I add dependency to cabal, I have to restart VS Code

Open
#1,171 1 comment 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
TypeScript
Stars
597
Forks
98
PR merge metrics
No merged PRs in 30d

Description

Whenever I add dependency to cabal, I have to restart VS Code so that the plugin can see it and doesn't display missing imports and other errors. `cabal build` or `killall -9 haskell-language-server-9.10.1` don't help, only restarting does.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in VS Code by adding a dependency to the Cabal configuration, then run `cabal build` and the documented HLS restart command to compare their effects. Trace how the VS Code extension notices dependency changes; done means new imports are recognized without restarting VS Code and without stale diagnostics.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, typescript, vscode
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.