M
Modular2w ago
tony

Issue when running `mojo test --debug`

When running: magic run mojo test --debug I get error: .magic/envs/default/bin/mojo: error: File exists I'm on a MacBook Apple M1 Pro. The error occurs when running either the latest stable or nightly versions of mojo, which as of now are: magic 0.6.1 - (based on pixi 0.40.0) stable: mojo 24.6.0 (4487cd6e) nightly: mojo 25.1.0.dev2025011105 (9f00ec14) Anybody else get this? Any know workarounds?
3 Replies
timdavis
timdavis2w ago
Please try ‘magic self-update’ and try again on 0.6.2
tony
tonyOP2w ago
Issue continues after upgrading magic from 0.6.1 to 0.6.2, shall I be creating a github issue for this? The shell commands I used to replicate:
Tonys-MacBook-Pro:Mojo tony$ magic init stable-project --format mojoproject
✔ Created /Users/tony/Projects/MINE/Mojo/stable-project/mojoproject.toml
✔ Added max >=24.6.0,<25
Tonys-MacBook-Pro:Mojo tony$ cd stable-project/
Tonys-MacBook-Pro:stable-project tony$ cat << 'EOF' > test_simple.mojo
from testing import assert_equal


fn test_command_str_with_no_description() raises:
var one = 1
assert_equal(one, 1)

EOF
Tonys-MacBook-Pro:stable-project tony$ magic run mojo test --debug
/Users/tony/Projects/MINE/Mojo/stable-project/.magic/envs/default/bin/mojo: error: File exists
Tonys-MacBook-Pro:stable-project tony$ magic run mojo --version
mojo 24.6.0 (4487cd6e)
Tonys-MacBook-Pro:stable-project tony$ magic --version
magic 0.6.2 - (based on pixi 0.40.0)
Tonys-MacBook-Pro:Mojo tony$ magic init stable-project --format mojoproject
✔ Created /Users/tony/Projects/MINE/Mojo/stable-project/mojoproject.toml
✔ Added max >=24.6.0,<25
Tonys-MacBook-Pro:Mojo tony$ cd stable-project/
Tonys-MacBook-Pro:stable-project tony$ cat << 'EOF' > test_simple.mojo
from testing import assert_equal


fn test_command_str_with_no_description() raises:
var one = 1
assert_equal(one, 1)

EOF
Tonys-MacBook-Pro:stable-project tony$ magic run mojo test --debug
/Users/tony/Projects/MINE/Mojo/stable-project/.magic/envs/default/bin/mojo: error: File exists
Tonys-MacBook-Pro:stable-project tony$ magic run mojo --version
mojo 24.6.0 (4487cd6e)
Tonys-MacBook-Pro:stable-project tony$ magic --version
magic 0.6.2 - (based on pixi 0.40.0)
Zac Bowling
Zac Bowling6d ago
Can you do “magic clean” and try again?

Did you find this page helpful?