Thicket thicket
cambridge
REPOS 4

Projects covers Forester, Merry, xdge and ocaml-crockford.

W35.2026 · 24–30 Aug / Issue

LSP: link autocompletion broken

tangled · jonmsterling.com/ocaml-forester · did:plc:jjiv56ot7d6sgethto3jr3r5

When editing via the LSP, link completion tokens trigger the random | sequential suggestion now (see ad10c9bff1f9977dd0e337bd414c2a537f5e971e). This had been fixed I thought...

Comments

did:plc:jjiv56ot7d6sgethto3jr3r5

Interestingly, going through the old commits, I can't find commit in the past few days where it works at all. But it was working for me yesterday. This suggests to me that the issue may be intermittent.

I bisected the issue and found the first bad commit:

4e7cfd5597176716d29b100cb6eec3da35409d05 is the first bad commit
commit 4e7cfd5597176716d29b100cb6eec3da35409d05 (HEAD)
Author: Kento Okura <kentookura@gmail.com>
Date:   Sun Aug 16 12:04:55 2026 +0200

    Filter docs trees from lsp handler ouptut

    Fix some links, and a bug that resulted in spurious broken link errors

 bin/forester/main.ml                     |  8 ++++----
 lib/compiler/Driver.ml                   |  4 +++-
 lib/compiler/State.ml                    | 13 +++++++------
 lib/language_server/Completion.ml        |  3 ++-
 lib/language_server/Forester_lsp.ml      |  5 +----
 lib/language_server/Util.ml              |  2 ++
 lib/language_server/Workspace_symbols.ml |  6 +++++-
 7 files changed, 24 insertions(+), 17 deletions(-)

did:plc:jjiv56ot7d6sgethto3jr3r5

Upon further investigation, I think this problem may occur only on the forester-notes.org forest, which makes sense given the change to Completion.ml in the above commit.


did:plc:4gj3ihsdh6fn3aqq5bdnw5w3

Fixed by https://tangled.org/jonmsterling.com/ocaml-forester/commit/a6f2bf04c8e2fc9432a72a2c68fd309827a3b164