Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ocamldoc fails with "analyse_module: parsetree and typedtree don't match" #6758

vicuna opened this issue Jan 22, 2015 · 3 comments


None yet
2 participants
Copy link

commented Jan 22, 2015

Original bug ID: 6758
Reporter: maro
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2015-04-30T19:53:38Z)
Resolution: fixed
Priority: normal
Severity: minor
Platform: x86-64
OS: Linux Mint
OS Version: 17
Version: 4.02.1
Target version: 4.02.2+dev / +rc1
Fixed in version: 4.02.2+dev / +rc1
Category: ocamldoc
Monitored by: @gasche "Julien Signoles" prevosto @yakobowski

Bug description

When launching ocamldoc on files which use some specific forms of module inclusion and/or aliases, ocamldoc fails with the following message:

analyse_module: parsetree and typedtree don't match.

Steps to reproduce

The following example code should trigger the error:

module H = Set.Make(struct type t = int let compare = end)
module I = H
module J = Set.Make(I)

Additional information

It is often possible to sidestep the issue by removing/modifying module aliases in the affected files.


This comment has been minimized.

Copy link

commented Jan 22, 2015

Comment author: Julien Signoles

It is a regression since OCaml 4.02. It was working with prior OCaml versions.


This comment has been minimized.

Copy link

commented Mar 30, 2015

Comment author: @damiendoligez

I think I fixed this (branch 4.02, commit 15974).

Please test and tell me if this fixes your problem.


This comment has been minimized.

Copy link

commented Apr 1, 2015

Comment author: maro

Indeed, I just compiled from git (commit b026c27) and in my original test case everything seems to work now.
Thank you!

@vicuna vicuna closed this Apr 30, 2015

@vicuna vicuna added the ocamldoc label Mar 14, 2019

@vicuna vicuna added this to the 4.02.2 milestone Mar 14, 2019

@vicuna vicuna added the bug label Mar 20, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.