[ocaml-platform] Installing custom toplevel printers with findlib
Sylvain Le Gall
sylvain+ocaml at le-gall.net
Sat Mar 23 15:16:34 GMT 2013
2013/3/23 Daniel Bünzli <daniel.buenzli at erratique.ch>:
> 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].
The reference doc is always "oasis manual" (i.e. call your oasis exec
with argument manual).
I agree that the website is not up to date and that I should solve this.
FYI, XMETAExtraLines is in the "oasis manual" doc.
>
>> 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.
>
I thought the trace was useful... Seems like you don't like it.
Do you have set OCAMLRUNPARAMS=b in your environment ? Turning it off
should probably turn of the stack trace as well.
Concerning the line number, this is clearly a bug and I was too lazy
to solve it. Feel free to fill a bug so that I won't forget about this
issue.
> 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