Bug 409235

Summary: kdevelop: reloading project files generates *.d-files from all source files in home directory
Product: [Applications] kdevelop Reporter: me
Component: All build toolsAssignee: kdevelop-bugs-null
Status: RESOLVED INTENTIONAL    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.4.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description me 2019-06-27 09:39:39 UTC
SUMMARY
Reloading project files generates a dependency files (*.d) of all source files  of the project in the users home directory. It seems this only happens if the project is split up into multiple libraries (used wiht add_subdirectory / target_link_libraries)


STEPS TO REPRODUCE
1. create a simple cmake project (with module in subfolder)
2. reload project files

OBSERVED RESULT
*.d files are generated in the home directory

EXPECTED RESULT
no *.d files in the home directory

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE neon User Edition 5.16
KDE Plasma Version: 5.16.1
KDE Frameworks Version: 5.59.0
Qt Version: 5.12.3
Comment 1 Milian Wolff 2020-02-14 09:35:12 UTC
I've never seen this happen :) can you please attach the example project you used?

how did you configure it - purely from kdevelop or also from the command line?

what version of cmake do you use?
Comment 2 me 2020-02-28 15:24:37 UTC
(In reply to Milian Wolff from comment #1)
> I've never seen this happen :) can you please attach the example project you
> used?

I tried to create a minimal example but this seemed to work as it should. one if my older project not but that one, I can't attach here

> how did you configure it - purely from kdevelop or also from the command
> line?

I used it from both, kdevelop and cmd line

> what version of cmake do you use?

always a quite recent one (3.16.4 atm)
Comment 3 Milian Wolff 2020-03-02 21:29:37 UTC
can you try the latest kdevelop version from git master which uses the cmake file api instead of the cmake server mode? maybe that fixes this?
Comment 4 Bug Janitor Service 2020-03-17 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 me 2020-03-17 06:25:01 UTC
I tried it with the git version, same result. opening one of my 'older' project, *.d files for all c-files were created in the home directory. it doesn't happen on the sample project I created.
As I don't have the time to investigate further, I'll close it for now...