Skip to content

Assertion failed in doc-ock #101

@aantron

Description

@aantron

Do:

  • opam install odoc.1.2.0
  • opam install tensorflow.0.0.10
  • odoc compile `opam config var prefix`/lib/tensorflow/fnn/tensorflow_fnn__Fnn.cmt --package foo

the result is:

odoc: internal error, uncaught exception:
      File "src/docOckCmi.ml", line 355, characters 21-27: Assertion failed
      Raised at file "src/docOckCmi.ml", line 355, characters 21-33
      Called from file "src/docOckCmt.ml", line 53, characters 22-63
      Called from file "src/docOckCmt.ml", line 87, characters 4-41
      Called from file "list.ml", line 88, characters 24-34
      Called from file "src/docOckCmt.ml", line 94, characters 4-336
      Called from file "src/docOckCmt.ml", line 503, characters 25-62
      Called from file "list.ml", line 88, characters 24-34
      Called from file "src/docOckCmt.ml", line 501, characters 4-136
      Called from file "src/docOckCmt.ml", line 357, characters 38-69
      Called from file "src/docOckCmt.ml", line 412, characters 22-60
      Called from file "src/docOckCmt.ml", line 460, characters 16-51
      Called from file "src/docOckCmt.ml", line 503, characters 25-62
      Called from file "list.ml", line 88, characters 24-34
      Called from file "src/docOckCmt.ml", line 501, characters 4-136
      Called from file "src/docOckCmt.ml", line 510, characters 14-46
      Called from file "src/docOck.ml", line 150, characters 31-75
      Called from file "lib/compile.ml", line 21, characters 8-17
      Called from file "src/cmdliner_term.ml", line 27, characters 19-24
      Called from file "src/cmdliner.ml", line 106, characters 32-39

The relevant code seems to be:

https://github.com/ocaml-doc/doc-ock/blob/ae76154f6d7651f03d888ff1363092d5751a2e0b/src/docOckCmi.ml#L348-L360

I also observed this being raised by aws-s3/aws_s3__S3.cmt from aws-s3.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions