Skip to content

Fix parsing of "rospack list" when path contains spaces #1304

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rovo89
Copy link

@rovo89 rovo89 commented Apr 16, 2025

If the output contains a line like this:

paho-mqtt-c /opt/ros/noetic/share/Eclipse Paho C

The parsing logic failed because the split() result contains more than two elements.

Subsequently, the c_cpp_properties.json file was not created correctly.

This commit re-joins the path elements to handle this case.

If the output contains a line like this:

    paho-mqtt-c /opt/ros/noetic/share/Eclipse Paho C

The parsing logic failed because the split() result contains more than
two elements.

Subsequently, the c_cpp_properties.json file was not created correctly.

This commit re-joins the path elements to handle this case.
@rovo89 rovo89 requested a review from a team as a code owner April 16, 2025 20:56
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

Successfully merging this pull request may close these issues.

1 participant