Skip to content

Missing newline in "dune exec" #7142

@talex5

Description

@talex5

This is the same problem reported in #6700, which was apparently fixed but is now broken again in dune 3.7.0 (I don't seem to be able to reopen issues). Note: it does not always happen, but seems more likely after a dune clean.

Expected Behavior

dune exec should show the program's output starting on a new line, but instead it appears after the build status. It used to work correctly in dune 3.5.0.

Reproduction

$ dune init project test
Entering directory '/tmp/test'
Success: initialized project component named test

$ cd test
$ dune exec -- ./bin/main.exe
Done: 92% (12/13, 1 left) (jobs: 1)Hello, World!

Happens with both fish and bash shells.

Specifications

$ dune --version
3.7.0

$ ocamlc --version
5.0.0

$ cat /etc/debian_version
11.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions