dolmen icon indicating copy to clipboard operation
dolmen copied to clipboard

Preludes from files prevent processing of main file

Open bclement-ocp opened this issue 3 months ago • 2 comments

When using preludes from a File` source, processing stops after the first prelude. Preludes from a Raw` source work as expected.

This seems to be due to the following code that forcefully adds exit statement when parsing a file.

bclement-ocp avatar Sep 03 '25 13:09 bclement-ocp

Any idea why the tests in tests/cram.t/run.t do not catch the error ? these tests should exercise the case where there is a prelude, and there is an error in the "main" file

Gbury avatar Sep 03 '25 14:09 Gbury

As discussed privately, this seems to be because Dolmen ignores ``Exit` statements, while solvers are expected to quit when encountering them.

bclement-ocp avatar Sep 08 '25 13:09 bclement-ocp