Skip to content

Simple query prints raw Pretype_errors.Pretype error, produces 18MB of output #250

Closed
ocaml/opam-repository
#21534
@cpitclaudel

Description

@cpitclaudel

The following input to sertop produces 18MB of output (81MB in --human mode) and takes 1.5 seconds to run:

(query0 (Add () "(* test *)\nGoal 1 = True.")) 
(query1 (Exec 2))

It looks like printing the internals of the Pretype_errors.PretypeError object yields about 1.5 million lines of sexps in --human mode. This is mostly funny, but Alectryon takes 6 seconds to parse through that, which is less funny. Amy change to improve that output?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions