Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catkin build crash on zsh #708

Open
acz-a opened this issue Dec 17, 2021 · 4 comments
Open

catkin build crash on zsh #708

acz-a opened this issue Dec 17, 2021 · 4 comments

Comments

@acz-a
Copy link

acz-a commented Dec 17, 2021

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!

@mgrrx
Copy link

mgrrx commented Dec 28, 2021

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 ...]]`

@Tobias-Fischer
Copy link

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

@timonegk
Copy link
Member

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?

@Tobias-Fischer
Copy link

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 added a commit to Tobias-Fischer/catkin_tools-feedstock that referenced this issue Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants