Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal error in "src/loader/cmi.ml", line 933, characters 21-27: Assertion failed #905

Closed
mefyl opened this issue Nov 15, 2022 · 1 comment · Fixed by #1046
Closed
Labels
bug Something isn't working

Comments

@mefyl
Copy link

mefyl commented Nov 15, 2022

The Timmy project triggers this assertion when building the documentation.

The library makes extensive usage of dune select stanza to switch between modules, and the error only occurs if the schematic library is not available, so in all fairness it might explore some uncommon code paths.

@Julow
Copy link
Collaborator

Julow commented Nov 16, 2022

Minimal reproduction: A functor that doesn't consume its argument and is then an alias. There's a case in the AST (Mty_alias) that is currently not implemented in Odoc.

module A (B : sig
  val foo : int
end) =
  String

Using String because it doesn't reproduce if the module is defined locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants