Repository activity
40458 results across all weeks
intf-c: replace redefine with redeclare
Trying to be super pedantic here, but most of the time the headers have declarations of entities, not definitions. The example using caml_young_limit is a declaration.
Antonin Décimo (@MisterDA)manual: clarify that a character literal denotes a single byte
Closes #15082.
Abhay Chaudhary (@Abhayindia)manual: clarify toplevel directive termination
Clarify that the ;; requirement shown at the start of the toplevel chapter applies to interactive input. Initialization files, script files, #use files, and strings passed with -e are parsed as use files, where definitions and directives need no ;; terminator.
John Riley (@jrile018)manual: correct native linker input suffixes
Correct the native compiler manual so it lists only the C object and static-library suffixes that ocamlopt actually accepts as positional linker inputs. Apply the same correction to the C-interface chapter and retain the Windows .obj/.lib equivalents.
John Riley (@jrile018)manual: document compiler error location format
Document the source-location convention used by compiler error messages. Line numbers are one-based, while the values printed after characters are zero-based byte offsets within their respective lines. The start is inclusive, the end is exclusive, and multi-line endpoints are relative to the first and last lines.
John Riley (@jrile018)manual: update higher-rank polymorphism for OCaml 5.5
Update the higher-rank polymorphism tutorial for the polymorphic parameter support introduced in OCaml 5.5.
John Riley (@jrile018)merge `flexdll` within the compiler repository
At the maintainer meeting yesterday, @dra27 proposed merging flexdll within the compiler repository, rather than having it as a submodule. (Personal note: the usability of submodules is horrible, I have never been happy when using them in a project.) There is the hope that this can allow a gradual simplification of the flexdll logic, de-emphasizing its role …
Gabriel Scherer (@gasche)ocamldoc: restore record closing-brace styling
Fixes #9127
John Riley (@jrile018)stdlib: document backtrace behavior of raise
Fixes #7375
John Riley (@jrile018)stdlib: missing @since tag on Atomic.Array
Atomic.Array (#14380) was merged in 416bc3023dd2ef424644a56341944e9c184e43f6, so it will be released in 5.6.
Gabriel Scherer (@gasche)gy
abtparnian-svgTopiary formatter
I had just tried to follow the patterns of ocp-indent. I have been running this a few day okay at this point. One thing I don’t know about tho is the range call since Topiary doesn’t support formatting a range so it must reformat the whole document.
toastalchore(deps): bump DeterminateSystems/update-flake-lock from 28 to 29
Bumps DeterminateSystems/update-flake-lock from 28 to 29.
Dependabot (@dependabot)docs(server): document switchImplIntf/inferIntf params as an array
The specs for ocamllsp/switchImplIntf and ocamllsp/inferIntf say params is a bare DocumentUri, but both handlers only accept a single-element array (Some (List [ json_uri ])), and JSON-RPC requires params` to be an array or object anyway, so a bare string is rejected before reaching the handler. This updates both specs to match the implementation, as suggest…
emre (@dayangac)fix(completion): resolve documentation of operators, not their module
completionItem/resolve substitutes the label into the document and then asks merlin for documentation at the original cursor position. For an operator completed after a module path (Bool. → Bool.(&&)), that position is the opening paren, where merlin documents the module (Bool, Stdlib) rather than the operator.
emre (@dayangac)fix(diagnostics): report fatal warnings with error severity
The severity was derived from error.source alone. Merlin's Msupport.prerr_warning renders each warning to a string and wraps it with Location.error ~source:Warning, so the report's kind (Report_warning_as_error) is lost — the rendered "Error (warning ...)" / "Error (alert ...)" prefix is the only signal left. This checks that prefix, the same convention co…
emre (@dayangac)test(code-lens): cover functions next to a type alias
On current master the lenses are nat -> nat for the function annotated with nat, and int -> int for both incr (annotated) and incr2 (unannotated), so it no longer reproduces. Hover agrees. This adds the issue's example as a regression test. Test only, no code change — it will need the no changelog label.
emre (@dayangac)test(document-highlight): cover module names
On current master, requesting highlights on M — either at its declaration module M = struct ... end or at a use in M.x — returns the declaration plus both uses (M.x and module N = M). This adds that as a regression test. Test only, no code change — it will need the no changelog label.
emre (@dayangac)test(document-symbol): cover functions with explicit type annotations
On current master (OCaml 5.5) both functions are listed as symbols and both get code lenses, so the bug no longer reproduces. This adds the issue's example as a regression test so it stays fixed. Test only, no code change — so no CHANGES entry; it will need the no changelog label for the changelog check.
emre (@dayangac)test(hover): cover bindings introduced by and*
let* promise_1 = my_fun1 ()
emre (@dayangac)