leanprover / leanprover/vscode-lean4

Stale dependency diagnostic does not show up under 'Messages' after opening VS Code

Open
#424 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
313
Forks
104
Avg merge
1h 56m
Merged PRs (30d)
1

Description

Description

Typically, when opening a file with a stale dependency, there is a diagnostic under 'Messages' that informs us that 'Restart File' needs to be called. However, right after VS Code is opened and the extension launches for the first time, that diagnostic only appears in the editor and under 'All Messages' after unfolding the section, not in 'Messages'. It would be nice if this was fixed so the error is always visible in the InfoView.

Additional Information

I suspect that this is due to a race condition caused by how the InfoView is informed about new diagnostics; when the stale dependency diagnostic is received, the InfoView probably isn't listening for these diagnostics yet.

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in VS Code: open a file with a stale dependency immediately after launching the extension and inspect the InfoView diagnostic handling. Trace how diagnostics reach the Messages and All Messages sections; done means the stale-dependency diagnostic is visible under Messages on first launch as well as in the editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.