Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004209OCamlOCamldocpublic2007-02-16 16:192013-06-29 12:11
ReporterJulien Signoles 
Assigned To 
PrioritylowSeverityfeatureReproducibilityalways
StatusacknowledgedResolutionsuspended 
PlatformOSOS Version
Product Version3.09.2 
Target VersionFixed in Version 
Summary0004209: ocamldoc + -pack
Description$ mkdir a
$ touch a.ml a/a.ml
$ ocamlopt -c -I a -for-pack P a/a.ml
$ ocamlopt -c a.ml
$ ocamlopt -o p.cmx -pack -I a a/a.cmx
$ ocamldoc -I a a/a.ml a.ml
Fatal error: exception Failure("There are two implementations of module A.")
Additional InformationOf course, without -pack one cannot have two compilation unit of the same name, and one can understand that ocamldoc doesn't handle that. But with -pack, the situation is different: we have two modules A and P.A, which is perfectly valid and works with ocamldc and ocamlopt, but not ocamldoc.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004283)
guesdon (manager)
2007-11-12 09:25
edited on: 2013-06-29 12:06

One would need to add a -pack option to ocamldoc, which it currently doesn't support. This would be rather heavy to implement, for an use case that seems quite exceptional. I'll mark that as "feature wish".


Il faudrait une option -pack à ocamldoc, ce qui n'est pas le cas et est assez lourd à implémenter, pour un usage plutôt exceptionnel il me semble.
Je le passe donc en souhait de fonctionnalité.

(0004628)
Yoric (reporter)
2008-09-23 22:44
edited on: 2013-06-29 12:07

Here is vote of support for such an option to be implemented.

(0009646)
gasche (developer)
2013-06-29 12:11

This feature has been requested by some other users since (eg. http://stackoverflow.com/questions/17368613/using-ocamldoc-with-packs [^] in 2013, with mention of a similar discussion in 2011).

(Of course patches to implement the feature would be welcome.)

- Issue History
Date Modified Username Field Change
2007-02-16 16:19 Julien Signoles New Issue
2007-11-10 13:44 xleroy Status new => assigned
2007-11-10 13:44 xleroy Assigned To => guesdon
2007-11-12 09:25 guesdon Note Added: 0004283
2007-11-12 09:25 guesdon Priority normal => low
2007-11-12 09:25 guesdon Severity minor => feature
2007-11-12 09:25 guesdon Resolution open => suspended
2008-09-23 22:44 Yoric Note Added: 0004628
2013-06-29 12:05 gasche Summary ocamldoc + fichier de même nom (+ -pack) => ocamldoc + -pack
2013-06-29 12:05 gasche Additional Information Updated View Revisions
2013-06-29 12:06 gasche Note Edited: 0004283 View Revisions
2013-06-29 12:07 gasche Note Edited: 0004628 View Revisions
2013-06-29 12:11 gasche Note Added: 0009646
2013-06-29 12:11 gasche Assigned To guesdon =>
2013-06-29 12:11 gasche Status assigned => acknowledged


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker