Skip to content

Internal error, uncaught exception: #1007

@hhugo

Description

@hhugo

Spotted in jsoo CI https://github.com/ocsigen/js_of_ocaml/actions/runs/6318919406/job/17158899539

(cd _build/default/lib/js_of_ocaml/.js_of_ocaml.objs/byte && /home/runner/work/js_of_ocaml/js_of_ocaml/_opam/bin/odoc compile -I . -I ../../../../_doc/_odoc/pkg/js_of_ocaml -I ../../../runtime/.jsoo_runtime.objs/byte --pkg js_of_ocaml -o js_of_ocaml__Intl.odoc js_of_ocaml__Intl.cmti)
odoc: internal error, uncaught exception:
      File "src/loader/cmi.ml", line 1063, characters 26-32: Assertion failed
      Raised at Odoc_loader__Cmi.read_signature_noenv.loop in file "src/loader/cmi.ml", line 1063, characters 26-38
      Called from Odoc_loader__Cmti.read_include in file "src/loader/cmti.ml", line 748, characters 26-106
      Called from Odoc_loader__Cmti.read_signature.(fun) in file "src/loader/cmti.ml", line 787, characters 24-61
      Called from Stdlib__List.fold_left in file "list.ml", line 123, characters 24-34
      Called from Odoc_loader__Cmti.read_signature in file "src/loader/cmti.ml", line 785, characters 4-127
      Called from Odoc_loader__Cmti.read_module_type_maybe_canonical in file "src/loader/cmti.ml", line 578, characters 8-74
      Called from Odoc_loader__Cmti.read_module_declaration in file "src/loader/cmti.ml", line 620, characters 10-133
      Called from Odoc_loader__Cmti.read_signature_item in file "src/loader/cmti.ml", line 684, characters 14-51
      Called from Odoc_loader__Cmti.read_signature.(fun) in file "src/loader/cmti.ml", line 787, characters 24-61
      Called from Stdlib__List.fold_left in file "list.ml", line 123, characters 24-34
      Called from Odoc_loader__Cmti.read_signature in file "src/loader/cmti.ml", line 785, characters 4-127
      Called from Odoc_loader__Cmti.read_interface in file "src/loader/cmti.ml", line 800, characters 4-74
      Called from Odoc_loader.read_cmti in file "src/loader/odoc_loader.ml", line 98, characters 34-70
      Called from Odoc_loader.wrap_errors.(fun) in file "src/loader/odoc_loader.ml", line 164, characters 10-14
      Called from Odoc_model__Error.catch in file "src/model/error.ml", line 54, characters 21-27
      Called from Odoc_model__Error.catch_warnings.(fun) in file "src/model/error.ml", line 89, characters 18-22
      Called from Odoc_model__Error.with_ref in file "src/model/error.ml", line 67, characters 12-16
      Re-raised at Odoc_model__Error.with_ref in file "src/model/error.ml", line 72, characters 4-11
      Called from Odoc_odoc__Compile.resolve_and_substitute in file "src/odoc/compile.ml", line 87, characters 4-31
      Called from Odoc_model__Error.catch in file "src/model/error.ml", line 54, characters 21-27
      Called from Odoc_model__Error.catch_warnings.(fun) in file "src/model/error.ml", line 89, characters 18-22
      Called from Odoc_model__Error.with_ref in file "src/model/error.ml", line 67, characters 12-16
      Re-raised at Odoc_model__Error.with_ref in file "src/model/error.ml", line 72, characters 4-11
      Called from Odoc_odoc__Compile.compile.(fun) in file "src/odoc/compile.ml", line 239, characters 6-136
      Called from Cmdliner_term.app.(fun) in file "cmdliner_term.ml", line 24, characters 19-24
      Called from Cmdliner_term.app.(fun) in file "cmdliner_term.ml", line 22, characters 12-19
      Called from Cmdliner_eval.run_parser in file "cmdliner_eval.ml", line 34, characters 37-44

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions