Skip to content

fix(include-qualified): delay invalid module errors #13146

Closed
anmonteiro wants to merge 1 commit intoocaml:mainfrom
anmonteiro:anmonteiro/delay-invalid-module-error
Closed

fix(include-qualified): delay invalid module errors #13146
anmonteiro wants to merge 1 commit intoocaml:mainfrom
anmonteiro:anmonteiro/delay-invalid-module-error

Conversation

@anmonteiro
Copy link
Copy Markdown
Collaborator

@anmonteiro anmonteiro commented Dec 31, 2025

depends on #13144

  • for each module group:
    1. build a module trie by path component (without parsing into a module name)
    2. delay parsing the path component to a module name until the module becomes part of a group

closes #7628
refs #7605, which should be trivial to implement on top of this

@anmonteiro anmonteiro requested a review from rgrinberg December 31, 2025 10:21
@anmonteiro anmonteiro force-pushed the anmonteiro/delay-invalid-module-error branch 2 times, most recently from f158177 to d61296c Compare December 31, 2025 21:21
Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
@anmonteiro
Copy link
Copy Markdown
Collaborator Author

replaced by a better alternative in #13156

@anmonteiro anmonteiro closed this Jan 1, 2026
anmonteiro added a commit that referenced this pull request Jan 2, 2026
better alternative to #13146

- introduce `Module_name.Unchecked.t`, which represents a source module
that hasn't been included in any stanzas
- `Module_name.Unchecked.t` becomes `Module_name.t` after calling
`Module_name.Unchecked.validate_exn`, which is called when a module is
included in a module group.

closes #7628
refs #7605, which should be trivial
to implement on top of this

---------

Signed-off-by: Antonio Nuno Monteiro <anmonteiro@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: (data_only_dirs) should hide directories from (include_subdirs qualified)

1 participant