Skip to content

ppx_expect + reason is broken after dune lang 3.2 #7930

@hackwaly

Description

@hackwaly

Expected Behavior

File "test/Test.re", line 1, characters 0-0:
diff --git a/_build/default/test/Test.re b/_build/default/test/Test.re.corrected
index e3f7c74..d69e228 100644
--- a/_build/default/test/Test.re
+++ b/_build/default/test/Test.re.corrected
@@ -1,4 +1,4 @@
 let%expect_test "test" = {
   print_endline("hello");
-  [%expect{| |}]
+  [%expect{| hello |}]
 }

Actual Behavior

File "test/Test.re", line 1:       
Error: I/O error: test/Test.re: No such file or directory

Reproduction

test/dune

(library
 (name test)
 (inline_tests)
 (preprocess (pps ppx_expect))
 (libraries ))

test/test.re

let%expect_test "test" = {
  print_endline("hello");
  [%expect{| |}]
}

dune-project

(lang dune 3.3)

If change the line (lang dune 3.3) to (lang dune 3.2). Everything seems ok.

Specifications

  • Version of dune (output of dune --version): 3.8.1
  • Version of ocaml (output of ocamlc --version): 4.14.1
  • Operating system (distribution and version): macOS 13.4 (22F66)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions