Skip to content

Assertion failure while trying to use the library from OCaml #1485

@msprotz

Description

@msprotz

Hi @rossberg

Thanks for pushing the package to OPAM. I gave it a quick try, and triggered an assertion failure:

Fatal error: exception File "binary/encode.ml", line 433, characters 37-43: Assertion failed
Raised at Encode.E.instr in file "binary/encode.ml", line 433, characters 37-49
Called from Stdlib__list.iter in file "list.ml", line 110, characters 12-15
Called from Encode.E.list in file "binary/encode.ml" (inlined), line 77, characters 18-32
Called from Encode.E.code in file "binary/encode.ml", line 804, characters 4-19
Called from Stdlib__list.iter in file "list.ml", line 110, characters 12-15
Called from Encode.E.section in file "binary/encode.ml", line 712, characters 6-9
Called from Encode.E.module_ in file "binary/encode.ml", line 899, characters 4-27
Called from Encode.encode in file "binary/encode.ml", line 906, characters 2-13
Called from OutputJs.write_all.(fun) in file "src/OutputJs.ml", line 89, characters 12-38
Called from Stdlib__list.iter in file "list.ml", line 110, characters 12-15
Called from OutputJs.write_all in file "src/OutputJs.ml", line 80, characters 2-714
Called from Karamel in file "src/Karamel.ml", line 692, characters 4-64

Can the error message be made a little more meaningful in a future release? (I am aware that I am not generating a correct AST.)

Thanks,

Jonathan

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