rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

Rewatch: panic on clean in analysis tests

Open cknitt opened this issue 5 months ago • 1 comments

When I run make test-analysis locally, I get

make -C tests/analysis_tests clean test
make -C tests clean
yarn clean
WARN:

Package name mismatch for /Users/christoph/projects/cca/rescript/tests/analysis_tests/tests:
The package.json name is "@tests/analysis", while the rescript.json name is "test"
This inconsistency will cause issues with package resolution.

WARN:

Package name mismatch for /Users/christoph/projects/cca/rescript/tests/dependencies/rescript-react:
The package.json name is "@tests/rescript-react", while the rescript.json name is "@rescript/react"
This inconsistency will cause issues with package resolution.

[1/2] 🧹 Cleaned compiler assets in 0.00s
[2/2] 🧹 Cleaning .res.js files...

thread 'main' panicked at src/build/clean.rs:68:78:
called `Option::unwrap()` on a `None` value
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
make[2]: *** [clean] Error 101
make[1]: *** [clean] Error 2
make: *** [test-analysis] Error 2

This must be the case since #7657 was merged.

Don't know why this does not occur in CI.

cknitt avatar Jul 21 '25 15:07 cknitt

#7896 is still a requirement to build and clean the test analysis project.

nojaf avatar Sep 19 '25 19:09 nojaf