You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> moon new example && cd example && code .
Created example
example> mkdir src/test
example> echo 'test "123" { panic() }'>> src/test/test.mbt
Switch to VSCode, and run the "run test" for the new test.mbt. It shows error: could not find a moon.mod.json file in the source directory or its ancestors in the panel.
(The "run test" seems to run
example> moon test --target wasm-gc -p moonbitLsp/orphanPkg0 -f test.mbt -i 0
Warning: cannot find file `test.mbt`in package ,--file only support exact matching
Warning: no test entry found
under the hood)
It is natural to add a 'mod.json' file here according to the error message.
Switch back to VSCode, click the moon.pkg.json and then back to test.mbt. The "run test" above the test line are still there but could not respond any more. The green button on the left is still responsive, but clicks still give error: could not find a moon.mod.json file in the source directory or its ancestors in the panel. Meanwhile, the test case in lib folder still works.
Finally restarting VSCode makes it happy.
The text was updated successfully, but these errors were encountered:
Bug Report
Environment
OS
Operating System: Windows
MoonBit CLI Tools Version
A story of pitfalls
Switch to VSCode, and run the "run test" for the new
test.mbt
. It showserror: could not find a moon.mod.json file in the source directory or its ancestors
in the panel.(The "run test" seems to run
under the hood)
It is natural to add a 'mod.json' file here according to the error message.
Still doesn't work. It seems to need a
pkg.json
?Switch back to VSCode, click the
moon.pkg.json
and then back totest.mbt
. The "run test" above thetest
line are still there but could not respond any more. The green button on the left is still responsive, but clicks still giveerror: could not find a moon.mod.json file in the source directory or its ancestors
in the panel. Meanwhile, the test case inlib
folder still works.Finally restarting VSCode makes it happy.
The text was updated successfully, but these errors were encountered: