[bug] ResourceNotFoundError when running debugger while building with colcon #1300
Open
2 tasks done
Labels
bug
Something isn't working
version: main (35f2f3b)
I'm running the extension in a devcontainer.
what is the bug
When compiling ROS 1 packages using colcon instead of catkin_make, the
launch
debug task does not find the nodes being launched as theworkspaceOverlayPath
is incorrectly set todevel
instead ofinstall
, causing an error dialog to come up with a 'ResourceNotFoundeError`. The offending logic for that is here.Repro steps
launch
which launches a launch file that starts the c++ ROS nodeexpected behavior
Debugger launches, finds node, launches it, stops at breakpoint
additional context
I tried debugging this by using the VSIX steps since I'm running inside the container (took a while to figure this out, a link to this in the contributing.md file would have helped)
A simple fix could be to add another nested if statement:
though the better solution would be to not use the
ROS_VERSION
to inform the location but instead find whatever install or devel files exist.VScode also tells me that
vscode.workspace.rootPath
is deprecated andvscode.workspace.workspaceFolder
should be used.Even with these fixes I couldn't get the debugger to actually break at the break points, they simply grey out, so I can't fully test the whole set up, but I'd be happy to create a PR.
The text was updated successfully, but these errors were encountered: