Repository navigation
Fix the master build by requiring lsp below 1.28 - #9234
Merged
Merged
Conversation
lsp 1.28.1 (opam-repository, 2026-11-04) adds `SnippetTextEdit` to the edits of a text document edit, which the closed variant annotation in analysis/src/cli.ml doesn't accept, so a fresh opam install (the test-devcontainer job) no longer builds. Cached switches still have 1.27.0, which ocaml-lsp-server 1.27.0 also requires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Kbf3gLWSz9kGHhX9sue9WB Signed-off-by: Christoph Knittel <ck@cca.io>
Changelog🏠 Internal
Semantic Diff1 commit · Full page Require lsp below 1.2890f5540 · cknitt + Claude · Nov 05, 2026, 12:48 UTC lsp 1.28.1 (opam-repository, 2026-11-04) adds |
fhammerschmidt
approved these changes
Nov 5, 2026
rescript
@rescript/belt
@rescript/darwin-arm64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/runtime
@rescript/win32-x64
commit: |
|
Developer playground preview: https://rescript-lang.github.io/rescript/dev-playground/?version=pr-9234 |
cknitt
added a commit
that referenced
this pull request
Nov 9, 2026
The opam cache key is the hash of the *.opam files, so a library without an exact version floats to whatever opam serves when a platform's cache is rebuilt, as lsp 1.28 did before #9234. Every library in the binaries now has an exact version, including those that come in through lsp and luv. ppx_yojson_conv_lib v0.17.0 needs OCaml 5.1, so its range lets the OCaml 5.0 job use v0.16.0. Claude-Session: https://claude.ai/code/session_01Kbf3gLboTZTRoQAbXc4ZzC Signed-off-by: Christoph Knittel <ck@cca.io> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test-devcontainerfails on every new PR since yesterday, for example #9232:lsp1.28.1 reached opam-repository on 2026-11-04 at 15:50 UTC and addsSnippetTextEditto the edits of a text document edit.analysisonly requiredlsp >= 1.23.0, so the devcontainer job, which runs a freshopam install ., now gets 1.28.1. The other jobs use cached switches that still have 1.27.0.This caps
lspbelow 1.28 indune-projectand regeneratesanalysis.opam. With the cap, the dev setup resolvesocaml-lsp-serverto 1.27.0, which requireslsp = 1.27.0and OCaml 5.5. Supporting 1.28 needs aSnippetTextEditcase incli.mlandlsp >= 1.28.0, because the closed variant can't match both versions. That can be a separate change.🤖 Generated with Claude Code
https://claude.ai/code/session_01Kbf3gLWSz9kGHhX9sue9WB