Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004509OCamlocamldocpublic2008-02-20 23:182010-12-08 09:37
Assigned To 
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version3.10.1 
Target VersionFixed in Version3.12.1+dev 
Summary0004509: Bad ocamldoc/camlp4 interaction.
DescriptionIf I made conditional definitions in my .mli file using the pa_macro facility of camlp4 I can process this without errors if I use the appropriate -pp "camlp4o pa_macro.cmo" with ocamldoc, but the output gets some junk in it.
Additional InformationFor example: consider this foo.mli file:


module Bar: Hashtbl.HashedType with type t = int
module Bar: Hashtbl.HashedType


Processing with
ocamldoc -hide-warnings -html -pp "camlp4o pa_macro.cmo -DFOO" foo.mli
produces this output:


Module Foo

module Foo: sig .. end

module Bar: Hashtbl.HashedType with type t = int



Note the trailing "ELSE" junk. More complex uses generate more complex junk.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2008-02-20 23:18 jimgrundy New Issue
2008-03-07 12:09 doligez Status new => acknowledged
2010-12-08 09:37 xclerc Status acknowledged => closed
2010-12-08 09:37 xclerc Resolution open => unable to reproduce
2010-12-08 09:37 xclerc Fixed in Version => 3.12.1+dev
2017-02-23 16:46 doligez Category OCamldoc => ocamldoc

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker