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

Fix unresolved references from the first comment of a file #592

Merged
merged 3 commits into from
Feb 22, 2021

Conversation

Julow
Copy link
Collaborator

@Julow Julow commented Feb 17, 2021

This fixes #585 but doesn't fix the issue reported by this comment #585 (comment)

Resolution failed because doc comment of a file was resolved before the rest of the module is added to the environment.
The first commit is unrelated, it removes the location from odoc_print's output to make the output more readable.

The second issue seems to be in the loader, I'm still investigating.

To provide a more readable test output.
The first comment of a module would be linked with an empty environment.
Also make sure that labels in that doc comment are added to the env.
@jonludlam
Copy link
Member

Looks good, thanks!

@jonludlam jonludlam merged commit 3d40f62 into ocaml:master Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

References in module preambles aren't working as expected
2 participants