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
git clone -b patch-3 https://github.com/traversaro/pixi
cd pixi/examples/ctypes-factorial/
pixi run compile
The resulting error is:
traversaro@IITBMP014LW012:~/pixi/examples/ctypes-factorial$ pixi run compile
✨ Pixi task (default): "gcc -shared -o src/factorial.so src/factorial.c"
Error launching 'gcc -shared -o src/factorial.so src/factorial.c': No such file or directory (os error 2)
The actual problem is that the command with space is contained in a vector instead of being directly assigned to cmd (I created this on purpouse in traversaro@9a5c2ce), however it is not obvious to understand this from the error (at least, not to me that I spent some time to understand this in a similar example).
The text was updated successfully, but these errors were encountered:
I think you want the same thing as this issue #837
To be honest, I am not sure how to solve, I just spent ~10 minutes tryng to figure out what this error was about, and I thought it was worth reporting it. I guess possible solution are either:
Have a more clear error message (something like "space detected in element of command vector?, this is is not supported?")
Have compile = {cmd = ["gcc -shared -o src/factorial.so src/factorial.c"]} be equivalent to compile = {cmd = "gcc -shared -o src/factorial.so src/factorial.c"}
I guess from the point of view of this issue, both are solutions are fine.
Problem description
Reproduce:
The resulting error is:
The actual problem is that the command with space is contained in a vector instead of being directly assigned to
cmd
(I created this on purpouse in traversaro@9a5c2ce), however it is not obvious to understand this from the error (at least, not to me that I spent some time to understand this in a similar example).The text was updated successfully, but these errors were encountered: