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

Argument list too long on build #729

Open
VoreckLukas opened this issue Apr 15, 2024 · 0 comments
Open

Argument list too long on build #729

VoreckLukas opened this issue Apr 15, 2024 · 0 comments

Comments

@VoreckLukas
Copy link

When following the build guide as soon as I call colcon build I get an error like this

[11.592s] ERROR:colcon.colcon_core.shell:Exception in shell extension 'sh': Expected ['.', '/home/lukas/Projects/S6/build/carla_ros_bridge/colcon_command_prefix_setup_py.sh', '&&', 'env'] to pass: /nix/store/a1s263pmsci9zykm5xcdf7x9rv26w6d5-bash-5.2p26/bin/sh: line 1: /nix/store/rk067yylvhyb7a360n8k1ps4lb4xsbl3-coreutils-9.3/bin/env: Argument list too long

Traceback (most recent call last):
  File "/home/lukas/Projects/S6/.venv/lib/python3.11/site-packages/colcon_core/shell/__init__.py", line 306, in get_command_environment
    return await extension.generate_command_environment(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lukas/Projects/S6/.venv/lib/python3.11/site-packages/colcon_core/shell/sh.py", line 154, in generate_command_environment
    env = await get_environment_variables(cmd, cwd=str(build_base))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lukas/Projects/S6/.venv/lib/python3.11/site-packages/colcon_core/shell/__init__.py", line 342, in get_environment_variables
    output = await check_output(cmd, cwd=cwd, shell=shell)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/lukas/Projects/S6/.venv/lib/python3.11/site-packages/colcon_core/subprocess.py", line 129, in check_output
    assert not rc, f'Expected {args} to pass: {stderr_data}'
AssertionError: Expected ['.', '/home/lukas/Projects/S6/build/carla_ros_bridge/colcon_command_prefix_setup_py.sh', '&&', 'env'] to pass: /nix/store/a1s263pmsci9zykm5xcdf7x9rv26w6d5-bash-5.2p26/bin/sh: line 1: /nix/store/rk067yylvhyb7a360n8k1ps4lb4xsbl3-coreutils-9.3/bin/env: Argument list too long


[11.592s] ERROR:colcon.colcon_ros.task.ament_python.build:Could not find a shell extension for the command environment
Failed   <<< carla_ros_bridge [2.46s, exited with code 1]
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

1 participant