Bug 387181

Summary: parser being started for absent/empty files
Product: [Applications] kdevelop Reporter: RJVB <rjvbertin>
Component: Language Support: CPP (Clang-based)Assignee: kdevelop-bugs-null
Status: RESOLVED WORKSFORME    
Severity: minor    
Priority: NOR    
Version First Reported In: 5.2.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description RJVB 2017-11-21 12:47:43 UTC
I just caught this on a calling terminal:

kdevelop.languages.clang: clang_parseTranslationUnit2 return with error code 1
kdevelop.languages.clang:   (start KDevelop with `KDEV_CLANG_DISPLAY_DIAGS=1 kdevelop` to see more diagnostics)
kdevelop.languages.clang: Failed to parse translation unit: "/path/to/kdevelop5-git/kdevplatform/project/tests/abstractfilemanagerpluginimportbenchmark.cpp"

That's when starting kdevelop with a project for my git working copy of the KDevelop source tree, and a session I closed with the indicated file open when I had the master branch checked out. When reopening the project I had the 5.2 branch checked out, in which the file doesn't exist.

The session shows it as a new file which is correct, but apparently it also tries to feed it to the clang parser, which seems pointless.
Comment 1 Justin Zobel 2022-11-10 22:32:42 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-11-25 05:20:05 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 Bug Janitor Service 2022-12-10 05:16:55 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

Thank you for helping us make KDE software even better for everyone!