Thicket thicket
ocaml
REPOS 27
SEARCH THE ARCHIVE

Repository activity

40458 results across all weeks

  1. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    stdlib: add slicing functions to Set and Map

    This PR adds the following three functions in Set (here their signature from MoreLabels.Set):

    gmevel
  2. Pull requestW47.2026 · 16–22 Novocaml/ocaml

    typing: reject atomic locations to polymorphic fields

    Fixes #14987.

    Demetrios Chiuratto Agourakis (@agourakis82)
  3. IssueW47.2026 · 16–22 Novocaml/ocaml

    vsnprintf_l failure is not checked in caml_alloc_sprintf_l

    Printf.sprintf "%.*f" max_int 1.0 raises Invalid_argument "Buffer.add_substring" on macOS, because caml_alloc_sprintf_l does not check whether vsnprintf_l succeeded.

    KC Sivaramakrishnan (@kayceesrk)
  4. IssueW47.2026 · 16–22 Novocaml/ocaml-lsp

    Let-syntax loses highlighting in 1.28.1

    I am using OCaml Platform for VS Code with OCaml 5.5.1, and when I upgraded from ocaml-lsp-server.1.27.0 to ocaml-lsp-server.1.28.1, I lost the proper syntax highlighting for custom let-syntax.

    Brandon Stride (@brandonzstride)
  5. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    [1.26] Fix build with `stdune >= 3.25`

    Fixes #2236 for the 1.26.x line (OCaml 5.4).

    1zumiSagiri
  6. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(code-actions): preserve unused function argument labels

    Mark as unused rewrites the parameter in let f ~x = () to ~_x. The compiler warning disappears, but a call such as f ~x:1 then fails. Optional parameters have the same problem.

    Sora Morimoto (@smorimoto)
  7. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(combine-cases): preserve pipes and split at the case arrow

    Combine-cases removed literal pipes from right-hand sides, changing "Face | card!" to "Facecard!". It also mistook arrows in strings, comments and function bodies for case separators. Combining two branches that both return fun x -> x + 1 could leave an unbound x.

    Sora Morimoto (@smorimoto)
  8. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(document-store): release closed Dune promotion targets

    Closing an unsaved OCaml document while Dune has a pending promotion can republish a Merlin type error from the discarded buffer. Its Merlin configuration process can also remain alive after the last document closes.

    Sora Morimoto (@smorimoto)
  9. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(dune): honour dynamic code-action registration support

    Dune promotions trigger client/registerCapability and client/unregisterCapability even if the client has never opted into dynamic code-action registration. Clients can still request and execute a promotion through the static code-action provider.

    Sora Morimoto (@smorimoto)
  10. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(extract-function): preserve application precedence

    Extracting the argument in print_int (x * 2) generates print_int fun_name x. OCaml parses this as a two-argument call to print_int, so the edited program fails to compile.

    Sora Morimoto (@smorimoto)
  11. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(extract-local): keep bindings inside conditional branches

    Extracting 1 / 0 from if false then 1 / 0 else 42 moves the new binding before the conditional. The program then raises Division_by_zero instead of returning 42.

    Sora Morimoto (@smorimoto)
  12. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(extract-local): keep bindings inside parameterised functions

    Using Extract local on x + 1 in let f x = x + 1 inserts the new binding between f and its parameter. Inside an explicit lambda, the binding can move outside the scope of x.

    Sora Morimoto (@smorimoto)
  13. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(infer-intf): leave out items bound by open struct

    Fixes #2231.

    Laksh Agarwal (@Lotion-3)
  14. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(inference): release temporary implementation documents

    Requesting Insert inferred interface or Update signatures can open the implementation from disk. Its Merlin configuration reference was never released, leaving the configuration process running after the editor closed the interface.

    Sora Morimoto (@smorimoto)
  15. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(jsonrpc-fiber): release unanswered requests while draining

    When an editor disconnects while a deferred command is waiting for a client reply, the JSON-RPC session can wait indefinitely during shutdown. The pending outbound request was only stopped after all deferred replies had finished.

    Sora Morimoto (@smorimoto)
  16. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(lev-fiber): account for signals inherited at startup

    Starting ocamllsp from a process that blocks an extra signal can make a normal shutdown report cannot restore old sigmask. For example, the server exits with status 1 if it inherits a blocked SIGUSR1.

    Sora Morimoto (@smorimoto)
  17. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(lsp): preserve U+FEFF during document edits

    Replacing just U+FEFF in a\u{FEFF}b with x should leave axb in the document. The server stores ax instead, so subsequent requests operate on different text from the editor.

    Sora Morimoto (@smorimoto)
  18. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(lsp-fiber): deliver errors from cancellable requests

    A caller using request_with_cancel can wait indefinitely for a request that has already received an ordinary JSON-RPC error. The cancellation handler only unregisters its listener when the request fiber returns normally.

    Sora Morimoto (@smorimoto)
  19. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(server): avoid waiting for initialisation on early exit

    Without ocamlformat-rpc on PATH, the server waits for client initialisation before reporting that formatter support is unavailable. If the client closes its input or sends Exit before initialising, that wait prevents the server from shutting down cleanly.

    Sora Morimoto (@smorimoto)
  20. Pull requestW47.2026 · 16–22 Novocaml/ocaml-lsp

    fix(tests): build Dune RPC fixtures with Dune 3.25

    Building the test suite on master fails with Dune 3.25 before any tests run. The fake RPC server uses a conversion module that moved to Stdune, and constructing a registry entry now requires an abstract process ID.

    Sora Morimoto (@smorimoto)