[ocaml-platform] Installing custom toplevel printers with findlib

Daniel Bünzli daniel.buenzli at erratique.ch
Sat Mar 23 14:04:21 GMT 2013


Le samedi, 23 mars 2013 à 14:30, Sylvain Le Gall a écrit :
> Just wondering, what kind of docs would you expect for this ?

XMETAExtraLines is not mentioned here [1]. In general in on this documentation page you actually wonder how these fields need to be used in practice, see remark 2) in this email [2].

> I am open to patch if you want to improve the doc or the error
> reporting, I just have no idea how to do it better (and never seen a
> stack trace before).


In fact I now realize errors are reported but at the end of the stack trace and as such I didn't see them. In any case, these stack traces are completely useless to the user you should remove them, it's only noise. A tool should only return a stack trace if it has an internal error. Find an example at the end of this email.  

Best,

Daniel

[1] http://oasis.forge.ocamlcore.org/MANUAL.html#plugin-meta-extra
[2] https://sympa.inria.fr/sympa/arc/caml-list/2012-01/msg00041.html

> cat _oasis
OASISFormat: 0.3
Name: bla
Version: Bli
Synopsis: Bla
Maintainers: Bla
Copyrights: (C) 2008-2009 J.R. Hacker
License: BSD3
Description: Hop blib la
OCamlVersion: >= 3.12.0
Plugins: META (0.3)
BuildTools:ocamlbuild

Library top
Path: src
Modules: Gg
Build: compiler-libs.toplevel
> oasis setup
Raised at file "pervasives.ml", line 22, characters 22-33
Called from file "src/oasis/OASISSchema_intern.ml", line 235, characters 27-56
Called from file "src/oasis/PropList.ml", line 250, characters 24-42
Called from file "src/oasis/OASISAst.ml", line 84, characters 20-266
Called from file "list.ml", line 75, characters 12-15
Called from file "src/oasis/OASISAst.ml", line 161, characters 6-31
Called from file "list.ml", line 86, characters 24-34
Called from file "src/oasis/OASISAst.ml", line 275, characters 4-43
Called from file "src/oasis/OASISParse.ml", line 33, characters 4-49
Called from file "src/cli/Setup.ml", line 70, characters 6-95
Called from file "src/cli/Setup.ml", line 62, characters 4-312
Called from file "src/cli/Main.ml", line 61, characters 6-13
E: Unknown boolean "compiler-libs.toplevel" (possible: true, false)



More information about the Platform mailing list