Bug 398029

Summary: Kdevelop tries to analyze *.png, *.html and other non-source files if they are between sources
Product: [Applications] kdevelop Reporter: Gleb Kulikov <glebus>
Component: generalAssignee: kdevelop-bugs-null
Status: REPORTED ---    
Severity: normal CC: aspotashev, igorkuo
Priority: NOR    
Version First Reported In: 5.6.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Gleb Kulikov 2018-08-29 17:11:51 UTC
when opening existing project with documentation folder in source tree, Kdevelop tries to analyze *.png, *.html and other non-source files. It is long process and  leads to very high CPU and memory consumption.
Comment 1 Justin Zobel 2022-12-02 01:22:58 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-12-17 05:13:47 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 3 Gleb Kulikov 2022-12-18 17:28:53 UTC
Good evening,

this bug is reproducible, as minimum, in 5.6.1
Comment 4 Igor Kushnir 2022-12-18 18:58:15 UTC
What do you mean by "tries to analyze"? Have you tried moving the directory with non-source files out of the project's directory and comparing the results?

KDevelop::LanguageController queries each unsupported file's MIME type, finds the MIME type in a QHash cache and then ignores the file.  The LanguageController checks were optimized in https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/151 (KDevelop 5.8.220400).

Opening a project used to be slow because of Quick Open plugin's inefficiency. It was optimized in https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/224 (KDevelop 5.7.211200). You could check whether Quick Open slows down opening your project by temporarily disabling this plugin in KDevelop settings => Plugins.