https://bugs.kde.org/show_bug.cgi?id=387391

Victor Lamoine <victor.lamo...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |victor.lamo...@gmail.com
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #26 from Victor Lamoine <victor.lamo...@gmail.com> ---
Just trying to add more information, the background parser fails to parse my
ROS projects if the ROS packages (a directory containing a CMakeLists.txt file)
are symlinks

I'm using KDevelop 5.2.1 on Kubuntu 18.04

Steps to reproduce
- Install ROS: http://wiki.ros.org/melodic/Installation/Ubuntu
- Clone one of my package to your $HOME directory: 

git clone https://gitlab.com/InstitutMaupertuis/topics_rviz_plugin.git
$HOME/topics_rviz_plugin

- Create a catkin workspace with the ROS package as a symlink:

mkdir -p $HOME/catkin_workspace/src
cd $HOME/catkin_workspace/src
catkin_init_workspace
ln -s ../../topics_rviz_plugin


- Launch KDevelop from a terminal in which ROS is sourced (usally done in
.bashrc, see
http://wiki.ros.org/melodic/Installation/Ubuntu#melodic.2BAC8-Installation.2BAC8-DebEnvironment.Environment_setup),
you can also use

source /opt/ros/*/setup.bash

- Import the top level CMakeLists.txt
($HOME/catkin_workspace/src/CMakeLists.txt)
- Tweak the import parameters like advised here:
https://wiki.ros.org/IDEs#Building_catkin_packages
- Let the background parser finish (shouldn't take more than a few seconds)
- Open topics_rviz_plugin/src/topic_info.cpp for example, it should be
correctly coloured, modify the file (add a whitespace for example) and save,
the colours goes away and KDE fails to resolve every ROS include.

# Before editing the file
https://phabricator.kde.org/file/data/bfp4lecqj4x2rscdcefx/PHID-FILE-vfndx6hqoqlr5xbihkul/Screenshot_20180724_150241.png

# After editing the file
https://phabricator.kde.org/file/data/c7tgybksobzitmbbjpa7/PHID-FILE-r3tiwi3metsql5bd2z4u/Screenshot_20180724_150248.png

If instead of having a symlink in the catkin workspace
($HOME/catkin_workspace/src/topics_rviz_plugin) you put the directory and
import the project again, everything works perfectly.
My conclusion is that the symlink causes the problems but I can be wrong.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to