Open hirrolot opened 6 months ago
My lib/dune is the following:
lib/dune
(library (name foo)) (include_subdirs unqualified) (menhir (modules parser) (flags --explain --dump)) (ocamllex lexer)
But the issue is that I have parser.mly and lexer.mll in the surface/ directory. When running dune build, I receive the following error:
parser.mly
lexer.mll
surface/
dune build
File "lib/dune", line 16, characters 0-52: 16 | (menhir 17 | (modules parser) 18 | (flags --explain --dump)) Error: No rule found for lib/parser.mly File "lib/dune", line 20, characters 0-16: 20 | (ocamllex lexer) ^^^^^^^^^^^^^^^^ Error: No rule found for lib/lexer.mll
How do I tell Dune that it should search for parser.mly and lexer.mll in lib/surface/, not lib/?
lib/surface/
lib/
My Dune version is 3.14.2.
3.14.2
I'm a bit surprised to see menhir pop up here because it should have been fixed in #8949. I'll try to repro, thanks.
added a reproduction here https://github.com/ocaml/dune/pull/10371
My
lib/dune
is the following:But the issue is that I have
parser.mly
andlexer.mll
in thesurface/
directory. When runningdune build
, I receive the following error:How do I tell Dune that it should search for
parser.mly
andlexer.mll
inlib/surface/
, notlib/
?My Dune version is
3.14.2
.