leanprover / leanprover/lean4

lsp: workspace/inlayHint/refresh

Open
#7,488 6 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P-low
Dominant language
Lean
Stars
9.2k
Forks
990
Avg merge
1d 17h
Merged PRs (30d)
175

Description

lean4-mode in Emacs had been working well for me until 2 weeks ago. However, starting with 4.18.0-rc1, now the "Warnings" buffer gets spammed with messages:

⛔ Warning (lsp-mode): Unknown request method: workspace/inlayHint/refresh

These obscure the "Lean Goal" buffer and require continual user interactions to dismiss.

Other emacs users report the same problem in this zulip discussion. From that discussion, I gather that Lean ought to be able to disable the workspace/inlayHint/refresh method for lsp implementations that don't support it.

Contributor guide

Open the contributing guide

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 with lean4-mode's interaction with lsp-mode and the workspace/inlayHint/refresh request, using the linked Zulip discussion for context. Done means unsupported implementations no longer spam Emacs's Warnings buffer while the refresh request remains compatible with implementations that support it.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.