ros-industrial / ros_qtc_plugin

ROS Qt Creator Plug-in (https://ros-qtc-plugin.readthedocs.io)
398 stars 214 forks source link

Too many target contexts available for each source file #371

Closed schornakj closed 5 years ago

schornakj commented 5 years ago

If I create a ROS package with multiple CMake targets (executables or libraries), each source file in the editor will be erroneously associated with all the targets instead of only the one that the source file is linked against. This can cause errors with code completion and semantic highlighting: if the default context for a ROS node .cpp file is from a non-ROS executable, all rclcpp usages will show errors in the editor even though the project will build successfully.

A workaround is to manually change the target in the dropdown menu to the top right of the editor to match the source file being edited.

Levi-Armstrong commented 5 years ago

Addressed by #373