When I use CLion on a ROS project, I get the following banner when looking at .h files: This file does not belong to any project target, code insight features might not work properly.
Any insight?
To reproduce:
mkdir -p ~/catkin_ws/src
cd catkin_ws
catkin_make
source devel/setup.bash
cd src
git clone https://github.com/ros/geometry.git # Can be anything
cd ..
catkin_make
~/clion-2017.2.3/bin/clion.sh src/CMakeLists.txt
Then open any .h file to see the banner. Code completion works fine in .cpp files.
Thanks in advance!
Originally posted by clyde on ROS Answers with karma: 1247 on 2017-11-14
Post score: 2
Original comments
Comment by Femer on 2017-11-15:
Hi Clyde. I have the same issue with Clion 2017.2.3
It does NOT happen (i.e. the .h file is seen correctly) in Clion 2017.1.3
It seems like that you're using 2017.2.3 as well (from the last line of your code snippet).