haskell / haskell/haskell-language-server

Diagnostics don't always refresh on edits.

Open
#4,985 1 comment 3 reactions 0 assignees View on GitHub
component: ghcide component: hls-graph type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

### Your environment

Windows/VSCode/ghc-9.10 currently but I think I've seen this issue with ghc-9.12 too.

### Steps to reproduce

### The Problem

Sometimes HLS doesn't refresh the diagnostics after the file changed.

Image

I think this is some race condition between updating diagnostics and saving the file.
That is a rapid succession of edit->save events makes this happen.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in Windows with VSCode and GHC 9.10 by making rapid edit-save changes in a Haskell file. Observe whether HLS diagnostics refresh after each change, and use reliable diagnostic refreshes after rapid edits as the completion criterion.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.