ocaml / merlin

Context sensitive completion for OCaml in Vim and Emacs
https://ocaml.github.io/merlin/
MIT License
1.59k stars 232 forks source link

Merlin jump crashes #1862

Closed voodoos closed 1 day ago

voodoos commented 3 weeks ago

Here is a backtrace from the lsp server:


[Trace - 14:47:44] Received response 'textDocument/codeAction - (50)' in 33ms. Request failed: uncaught exception (-32603).
Error data: {
    "exn": "File \"src/analysis/jump.ml\", line 64, characters 6-12: Assertion failed",
    "backtrace": "Raised at Merlin_analysis__Jump.fun_pred.normalize_fun in file \"src/analysis/jump.ml\", line 64, characters 6-36
Called from Merlin_analysis__Jump.fun_pred in file \"src/analysis/jump.ml\", line 76, characters 44-63
Called from Merlin_analysis__Jump.find_map in file \"src/analysis/jump.ml\", line 98, characters 10-16
Called from Merlin_analysis__Jump.find_node in file \"src/analysis/jump.ml\", line 112, characters 10-52
Called from Merlin_analysis__Jump.get in file \"src/analysis/jump.ml\", line 181, characters 17-38
Called from Merlin_utils__Std.let_ref in file \"src/utils/std.ml\", line 727, characters 8-12
Re-raised at Merlin_utils__Std.let_ref in file \"src/utils/std.ml\", line 733, characters 4-13
Called from Merlin_utils__Misc.try_finally in file \"src/utils/misc.ml\", line 45, characters 8-15
Re-raised at Merlin_utils__Misc.try_finally in file \"src/utils/misc.ml\", line 62, characters 10-24
Called from Stdlib__Fun.protect in file \"fun.ml\", line 34, characters 8-15
Re-raised at Stdlib__Fun.protect in file \"fun.ml\", line 39, characters 6-52
Called from Merlin_kernel__Mocaml.with_state in file \"src/kernel/mocaml.ml\", line 18, characters 8-38
Re-raised at Merlin_kernel__Mocaml.with_state in file \"src/kernel/mocaml.ml\", line 24, characters 4-15
Called from Ocaml_lsp_server__Document.Single_pipeline.use_with_config.(fun) in file \"ocaml-lsp-server/src/document.ml\", line 161, characters 20-75
Called from Stdune__Exn_with_backtrace.try_with in file \"otherlibs/stdune/src/exn_with_backtrace.ml\", line 9, characters 8-12
Re-raised at Stdune__Exn.raise_with_backtrace in file \"otherlibs/stdune/src/exn.ml\" (inlined), line 38, characters 27-56
Called from Stdune__Exn_with_backtrace.reraise in file \"otherlibs/stdune/src/exn_with_backtrace.ml\", line 20, characters 33-71
Called from Fiber__Core.O.(>>|).(fun) in file \"fiber/src/core.ml\", line 250, characters 36-41
Called from Fiber__Scheduler.exec in file \"fiber/src/scheduler.ml\", line 73, characters 8-11
Re-raised at Stdune__Exn.raise_with_backtrace in file \"otherlibs/stdune/src/exn.ml\" (inlined), line 38, characters 27-56
Called from Stdune__Exn_with_backtrace.reraise in file \"otherlibs/stdune/src/exn_with_backtrace.ml\", line 20, characters 33-71
Called from Fiber__Scheduler.exec in file \"fiber/src/scheduler.ml\", line 73, characters 8-11
"
}
``