-
-
Notifications
You must be signed in to change notification settings - Fork 309
Closed
Description
Hi, I just install NormalNvim to use with OCaml.
I just went into Mason and installed ocamllsp.
But when I begin editing a .ml file, I get this error:
exn = 'File "lsp/src/import.ml", line 219, characters 16-22: Assertion failed'
}
lsp_signatur handler RPC[Error] code_name = InternalError, message = "uncaught exception" data = {
acktrace = 'Raised at Lsp__Import.Json.Nullable_option.yojson_of_t in file "lsp/src/import.ml", line 219, characters 16-28\nCalled from Lsp__Types.SignatureHelp.yojson_of_t in file "lsp/src/types.ml", lines 49241-49243, characters..
.s 27-56\nCalled from Stdune__Exn_with_backtrace.reraise in file "otherlibs/stdune/src/exn_with_backtrace.ml", line 20, characters 33-71\nCalled from Fiber__Scheduler.exec in file "fiber/src/scheduler.ml", line 73, characters 8-11\n',
backtrace = 'Raised at Lsp__Import.Json.Nullable_option.yojson_of_t in file "lsp/src/import.ml", line 219, characters 16-28\nCalled from Lsp__Types.SignatureHelp.yojson_of_t in file "lsp/src/types.ml", lines 49241-49243, characters..
exn = 'File "lsp/src/import.ml", line 219, characters 16-22: Assertion failed'
backtrace = 'Raised at Lsp__Import.Json.Nullable_option.yojson_of_t in file "lsp/src/import.ml", line 219, characters 16-28\nCalled from Lsp__Types.SignatureHelp.yojson_of_t in file "lsp/src/types.ml", lines 49241-49243, characters..
}
and here's the file I'm editing:
let x = [ 2; 2; 1; 3; 5; 76 ]
let rec sum = function [] -> 0 | hd :: tl -> hd + sum tl
The error only occurs when the cursor is after the function on line 2.
I'm using ocaml 5.3.0, ocamllsp 1.22.0 and NormalNvim v4.0.9
The error does not happen in VSCode, so I think it as something to do with how the lsp is set up in Neovim (lsp.lua), but I'm not smart enough to fix it.
Metadata
Metadata
Assignees
Labels
No labels