2025-04-19 10:14.04: New job: test patricoferris/ppxlib https://github.com/patricoferris/ppxlib.git#refs/heads/ci (dd2e536f5c4aa7758d5e8c2af6f8c86901b46205) (macos-x86_64:macos-homebrew-5.3_opam-2.3)
Base: macos-homebrew-ocaml-5.3
Opam project build
To reproduce locally:
git clone --recursive "https://github.com/patricoferris/ppxlib.git" -b "ci" && cd "ppxlib" && git reset --hard dd2e536f
cat > Dockerfile <<'END-OF-DOCKERFILE'
FROM macos-homebrew-ocaml-5.3
# macos-homebrew-5.3_opam-2.3
USER 1000:1000
ENV CLICOLOR_FORCE="1"
ENV OPAMCOLOR="always"
RUN ln -f ~/local/bin/opam-2.3 ~/local/bin/opam
RUN opam init --reinit -ni
RUN uname -rs && opam exec -- ocaml -version && opam --version
RUN cd ~/opam-repository && (git cat-file -e 442eddb8a363418dcb02e519972818da08bb7cd4 || git fetch origin master) && git reset -q --hard 442eddb8a363418dcb02e519972818da08bb7cd4 && git log --no-decorate -n1 --oneline && opam update -u
COPY --chown=1000:1000 ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam ./src/./
RUN opam pin add -yn ppxlib.dev './src/./' && \
opam pin add -yn ppxlib-tools.dev './src/./' && \
opam pin add -yn ppxlib-bench.dev './src/./'
RUN echo '(lang dune 3.0)' > './src/./dune-project'
ENV DEPS="base.v0.17.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base cinaps.v0.15.1 cmdliner.1.3.0 csexp.1.5.2 dune.3.18.1 dune-configurator.3.18.1 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml_intrinsics_kernel.v0.17.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 re.1.12.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 yojson.2.2.2"
ENV CI="true"
ENV OCAMLCI="true"
RUN opam update --depexts && opam install --cli=2.3 --depext-only -y ppxlib.dev ppxlib-tools.dev ppxlib-bench.dev $DEPS
RUN opam install $DEPS
COPY --chown=1000:1000 . ./src
RUN cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build
END-OF-DOCKERFILE
docker build .
END-REPRO-BLOCK
2025-04-19 10:14.04: Using cache hint "patricoferris/ppxlib-macos-homebrew-ocaml-5.3-macos-homebrew-5.3_opam-2.3-3c965630631cd47442dbfd9233049ef4"
2025-04-19 10:14.04: Using OBuilder spec:
((from macos-homebrew-ocaml-5.3)
(comment macos-homebrew-5.3_opam-2.3)
(user (uid 1000) (gid 1000))
(env CLICOLOR_FORCE 1)
(env OPAMCOLOR always)
(run (shell "ln -f ~/local/bin/opam-2.3 ~/local/bin/opam"))
(run (shell "opam init --reinit -ni"))
(run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 442eddb8a363418dcb02e519972818da08bb7cd4 || git fetch origin master) && git reset -q --hard 442eddb8a363418dcb02e519972818da08bb7cd4 && git log --no-decorate -n1 --oneline && opam update -u"))
(copy (src ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam) (dst ./src/./))
(run (network host)
(shell "opam pin add -yn ppxlib.dev './src/./' && \
\nopam pin add -yn ppxlib-tools.dev './src/./' && \
\nopam pin add -yn ppxlib-bench.dev './src/./'"))
(run (network host)
(shell "echo '(lang dune 3.0)' > './src/./dune-project'"))
(env DEPS "base.v0.17.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base cinaps.v0.15.1 cmdliner.1.3.0 csexp.1.5.2 dune.3.18.1 dune-configurator.3.18.1 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml_intrinsics_kernel.v0.17.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 re.1.12.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 yojson.2.2.2")
(env CI true)
(env OCAMLCI true)
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y ppxlib.dev ppxlib-tools.dev ppxlib-bench.dev $DEPS"))
(run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam install $DEPS"))
(copy (src .) (dst ./src))
(run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
)
2025-04-19 10:14.04: Waiting for resource in pool OCluster
2025-04-19 10:14.05: Waiting for worker…
2025-04-19 10:14.05: Got resource from pool OCluster
Building on i7-worker-03
HEAD is now at 68af533 Bump trunk CI to 5.4.0
HEAD is now at dd2e536 Support OCaml 5.4
(from macos-homebrew-ocaml-5.3)
2025-04-19 10:14.07 ---> using "6ee950b55569b1a3f8a7953dc679318bf303d3a70ac7d49901c0ac2ca3805d7c" from cache
/: (comment macos-homebrew-5.3_opam-2.3)
/: (user (uid 1000) (gid 1000))
/: (env CLICOLOR_FORCE 1)
/: (env OPAMCOLOR always)
/: (run (shell "ln -f ~/local/bin/opam-2.3 ~/local/bin/opam"))
2025-04-19 10:14.07 ---> using "8efc335cb5004a650aab29e72b9849a2b2e2f0853bc55d3a74763c7cceed5d74" from cache
/: (run (shell "opam init --reinit -ni"))
No configuration file found, using built-in defaults.
Checking for available remotes: rsync and local, git.
- you won't be able to use mercurial repositories unless you install the hg command on your system.
- you won't be able to use darcs repositories unless you install the darcs command on your system.
This version of opam requires an update to the layout of /Users/mac1000/.opam from version 2.1 to version 2.2, which can't be reverted.
You may want to back it up before going further.
Continue? [y/n] y
[NOTE] The 'jobs' option was reset, its value was 1 and its new value will vary according to the current number of cores on your machine. You can restore the fixed value using:
opam option jobs=1 --global
Format upgrade done.
<><> Updating repositories ><><><><><><><><><><><><><><><><><><><><><><><><><><>
[default] no changes from git+file:///Users/mac1000/opam-repository
2025-04-19 10:14.07 ---> using "e29fa6de89fe919799ac81fd4a1c768d8341cedf873c17042854467d2aebeceb" from cache
/: (run (shell "uname -rs && opam exec -- ocaml -version && opam --version"))
Darwin 23.4.0
The OCaml toplevel, version 5.3.0
2.3.0
2025-04-19 10:14.08 ---> using "a268524b45b0c90a951719c2a6c8c78c0b8a0fec90c9f437befd49b0008dc673" from cache
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "cd ~/opam-repository && (git cat-file -e 442eddb8a363418dcb02e519972818da08bb7cd4 || git fetch origin master) && git reset -q --hard 442eddb8a363418dcb02e519972818da08bb7cd4 && git log --no-decorate -n1 --oneline && opam update -u"))
From https://github.com/ocaml/opam-repository
* branch master -> FETCH_HEAD
67e940587b..5afc819055 master -> origin/master
442eddb8a3 Merge pull request #27761 from maiste/release-dune-3.18.1
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><>
[default] synchronised from git+file:///Users/mac1000/opam-repository
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).
The following packages are not being upgraded because the new versions conflict with other installed packages:
- ocaml.5.4.0
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
# To update the current shell environment, run: eval $(opam env)
2025-04-19 10:14.08 ---> using "0fbaba39e6ec5df90366a8dfd5051007fe230d7c334dcc7d0160d66f2ca0c437" from cache
/: (copy (src ppxlib.opam ppxlib-tools.opam ppxlib-bench.opam) (dst ./src/./))
2025-04-19 10:14.09 ---> using "9786ae5191d0b8de74d083660c3174dd3bf9a8ebd4ee954c9976f9a6a7f2e815" from cache
/: (run (network host)
(shell "opam pin add -yn ppxlib.dev './src/./' && \
\nopam pin add -yn ppxlib-tools.dev './src/./' && \
\nopam pin add -yn ppxlib-bench.dev './src/./'"))
[ppxlib.dev] synchronised (file:///Users/mac1000/src)
ppxlib is now pinned to file:///Users/mac1000/src (version dev)
[ppxlib-tools.dev] synchronised (file:///Users/mac1000/src)
ppxlib-tools is now pinned to file:///Users/mac1000/src (version dev)
Package ppxlib-bench does not exist, create as a NEW package? [y/n] y
[ppxlib-bench.dev] synchronised (file:///Users/mac1000/src)
ppxlib-bench is now pinned to file:///Users/mac1000/src (version dev)
2025-04-19 10:14.09 ---> using "f0a04e6d22acc3c0ff8b3bfc4268085ea1b037acf7aa69e274160da2dc3148cf" from cache
/: (run (network host)
(shell "echo '(lang dune 3.0)' > './src/./dune-project'"))
2025-04-19 10:14.09 ---> using "6e23849e0801ea02e37b1a55c560337f9ee0c081e5479de517af39666118c85d" from cache
/: (env DEPS "base.v0.17.1 base-bigarray.base base-domains.base base-effects.base base-nnp.base base-threads.base base-unix.base cinaps.v0.15.1 cmdliner.1.3.0 csexp.1.5.2 dune.3.18.1 dune-configurator.3.18.1 ocaml.5.3.0 ocaml-base-compiler.5.3.0 ocaml-compiler.5.3.0 ocaml-compiler-libs.v0.17.0 ocaml-config.3 ocaml-options-vanilla.1 ocaml_intrinsics_kernel.v0.17.1 ocamlfind.1.9.8 ppx_derivers.1.2.1 re.1.12.0 seq.base sexplib0.v0.17.0 stdlib-shims.0.3.0 yojson.2.2.2")
/: (env CI true)
/: (env OCAMLCI true)
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam update --depexts && opam install --cli=2.3 --depext-only -y ppxlib.dev ppxlib-tools.dev ppxlib-bench.dev $DEPS"))
+ /usr/local/bin/brew "update"
- ==> Updating Homebrew...
- Already up-to-date.
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[ppxlib.dev] synchronised (file:///Users/mac1000/src)
[ppxlib-bench.dev] synchronised (file:///Users/mac1000/src)
[ppxlib-tools.dev] synchronised (file:///Users/mac1000/src)
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml is already installed (current version is 5.3.0).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-nnp is already installed (current version is base).
[NOTE] Package base-effects is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
2025-04-19 10:14.10 ---> using "7451372242b67a01cd5d7235b08aa7bff759acb42ce582588544ec38943bdad9" from cache
/: (run (cache (opam-archives (target /Users/mac1000/.opam/download-cache)) (homebrew (target /Users/mac1000/Library/Caches/Homebrew)))
(network host)
(shell "opam install $DEPS"))
[NOTE] Package ocaml-options-vanilla is already installed (current version is 1).
[NOTE] Package ocaml-config is already installed (current version is 3).
[NOTE] Package ocaml-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml-base-compiler is already installed (current version is 5.3.0).
[NOTE] Package ocaml is already installed (current version is 5.3.0).
[NOTE] Package base-unix is already installed (current version is base).
[NOTE] Package base-threads is already installed (current version is base).
[NOTE] Package base-nnp is already installed (current version is base).
[NOTE] Package base-effects is already installed (current version is base).
[NOTE] Package base-domains is already installed (current version is base).
[NOTE] Package base-bigarray is already installed (current version is base).
The following actions will be performed:
=== install 15 packages
- install base v0.17.1
- install cinaps v0.15.1
- install cmdliner 1.3.0
- install csexp 1.5.2
- install dune 3.18.1
- install dune-configurator 3.18.1
- install ocaml-compiler-libs v0.17.0
- install ocaml_intrinsics_kernel v0.17.1
- install ocamlfind 1.9.8
- install ppx_derivers 1.2.1
- install re 1.12.0
- install seq base
- install sexplib0 v0.17.0
- install stdlib-shims 0.3.0
- install yojson 2.2.2
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> retrieved cmdliner.1.3.0 (cached)
-> retrieved csexp.1.5.2 (cached)
-> retrieved base.v0.17.1 (cached)
-> retrieved ocaml-compiler-libs.v0.17.0 (cached)
-> retrieved ocaml_intrinsics_kernel.v0.17.1 (cached)
-> retrieved ocamlfind.1.9.8 (cached)
-> retrieved ppx_derivers.1.2.1 (cached)
-> retrieved cinaps.v0.15.1 (https://github.com/ocaml-ppx/cinaps/archive/v0.15.1.tar.gz)
-> retrieved seq.base (cached)
-> installed seq.base
-> retrieved sexplib0.v0.17.0 (cached)
-> retrieved re.1.12.0 (cached)
-> retrieved stdlib-shims.0.3.0 (cached)
-> retrieved yojson.2.2.2 (cached)
-> retrieved dune.3.18.1, dune-configurator.3.18.1 (cached)
-> installed cmdliner.1.3.0
-> installed ocamlfind.1.9.8
-> installed dune.3.18.1
-> installed stdlib-shims.0.3.0
-> installed ppx_derivers.1.2.1
-> installed csexp.1.5.2
-> installed yojson.2.2.2
-> installed sexplib0.v0.17.0
-> installed re.1.12.0
-> installed ocaml_intrinsics_kernel.v0.17.1
-> installed ocaml-compiler-libs.v0.17.0
-> installed cinaps.v0.15.1
-> installed dune-configurator.3.18.1
-> installed base.v0.17.1
Done.
# To update the current shell environment, run: eval $(opam env)
2025-04-19 10:14.10 ---> using "ec1abe17e50607e5311514162873ed2ffbdd7f5685893846be2c0b3ef3d2ba29" from cache
/: (copy (src .) (dst ./src))
2025-04-19 10:14.12 ---> saved as "13055f4bb6cdfcdc561ca31fd662cb565b830c03f34d62211882b7ba5d83cfce"
/: (run (shell "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build"))
File "test/driver/stdin_input/test.t/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/accb60323ab010eecd1cfd76f5ddc218/default/test/driver/stdin_input/test.t/run.t _build/.sandbox/accb60323ab010eecd1cfd76f5ddc218/default/test/driver/stdin_input/test.t/run.t.corrected
diff --git a/_build/.sandbox/accb60323ab010eecd1cfd76f5ddc218/default/test/driver/stdin_input/test.t/run.t b/_build/.sandbox/accb60323ab010eecd1cfd76f5ddc218/default/test/driver/stdin_input/test.t/run.t.corrected
index d385654..cd801b5 100644
--- a/_build/.sandbox/accb60323ab010eecd1cfd76f5ddc218/default/test/driver/stdin_input/test.t/run.t
+++ b/_build/.sandbox/accb60323ab010eecd1cfd76f5ddc218/default/test/driver/stdin_input/test.t/run.t.corrected
@@ -17,4 +17,6 @@ We generate a binary AST file...
... and ensure the driver can also read it from stdin
$ cat binary_ast | ../identity_driver.exe -impl -
- let b = 2
+ 64342 Done cat binary_ast
+ 64343 Segmentation fault: 11 | ../identity_driver.exe -impl -
+ [139]
File "test/driver/source-quotation-in-errors/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/724b44715a06e2b6f4a10337490b2303/default/test/driver/source-quotation-in-errors/run.t _build/.sandbox/724b44715a06e2b6f4a10337490b2303/default/test/driver/source-quotation-in-errors/run.t.corrected
diff --git a/_build/.sandbox/724b44715a06e2b6f4a10337490b2303/default/test/driver/source-quotation-in-errors/run.t b/_build/.sandbox/724b44715a06e2b6f4a10337490b2303/default/test/driver/source-quotation-in-errors/run.t.corrected
index e644f3f..68c0f99 100644
--- a/_build/.sandbox/724b44715a06e2b6f4a10337490b2303/default/test/driver/source-quotation-in-errors/run.t
+++ b/_build/.sandbox/724b44715a06e2b6f4a10337490b2303/default/test/driver/source-quotation-in-errors/run.t.corrected
@@ -38,8 +38,5 @@ We then call our raising driver on the binary AST, it should be able to report t
error with source quotation:
$ ./raising_driver.exe -impl file.pp.ml
- File "file.ml", line 1, characters 8-16:
- 1 | let x = [%raise]
- ^^^^^^^^
- Error: An exception, raise be!
- [1]
+ 64338 Segmentation fault: 11 ./raising_driver.exe -impl file.pp.ml
+ [139]
File "test/driver/standalone_run_as_ppx/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/bbc6692555726672d209a253b48f88b2/default/test/driver/standalone_run_as_ppx/run.t _build/.sandbox/bbc6692555726672d209a253b48f88b2/default/test/driver/standalone_run_as_ppx/run.t.corrected
diff --git a/_build/.sandbox/bbc6692555726672d209a253b48f88b2/default/test/driver/standalone_run_as_ppx/run.t b/_build/.sandbox/bbc6692555726672d209a253b48f88b2/default/test/driver/standalone_run_as_ppx/run.t.corrected
index e36c4bf..209375f 100644
--- a/_build/.sandbox/bbc6692555726672d209a253b48f88b2/default/test/driver/standalone_run_as_ppx/run.t
+++ b/_build/.sandbox/bbc6692555726672d209a253b48f88b2/default/test/driver/standalone_run_as_ppx/run.t.corrected
@@ -6,7 +6,11 @@ The rewriter gets applied when using `--as-ppx`
$ echo "let _ = [%print_hi]" > impl.ml
$ ocaml -ppx './print_stuff.exe --as-ppx' impl.ml
- hi
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx45952d' '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppxfe77ba'
+
+ [2]
If a non-compatible file gets fed, the file name is reported correctly
@@ -20,18 +24,28 @@ The ocaml.ppx.context attribute gets parsed correctly; in particular, the tool n
$ echo "let _ = [%print_tool_name]" > impl.ml
$ ocaml -ppx './print_stuff.exe --as-ppx' impl.ml
- ocaml
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx7cb001' '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx4fc516'
+
+ [2]
The driver's `shared_args` arguments are taken into account. For example, `-loc-filename`
$ echo "let _ = [%print_fname]" > impl.ml
$ ocaml -ppx './print_stuff.exe --as-ppx -loc-filename new_fn.ml' impl.ml
- new_fn.ml
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx -loc-filename new_fn.ml '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx678f66' '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx4fc1a4'
+
+ [2]
or `dont-apply`
$ echo "let _ = [%print_hi]" > impl.ml
$ ocaml -ppx './print_stuff.exe --as-ppx -dont-apply test' impl.ml
- File "./impl.ml", line 1, characters 10-18:
- Error: Uninterpreted extension 'print_hi'.
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_stuff.exe --as-ppx -dont-apply test '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx6b658f' '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppxb5715d'
+
[2]
File "test/driver/error_embedding/test.t/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/fb209e995c76fdb9e8292f649b5efd3a/default/test/driver/error_embedding/test.t/run.t _build/.sandbox/fb209e995c76fdb9e8292f649b5efd3a/default/test/driver/error_embedding/test.t/run.t.corrected
diff --git a/_build/.sandbox/fb209e995c76fdb9e8292f649b5efd3a/default/test/driver/error_embedding/test.t/run.t b/_build/.sandbox/fb209e995c76fdb9e8292f649b5efd3a/default/test/driver/error_embedding/test.t/run.t.corrected
index dafee10..9bda927 100644
--- a/_build/.sandbox/fb209e995c76fdb9e8292f649b5efd3a/default/test/driver/error_embedding/test.t/run.t
+++ b/_build/.sandbox/fb209e995c76fdb9e8292f649b5efd3a/default/test/driver/error_embedding/test.t/run.t.corrected
@@ -14,8 +14,10 @@ The same is true when using the `-as-ppx` mode (note that the error is reported
by ocaml itself)
$ ocaml -ppx '../raiser.exe -as-ppx' impl.ml
- File "./impl.ml", line 1, characters 8-16:
- Error: Raising inside the rewriter
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ../raiser.exe -as-ppx '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx81dac9' '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppxf3d30e'
+
[2]
Also exceptions raised in a preprocessor get embedded into an AST(while the
File "test/driver/flag_cookie/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/db3cc4bcde05fa5a25742916d28552fb/default/test/driver/flag_cookie/run.t _build/.sandbox/db3cc4bcde05fa5a25742916d28552fb/default/test/driver/flag_cookie/run.t.corrected
diff --git a/_build/.sandbox/db3cc4bcde05fa5a25742916d28552fb/default/test/driver/flag_cookie/run.t b/_build/.sandbox/db3cc4bcde05fa5a25742916d28552fb/default/test/driver/flag_cookie/run.t.corrected
index d6c3fa5..87cd349 100644
--- a/_build/.sandbox/db3cc4bcde05fa5a25742916d28552fb/default/test/driver/flag_cookie/run.t
+++ b/_build/.sandbox/db3cc4bcde05fa5a25742916d28552fb/default/test/driver/flag_cookie/run.t.corrected
@@ -7,4 +7,8 @@ The cookie flag is taken into account, both by the main standalone
...and by the `-as-ppx` standalone
$ ocaml -ppx './print_cookie_driver.exe --as-ppx -cookie x=1' impl.ml
- Value of cookie x: 1
+ File "./impl.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_cookie_driver.exe --as-ppx -cookie x=1 '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppxfc41a2' '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx520ddc'
+
+ [2]
File "test/driver/run_as_ppx_rewriter/run.t", line 1, characters 0-0:
/usr/bin/git --no-pager diff --no-index --color=always -u _build/.sandbox/b9af3f219eb22bdda36b02b4ba1b592c/default/test/driver/run_as_ppx_rewriter/run.t _build/.sandbox/b9af3f219eb22bdda36b02b4ba1b592c/default/test/driver/run_as_ppx_rewriter/run.t.corrected
diff --git a/_build/.sandbox/b9af3f219eb22bdda36b02b4ba1b592c/default/test/driver/run_as_ppx_rewriter/run.t b/_build/.sandbox/b9af3f219eb22bdda36b02b4ba1b592c/default/test/driver/run_as_ppx_rewriter/run.t.corrected
index a9a0d71..9846d2d 100644
--- a/_build/.sandbox/b9af3f219eb22bdda36b02b4ba1b592c/default/test/driver/run_as_ppx_rewriter/run.t
+++ b/_build/.sandbox/b9af3f219eb22bdda36b02b4ba1b592c/default/test/driver/run_as_ppx_rewriter/run.t.corrected
@@ -10,23 +10,29 @@ The registered rewriters get applied when using `run_as_ppx_rewriter` as entry p
> let () = [%print_bye]
> EOF
$ ocaml -ppx './print_greetings.exe' file.ml
- hi
- bye
+ File "./file.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_greetings.exe '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx98f386' '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx617ace'
+
+ [2]
The driver's `shared_args` are taken into account, such as `-apply`...
$ ocaml -ppx './print_greetings.exe -apply print_hi' file.ml
- hi
- File "./file.ml", line 2, characters 11-20:
- Error: Uninterpreted extension 'print_bye'.
+ File "./file.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_greetings.exe -apply print_hi '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx62b879' '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppxd30e42'
+
[2]
... and `-check`
$ echo "[@@@attr non_registered_attr]" > attribute_file.ml
$ ocaml -ppx './print_greetings.exe -check' attribute_file.ml
- File "./attribute_file.ml", line 1, characters 4-8:
- Error: Attribute `attr' was not used
+ File "./attribute_file.ml", line 1:
+ Error: Error while running external preprocessor
+ Command line: ./print_greetings.exe -check '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx4cf2b5' '/var/folders/js/w5yr29f12xs3wmmr16pkq1xr0000z8/T/build_72ba9a_dune/camlppx6075b0'
+
[2]
"/usr/bin/env" "bash" "-c" "cd ./src && opam exec -- dune build @install @check @runtest && rm -rf _build" failed with exit status 1
2025-04-19 10:14.43: Job failed: Failed: Build failed