Open Tchou opened 1 year ago
Thanks. I added a reproduction case in #9120.
This bug has been present since the introduction of menhir_flags
in 2.2.0, so we can first add a proper error saying it's not supported. The issue is that the decoding of this field is versioned in term of the menhir extension, and extensions are not available in workspace files. We could probably version this (in workspace files) against lang dune
.
Expected Behavior
Dune should not crash with an unhandled exception when the
(env ...)
stanza of dune-workspace mentionsmenhir_flags
Actual Behavior
Dune crashes when
menhir_flags
appears in(env ...)
Reproduction
mkdir foo
dune-project
:and
dune-workspace
:dune build
, dune immediately crashes with a stack trace.Specifications
dune
(output ofdune --version
): 3.11.1ocaml
(output ofocamlc --version
): 4.14.1Additional information
dune
with the--verbose
flag): https://gist.github.com/Tchou/bfdcbccc048d394c9ad8e2ec1f23c32f