You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed recently that in ament_python packages, when building with --symlink-install, if I delete a file that was symlinked in the build folder, then on the subsequent build I get the error: can't copy 'build/<deleted-file> doesn't exist or not a regular file. Maybe it has to do with #592?
Get: can't copy 'build/<deleted-file> doesn't exist or not a regular file
The workaround is simply to delete the build folder and try again but it would be nice if that wasn't necessary. Maybe you could delete automatically orphaned symlinks?
The text was updated successfully, but these errors were encountered:
I'm having trouble understanding exactly what the problem is here. Are you deleting the file from inside the build base or deleting the file in the package sources? Is the file still referenced in the setup.py or setup.cfg under data_files? Is data_files using a wildcard?
It's pretty much the first thing that setuptools' copy function checks, and I don't see a way around it there. I think we might be able to modify the process that populates the "staged" package and explicitly remove dangling symlinks that match a data_files wildcard like this, but it might be tricky.
Either way, there will still be a dead symlink left in the install base. Same would happen with CMake.
I noticed recently that in ament_python packages, when building with
--symlink-install
, if I delete a file that was symlinked in thebuild
folder, then on the subsequent build I get the error:can't copy 'build/<deleted-file> doesn't exist or not a regular file
. Maybe it has to do with #592?to reproduce:
colcon build --symlink-install --packages-select package
data_files
ofsetup.py
colcon build --symlink-install --packages-select package
can't copy 'build/<deleted-file> doesn't exist or not a regular file
The workaround is simply to delete the build folder and try again but it would be nice if that wasn't necessary. Maybe you could delete automatically orphaned symlinks?
The text was updated successfully, but these errors were encountered: