Skip to content

test(ocamllex): reproduce dialect collision - #17029

Merged
anmonteiro merged 1 commit into
ocaml:mainfrom
Alizter:repro-parser-formatter-dialects
Nov 23, 2026
Merged

anmonteiro merged 1 commit into
ocaml:mainfrom
Alizter:repro-parser-formatter-dialects

Conversation

@Alizter

@Alizter Alizter commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

An ocamllex build succeeds until .mll is registered as an implementation dialect, then fails with a duplicate-module error even without a formatter.

Refs #17030.

Registering .mll as an implementation dialect makes the lexer build fail
with a duplicate-module error, even without a formatter.

Refs ocaml#17030.

Signed-off-by: Ali Caglayan <[email protected]>
@Alizter
Alizter force-pushed the repro-parser-formatter-dialects branch from a7b78ae to 71c8ebd Compare November 18, 2026 17:22
@Alizter Alizter changed the title test(parser): reproduce formatter dialect collisions test(ocamllex): reproduce dialect collision Nov 18, 2026
@anmonteiro
anmonteiro marked this pull request as ready for review November 23, 2026 05:29
@anmonteiro
anmonteiro merged commit 26364a0 into ocaml:main Nov 23, 2026
37 of 59 checks passed
anmonteiro added a commit to anmonteiro/dune that referenced this pull request Nov 23, 2026
Extend the reproduction from ocaml#17029 to formatting, Menhir, and ocamlyacc. Refs ocaml#17030.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro added a commit to anmonteiro/dune that referenced this pull request Nov 23, 2026
Recognize generated modules that share their original source with a dialect input. Fixes ocaml#17030, introduced by ocaml#16414; uses the reproduction from ocaml#17029.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro added a commit to anmonteiro/dune that referenced this pull request Nov 23, 2026
Extend the reproduction from ocaml#17029 to exercise formatting. Refs ocaml#17030.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
anmonteiro added a commit to anmonteiro/dune that referenced this pull request Nov 23, 2026
Recognize generated modules that share their original source with a dialect input. Fixes ocaml#17030, introduced by ocaml#16414; uses the reproduction from ocaml#17029.

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
@Alizter Alizter added this to the 3.26.0 milestone Nov 23, 2026
@punchagan
punchagan deleted the repro-parser-formatter-dialects branch November 23, 2026 08:00
anmonteiro added a commit that referenced this pull request Nov 23, 2026
Reproduce #17030 for Menhir and ocamlyacc formatting dialects.
Complements #17029; fixed by #17193.

01a20619-183b-76f3-b8a7-18c1b28eb1c0

Signed-off-by: Antonio Nuno Monteiro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

menhir Related to the internal menhir plugin no changelog test-suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants