Skip to content

Instantly share code, notes, and snippets.

@divarvel
Last active July 4, 2026 21:19
Show Gist options
  • Select an option

  • Save divarvel/e6aace52955036bb73fadc167cc4e682 to your computer and use it in GitHub Desktop.

Select an option

Save divarvel/e6aace52955036bb73fadc167cc4e682 to your computer and use it in GitHub Desktop.
2026-07-04T19:16:16.081 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"ocamllsp/typeSearch","params":{"doc_format":"","limit":10,"position":366,"query":"Db.task","textDocument":"<redacted>/lib/render.ml","with_doc":false},"id":1}
2026-07-04T19:16:16.082 helix_lsp::transport [INFO] ocamllsp <- {"id":1,"jsonrpc":"2.0","error":{"data":{"exn":"Ppx_yojson_conv_lib__Yojson_conv.Of_yojson_error(_, _)","backtrace":"Raised at Ppx_yojson_conv_lib__Yojson_conv.of_yojson_error in file \"yojson_conv.ml\", line 57, characters 34-80\nCalled from Lsp__Types.TextDocumentPositionParams.t_of_yojson.(fun).iter in file \"lsp/src/types.ml\", line 50269, characters 30-64\nCalled from Lsp__Types.TextDocumentPositionParams.t_of_yojson.(fun) in file \"lsp/src/types.ml\", line 50284, characters 7-25\nCalled from Ocaml_lsp_server__Req_type_search.TypeSearchParams.t_of_yojson in file \"ocaml-lsp-server/src/custom_requests/req_type_search.ml\", line 19, characters 31-84\nCalled from Ocaml_lsp_server__Req_type_search.on_request.(fun) in file \"ocaml-lsp-server/src/custom_requests/req_type_search.ml\", line 112, characters 6-41\nCalled from Fiber__Scheduler.exec in file \"fiber/src/scheduler.ml\", line 73, characters 8-11\nRe-raised at Stdune__Exn.raise_with_backtrace in file \"otherlibs/stdune/src/exn.ml\" (inlined), line 38, characters 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"},"code":-32603,"message":"uncaught exception"}}
2026-07-04T21:15:14.897 helix_lsp::transport [INFO] ocamllsp -> {"jsonrpc":"2.0","method":"ocamllsp/typeSearch","params":{"limit":10,"position":{"character":15,"line":10},"query":"Db.task","textDocument":{"uri":"file:///home/clementd/git/perso/ocaml-test/chores/recurring-todo/lib/render.ml"},"with_doc":false},"id":1}
2026-07-04T21:15:16.489 helix_lsp::transport [INFO] ocamllsp <- {"id":1,"jsonrpc":"2.0","result":[{"name":"Chores.Db.tasks","typ":"unit -> Db.task list","loc":{"end":{"character":29,"line":16},"start":{"character":0,"line":16}},"doc":null,"cost":2,"constructible":"Chores.Db.tasks _"},{"name":"task","typ":"Db.task","loc":{"end":{"character":21,"line":9},"start":{"character":17,"line":9}},"doc":null,"cost":3,"constructible":"task"},{"name":"Obj.tag","typ":"Obj.t -> int","loc":{"end":{"character":52,"line":29},"start":{"character":0,"line":29}},"doc":null,"cost":4,"constructible":"Obj.tag _"},{"name":"Re.case","typ":"Re.t -> Re.t","loc":{"end":{"character":17,"line":715},"start":{"character":0,"line":715}},"doc":null,"cost":4,"constructible":"Re.case _"},{"name":"Re.mark","typ":"Re.t -> Re.Mark.t * Re.t","loc":{"end":{"character":26,"line":669},"start":{"character":0,"line":669}},"doc":null,"cost":4,"constructible":"Re.mark _"},{"name":"Re.test","typ":"Re.Group.t -> int -> bool","loc":{"end":{"character":37,"line":763},"start":{"character":0,"line":762}},"doc":null,"cost":4,"constructible":"Re.test _ _"},{"name":"Lwt.task","typ":"unit -> 'a Lwt.t * 'a Lwt.u","loc":{"end":{"character":32,"line":1079},"start":{"character":0,"line":1079}},"doc":null,"cost":4,"constructible":"Lwt.task _"},{"name":"Seq.take","typ":"int -> 'a Seq.t -> 'a Seq.t","loc":{"end":{"character":30,"line":484},"start":{"character":0,"line":484}},"doc":null,"cost":4,"constructible":"Seq.take _ _"},{"name":"Re.marked","typ":"Re.Group.t -> Re.Mark.t -> bool","loc":{"end":{"character":36,"line":770},"start":{"character":0,"line":769}},"doc":null,"cost":4,"constructible":"Re.marked _ _"},{"name":"atan","typ":"float -> float","loc":{"end":{"character":25,"line":523},"start":{"character":0,"line":522}},"doc":null,"cost":5,"constructible":"atan _"}]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment