B1Z0N - Compiled V, then Spawn from main [repo]...

Compiled V, then Spawn from main repo main branch. When running ./spawnlang --run main.sp it shows these errors. The original code is:
module main

fn main() {
x := [1, 2, 3]
println(x[1])
}
module main

fn main() {
x := [1, 2, 3]
println(x[1])
}
Perhaps it's something trivial, but just in case: I'm using some cringe ubuntu22.04-through-windows11-wsl setup.
Solution:
Can you try compiling outside the compiler directory?
Jump to solution
4 Replies
Petr
Petr3mo ago
Hmmm, interesting, I'll check it on my Linux machine now reproduced
Solution
Petr
Petr3mo ago
Can you try compiling outside the compiler directory?
Petr
Petr3mo ago
./spawnlang ./examples/do.sp in compiler dir should work fine as well
YUART
YUART3mo ago
I also have these errors, compiling a file that are located in different directory works You also need to setup SPAWN_ROOT environment variable to be able to compile from another directory. This variable must point to the root of spawn repo
Want results from more Discord servers?
Add your server