-
Notifications
You must be signed in to change notification settings - Fork 244
Fix 1913 #1935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix 1913 #1935
Conversation
I don't think this solves it for me. I removed the merlin from opam, cloned |
Yes, it seems I don't get the |
Ah, I had to also remove the opam
but maybe that should be reported as a new issue? |
This one is indeed different. Could you try with my latest commit (b53e767) ? (It's probably only masking another, deeper, issue.) |
That does make the error go away! |
@mikeshulman it actually turns out that this is an issue that was fixed recently on the compiler ocaml/ocaml#13808, but we usually don't upgrade Merlin until a point release is made. I applied the upstream patch to replace my workaround, would you mind testing one last time ? Thanks a lot for your help ! |
Yes, that also works! Thank you for fixing it. |
This reverts commit b53e767.
474804ad04048775bd92fa0d1baa7bd798cc14c6
CHANGES: Tue Jun 24 16:10:42 CEST 2025 + merlin library - Expose utilities to manipulate typed-holes in `Merlin_analysis.Typed_hole` (ocaml/merlin#1888) - `locate` can now disambiguate between files with identical names and contents (ocaml/merlin#1882) - `occurrences` now reports stale files (ocaml/merlin#1885) - `inlay-hints` fix inlay hints on function parameters (ocaml/merlin#1923) - Fix issues with ident validation and Lid comparison for occurrences (ocaml/merlin#1924) - Handle class type in outline (ocaml/merlin#1932) - Handle locally defined value in outline (ocaml/merlin#1936) - Fix a typer issue triggering assertions in the short-paths graph (ocaml/merlin#1935, fixes ocaml/merlin#1913) - Downstreamed a typer fix from 5.3.X that would trigger assertions linked to scopes bit masks when backtracking the typer cache (ocaml/merlin#1935) - Add a new selection field to outline results that contains the location of the symbol itself. (ocaml/merlin#1942) - Fix destruct hanging when printing patterns with (::). (ocaml/merlin#1944, fixes ocaml/ocaml-lsp#1489) - Reproduce and fix a handful of jump-to-definition (locate) issues (ocaml/merlin#1930, fixes ocaml/merlin#1580 and ocaml/merlin#1588, workaround for ocaml/merlin#1934) + ocaml-index - Improve the granularity of index reading by segmenting the marshalization of the involved data-structures. (ocaml/merlin#1889) + test suite - Add a test case illustrating wrong open order proposed in issue ocaml/merlin#1900. (ocaml/merlin#1901)
This should fix the short path issue in #1913
OCaml 5.3 introduces an additional
Env.add_type
insolve_constructor_annotation
that should not be added to the graph.@mikeshulman could you check that it does solve your issue ?