Repository activity
40458 results across all weeks
discourage slop in the github issue template
This was proposed by @smuenzel in https://github.com/ocaml/ocaml/pull/14899#issuecomment-5460479325 .
Gabriel Scherer (@gasche)link-time linking
EDIT: changed the description to better reflect the current state of the PR. I will also post the new description as a comment for anyone following via emails (afaict, editsdon't trigger email notifications).
Raphaël Proust (@raphael-proust)ocamldebug protocol clamps headers to 32 bits
In the context of looking at ocamldebug support for Introcaml, I stumbled upon this issue: the ocamldebug request for the header of a given remote object (through the REQ_GET_HEADER or 'H' request) uses a format that only transfers 32 bits (the input_binary_int Stdlib function, along with the caml_putword C function).
Vincent Laviron (@lthls)ocamldebug: send full headers when requested.
Fixes #15012 by implementing (my interpretation of) @xavierleroy's suggestion.
Vincent Laviron (@lthls)runtime: Fix sigaltstack call with musl on certain Intel CPUs
The OCaml runtime calls sigaltstack with the size of the stack set to SIGSTKSZ. Musl libc defines that as a build-time constant.
Nat Mote (@nmote)stdlib: expose that Atomic.t is not a float in the interface
This enables better code generation when flat-float-array is on (which is the default).
Török Edwin (@edwintorok)Merlin diagnostic relatedInformation uses one-based line numbers
Description
Ali Caglayan (@Alizter)dev(nix): use packaged ocaml-index
Use the ocaml-index package provided by the nix-ocaml overlay instead of rebuilding it locally from Merlin's source tree. The overlay follows this flake's nixpkgs input and is shared by the development and check shells, removing the bespoke package definition while keeping both environments supplied with ocaml-index.
Rudi Grinberg (@rgrinberg)docs(dune): clarify promotion registration lifecycle
Clarifies the lifecycle of dynamic registrations for Dune promotion code actions, including why closed and non-owned promotion targets need per-URI registrations and when registrations are added or removed.
Rudi Grinberg (@rgrinberg)feat(formatting): support ocp-indent as a formatter
Allow document and range formatting to use ocp-indent. Formatter configuration is discovered from the document directory up to its containing workspace root, and the closest directory containing .ocamlformat or .ocp-indent selects the formatter. If both files occur in that directory, ocamlformat wins. Configuration files above the workspace root are ignored.…
Rudi Grinberg (@rgrinberg)feat(server): add persistent on-type indentation
Implement textDocument/onTypeFormatting for OCaml and ocamllex files using a separately packaged, optional ocp-indent-rpc helper.
Rudi Grinberg (@rgrinberg)fix(code-actions): reject cross-line destruct recovery
Destruct-line computes preprocessing offsets relative to the queried source line. Applying those offsets to a Merlin recovery location beginning on another line can move the edit endpoint into the middle of a UTF-8 scalar and can also target unrelated source.
Rudi Grinberg (@rgrinberg)fix(inlay-hints): constrain results to request range
Constrains textDocument/inlayHint responses to the range requested by the client.
Rudi Grinberg (@rgrinberg)fix(lsp): accept nullable code lens results
Aligns textDocument/codeLens with its nullable LSP result contract, following the regression test merged in #2150.
Rudi Grinberg (@rgrinberg)fix(lsp): accept nullable text document results
Aligns three client request codecs with their nullable LSP result contracts:
Rudi Grinberg (@rgrinberg)fix(lsp): accept nullable workspace folder results
Aligns workspace/workspaceFolders with its nullable LSP result contract, following the regression test merged in #2150.
Rudi Grinberg (@rgrinberg)fix(lsp): accept workspace symbol result variants
Aligns workspace/symbol decoding with the LSP result variants: legacy SymbolInformation[] responses and resolvable WorkspaceSymbol[] responses.
Rudi Grinberg (@rgrinberg)fix(lsp): preserve singular location result shapes
Preserves the singular object shape returned by definition, declaration, type-definition, and implementation requests.
Rudi Grinberg (@rgrinberg)fix(lsp): preserve trailing newlines in edit ranges
Range.resize_for_edit discarded the terminal empty segment when replacement text ended with a newline. As a result, ranges for replacements such as "x\n" ended on the previous line and did not select the full inserted text.
Rudi Grinberg (@rgrinberg)fix(ocamlformat-rpc): degrade gracefully when the process dies at startup
An ocamlformat-rpc process that dies or produces garbage during startup
Rudi Grinberg (@rgrinberg)