catkin / catkin_tools

Command line tools for working with catkin
Apache License 2.0
163 stars 146 forks source link

Failure: `catkin build --make-args all tests -- --no-deps <package name>` #736

Closed rhaschke closed 1 year ago

rhaschke commented 1 year ago

When combining --make-args and --no-deps, I get the following error:

> catkin build --make-args all tests -- --no-deps moveit_task_constructor_core
...
Workspace configuration appears valid.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[build] Found 421 packages in 0.0 seconds.                                                                                                                                       
[build] Package table is up to date.                                                                                                                                             
sh: 0: Can't open /homes/rhaschke/src/ros/devel/env.sh
Starting  >>> catkin_tools_prebuild                                                                                                                                              
Starting  >>> moveit_task_constructor_core                                                                                                                                       
_________________________________________________________________________________________________________________________________________________________________________________
Errors     << moveit_task_constructor_core:loadenv /homes/rhaschke/src/ros/logs/moveit_task_constructor_core/build.loadenv.001.log                                               
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/catkin_tools/execution/stages.py", line 177, in function_proxy
    return function(logger, event_queue, *args, **kwargs)
  File "/usr/lib/python3/dist-packages/catkin_tools/jobs/utils.py", line 113, in loadenv
    envs.append(get_resultspace_environment(
  File "/usr/lib/python3/dist-packages/catkin_tools/resultspace.py", line 130, in get_resultspace_environment
    lines = subprocess.check_output(command, cwd=os.getcwd(), env=base_env, shell=True)
  File "/usr/lib/python3.8/subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '/homes/rhaschke/src/ros/devel/env.sh /bin/bash -c "env --null"' returned non-zero exit status 127.

Obviously, devel/env.sh (and all other setup shell scripts) are deleted somewhen in the process!

System Info