Repository activity
40458 results across all weeks
Soundness bug in variance composition
Whilst working on some changes to variance, an agent noticed a soundness bug in composition of variance. The difficulty comes from the interaction of bivariant parameters and invariant parameters. Soundness of GADTs requires that invariant parameters be handled with actual on the nose equality, so a bivariant parameter inside an invariant parameter needs to …
Leo White (@lpw25)Type checker gets confused around existential escape in nested patterns
Here is a small example:
Richard Eisenberg (@goldfirere)Typing recovery, new follow up
A few issues (presumably the last ones for now) that came up while porting Merlin to the new recovery (cc @voodoos).
Xavier Van de Woestyne (@xvw)Update `ocamllex` man page with the current `-ml` state
Since #1585 was merged the performance improved and the manual was updated in #2037. This PR updates the man page accordingly.
Marek Kubica (@Leonidas-from-XIV)Use of In_channel.input_all prevents compiling files >= 16 MB on 32-bit architectures
Since d08ce5b604cce1a47a3cc04980b00903fa227ca8, sources are read in one go with In_channel.input_all, which fails with >= 16 MB files on 32-bit architectures (cf. https://github.com/ocaml-community/Camomile/issues/16). I'm not sure whether this should be considered a bug or (not supported) feature.
Stéphane Glondu (@glondu)Warning fails to trigger for open of a first-class module
Here is a small repro:
Richard Eisenberg (@goldfirere)[@remove_aliases]: keep the aliases inside modules passed to functors (fixes #13979)
Fixes #13979. Related: #13997.
Udaykishore Resu (@udaykishore-resu)better treatment of rigid type annotations
François Pottier (@fpottier)driver/pparse: support source files larger that max_string_length
Since #12403, the compiler reads entire source files at once. This allows re-printing the source at arbitrary locations in error messages. In #15125 @glondu reported that this causes a build failure for Camomile on Debian 32bit systems, due to some source files that are larger than 16MB, that is Sys.max_string_length on 32bit systems (but presumably not jsoo…
Gabriel Scherer (@gasche)make closure computation linear in nesting depth - part A
What: the closure pass recomputed every function group's free variables once per enclosing level, so compiling N nested local functions was quadratic in N. It now memoises them, so each group's set is computed once per compilation unit.
Yihang "Corvo" Liu (@glyh)manual, doc: try to reduce confusion between character and byte
This PR does small-scale improvements to the documentation, trying to clear up a tiny bit the matter of text encoding without a full rewrite of the material.
gmevelocamllex: remove generated output on fatal missing-case warning
When ocamllex is run with -w @missing-case, a non-exhaustive rule causes the command to exit with status 3.
cui fliter (@cuishuang)remove some restrictions on function subtyping
Function subtyping is unnecessarily restrictive - as long as the first unerased argument is positional, erasing optional arguments via type unification is safe, even if there are future labeled arguments. This matches the usual behavior of optional arguments, and allows for functions with both optional arguments and polymorphic return types to be used more e…
Aaron Dufour (@thedufer)typechecker: no more "rigid variants" mode for unification
This PR proposes to remove the rigid variants mode for unification that was added as a fix in order to handle better conjunctive types within type constraints in classes:
Florian Angeletti (@Octachron)Add a custom query for documentation
Let's add a query that returns the documentation of a given identifier or of the identifier at a given position.
Sonja Heinze (@pitag-ha)Markdown rendering inserts improper backslash when converting numbered list
The markdown generated for the doc comment of this module https://github.com/janestreet/base/blob/master/src/avltree.mli looks like
Dani Dickstein (@ddickstein)Upstream Merlin fork
Currently, ocaml-lsp uses a fork of Merlin.
ghostdocs: fix getDocumentation capability name and typos in custom request specs
getDocumentation-spec.md documents the server capability as handleDocumentation, but the server advertises handleGetDocumentation (ocaml-lsp-server/src/custom_requests/req_get_documentation.ml, and the expected capabilities in test/e2e-new/start_stop.ml). A client checking for the documented name would never detect the capability.
Toyeshh Medikonda (@toyeshhm)flake.lock: Update
Automated changes by the update-flake-lock GitHub Action.
github-actionsmultiple errors on same range: report real errors first (4.14)
The following snippet shows 2 errors on OCaml 4.14:
Török Edwin (@edwintorok)