[kdevelop] [Bug 387095] Since KDevelop 5.2.x release CMake target items in the project tree view are shown twice.

2017-11-19 Thread Milian Wolff
https://bugs.kde.org/show_bug.cgi?id=387095

--- Comment #9 from Milian Wolff  ---
Ah, now I see - thanks for the clarifications. I still find it very suspect
that CMake lists the targets multiple times. Anyhow, this can probably be
workarounded somehow in KDevelop's cmake server import job. I'll have a quick
look now.

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

[kdevelop] [Bug 387095] Since KDevelop 5.2.x release CMake target items in the project tree view are shown twice.

2017-11-19 Thread Venca B Spam
https://bugs.kde.org/show_bug.cgi?id=387095

--- Comment #8 from Venca B Spam  ---
Although it looks to me now as a bit more complex design issue, the KDevelop
release 5.1.x was ok, at least from the user experience perspective.

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

[kdevelop] [Bug 387095] Since KDevelop 5.2.x release CMake target items in the project tree view are shown twice.

2017-11-19 Thread Venca B Spam
https://bugs.kde.org/show_bug.cgi?id=387095

--- Comment #7 from Venca B Spam  ---
Created attachment 108968
  --> https://bugs.kde.org/attachment.cgi?id=108968=edit
Illustration of multiproject-cmake-server-response JSON

I am not sure if the CMake output is wrong. It looks they want to keep scopes.
The thing is that this technique "project-in-project" is completely legal in
CMake.

The core issue here is that in CMake you can have multiple projects in a single
build system. Looks like KDevelop idea of a "project" does not match the CMake
one.

In order to make the issue easier to understand please see attached
screenrecording of the JSON response.

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

[kdevelop] [Bug 387095] Since KDevelop 5.2.x release CMake target items in the project tree view are shown twice.

2017-11-19 Thread Milian Wolff
https://bugs.kde.org/show_bug.cgi?id=387095

--- Comment #6 from Milian Wolff  ---
If the cmake server reply is already bogus, this bug should be reported
upstream against cmake and fixed there, imo

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

[kdevelop] [Bug 387095] Since KDevelop 5.2.x release CMake target items in the project tree view are shown twice.

2017-11-19 Thread Venca B Spam
https://bugs.kde.org/show_bug.cgi?id=387095

--- Comment #5 from Venca B Spam  ---
I did some investigation and it seems that the CMake project is ok. It contains
exactly what I would expect.

There is however one clue which may help to find out what changed in KDevelop
interpretation of the CMake output. I noticed that the "superproject" contains
all targets of all "subprojects". And all "subprojects" they contain their
targets as one would expect. 

As the superproject contains all subprojects' targets, they are in the fact in
the CMake server "codemodel" reply twice. For details please see attached
https://bugs.kde.org/attachment.cgi?id=108966 saved JSON response (Firefox can
be used to visualize the file).

I go for bisect now, however if anyone has an idea where to look to, would be
nice?

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

[kdevelop] [Bug 387095] Since KDevelop 5.2.x release CMake target items in the project tree view are shown twice.

2017-11-19 Thread Venca B Spam
https://bugs.kde.org/show_bug.cgi?id=387095

--- Comment #4 from Venca B Spam  ---
Created attachment 108966
  --> https://bugs.kde.org/attachment.cgi?id=108966=edit
Multiproject parsed by CMake server

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

[kdevelop] [Bug 387095] Since KDevelop 5.2.x release CMake target items in the project tree view are shown twice.

2017-11-18 Thread Venca B Spam
https://bugs.kde.org/show_bug.cgi?id=387095

--- Comment #3 from Venca B Spam  ---
Created attachment 108957
  --> https://bugs.kde.org/attachment.cgi?id=108957=edit
Bug report illustration

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

[kdevelop] [Bug 387095] Since KDevelop 5.2.x release CMake target items in the project tree view are shown twice.

2017-11-18 Thread Venca B Spam
https://bugs.kde.org/show_bug.cgi?id=387095

--- Comment #2 from Venca B Spam  ---
Created attachment 108956
  --> https://bugs.kde.org/attachment.cgi?id=108956=edit
SampleProject

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

[kdevelop] [Bug 387095] Since KDevelop 5.2.x release CMake target items in the project tree view are shown twice.

2017-11-18 Thread Venca B Spam
https://bugs.kde.org/show_bug.cgi?id=387095

--- Comment #1 from Venca B Spam  ---
Created attachment 108955
  --> https://bugs.kde.org/attachment.cgi?id=108955=edit
SampleMultiProject

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