We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
create project:
moon new --lib project1 cd ./project1
edit ./src/top.mbt :
./src/top.mbt
test { fn f(_x) { ignore(f) } f(1) }
run test command:
moon test
output :
failed: moonc link-core C:\Users\FlyCloudC\.moon\lib\core\target\wasm-gc\release\bundle\core.core D:\Code\moonbit\bug\project1\target\wasm-gc\debug\test\hello.internal_test.core -main username/hello -o D:\Code\moonbit\bug\project1\target\wasm-gc\debug\test\hello.internal_test.wasm -test-mode -pkg-config-path D:\Code\moonbit\bug\project1\src\moon.pkg.json -pkg-sources username/hello:D:\Code\moonbit\bug\project1\src -pkg-sources moonbitlang/core:C:\Users\FlyCloudC\.moon\lib\core -exported_functions moonbit_test_driver_internal_execute,moonbit_test_driver_finish -target wasm-gc -g -O0 -- -- / // / __--------_ / // /_/ \ --- - \ __ / X / ____ / ) *_________/__/_____/______/ `-- Oops, the compiler has encountered an unexpected situation. This is a bug in the compiler. A bug report containing the error description and relevant code would be greatly appreciated. You can submit the bug report here: https://github.com/moonbitlang/moonbit-docs/issues/new?labels=bug,ICE Error: Moonc.Basic_hash_string.Key_not_found("$$username/hello.__test_746f702e6d6274_0.f.fn/1-cap") Compiler args: moonc link-core "C:\\Users\\FlyCloudC\\.moon\\lib\\core\\target\\wasm-gc\\release\\bundle\\core.core" "D:\\Code\\moonbit\\bug\\project1\\target\\wasm-gc\\debug\\test\\hello.internal_test.core" -main username/hello -o "D:\\Code\\moonbit\\bug\\project1\\target\\wasm-gc\\debug\\test\\hello.internal_test.wasm" -test-mode -pkg-config-path "D:\\Code\\moonbit\\bug\\project1\\src\\moon.pkg.json" -pkg-sources "username/hello:D:\\Code\\moonbit\\bug\\project1\\src" -pkg-sources "moonbitlang/core:C:\\Users\\FlyCloudC\\.moon\\lib\\core" -exported_functions moonbit_test_driver_internal_execute,moonbit_test_driver_finish -target wasm-gc -g -O0 moonc version: v0.1.20241223+62b9a1a85 error: failed when testing
The text was updated successfully, but these errors were encountered:
Thanks for reporting this bug. It will be fixed in the next release.
Sorry, something went wrong.
Btw, this is a bug only in the debug mode, you can use moon test --release to workaround this bug for now.
moon test --release
Guest0x0
No branches or pull requests
create project:
edit
./src/top.mbt
:run test command:
output :
The text was updated successfully, but these errors were encountered: