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

Colcon clean does not work #3

Closed
Flova opened this issue Jan 23, 2024 · 1 comment
Closed

Colcon clean does not work #3

Flova opened this issue Jan 23, 2024 · 1 comment

Comments

@Flova
Copy link

Flova commented Jan 23, 2024

Building works fine, but I get the following output when I run colcon clean workspace in a subfolder (/homes/17vahl/colcon_ws_mono/src/bitbots_meta in the traceback)

colcon clean workspace                            
Using workspace root /homes/17vahl/colcon_ws_mono
Paths:
[1.892s] colcon ERROR colcon clean: '/homes/17vahl/colcon_ws_mono/build' is not in the subpath of '/homes/17vahl/colcon_ws_mono/src/bitbots_meta' OR one path is relative and the other is absolute.
Traceback (most recent call last):
  File "/homes/17vahl/.local/lib/python3.10/site-packages/colcon_core/command.py", line 522, in verb_main
    rc = context.args.main(context=context)
  File "/homes/17vahl/.local/lib/python3.10/site-packages/colcon_clean/subverb/workspace.py", line 58, in main
    clean_paths(
  File "/homes/17vahl/.local/lib/python3.10/site-packages/colcon_clean/subverb/__init__.py", line 235, in clean_paths
    path = path.relative_to(cwd_path)
  File "/usr/lib/python3.10/pathlib.py", line 818, in relative_to
    raise ValueError("{!r} is not in the subpath of {!r}"
ValueError: '/homes/17vahl/colcon_ws_mono/build' is not in the subpath of '/homes/17vahl/colcon_ws_mono/src/bitbots_meta' OR one path is relative and the other is absolute.
@cottsay
Copy link
Member

cottsay commented Feb 9, 2024

This was resolved yesterday by a change to colcon-clean.

Duplicate of colcon/colcon-clean#37

@cottsay cottsay closed this as not planned Won't fix, can't repro, duplicate, stale Feb 9, 2024
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

2 participants