catkin_tools icon indicating copy to clipboard operation
catkin_tools copied to clipboard

catkin build crash on zsh

Open acz-a opened this issue 4 years ago • 4 comments

When running 'catkin build' on macos, the commands (resultspace.py; line 117):

command = ' '.join([
        cmd_quote(setup_file_path),
        shell_path,
        '-c',
        '"env --null"',
    ])

causes build crash due to the keyword --null not existing on zsh.. suggest you remove it while using zsh terminal or use a broader exception than: IOError on the try...except clause. Thanks!

acz-a avatar Dec 17 '21 14:12 acz-a

Affects MacOS since env does not have this argument on MacOS:

`ENV(1) BSD General Commands Manual ENV(1)

NAME env -- set environment and execute command, or print environment

SYNOPSIS env [-iv] [-P altpath] [-S string] [-u name] [name=value ...] [utility [argument ...]]`

mgrrx avatar Dec 28 '21 19:12 mgrrx

Is there any news on this? I just ran into this issue.

Tobias-Fischer avatar Feb 10 '22 03:02 Tobias-Fischer

I cannot reproduce the issue on my system (also using zsh). For me, env is a program located in /usr/bin/env. It does not change based on the used shell. So, which operating system are you on? What is the output of which env in your shell? And which version of the shell are you using?

timonegk avatar Feb 10 '22 09:02 timonegk

I fixed it with conda install coreutils on my (osx) machine. The env program shipped with that supports the --null argument, while the one shipped with osx doesn't.

Tobias-Fischer avatar Feb 10 '22 22:02 Tobias-Fischer