Bug 385439 - "Failed to parse translation unit: " errors for inexistant files
Summary: "Failed to parse translation unit: " errors for inexistant files
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (Clang-based) (other bugs)
Version First Reported In: git master
Platform: Compiled Sources All
: NOR minor
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-06 14:53 UTC by RJVB
Modified: 2022-12-10 05:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RJVB 2017-10-06 14:53:42 UTC
Re-opening a session after reverting a WIP patch that adds a number of files that had open when last quitting that session:

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: "/Users/bertin/work/src/new/KDE/KF5/kk-git/kdevplatform/project/projectwatcher.h"
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: "/Users/bertin/work/src/new/KDE/KF5/kk-git/kdevplatform/project/tests/abstractfilemanagerpluginimportbenchmark.cpp"
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: "/Users/bertin/work/src/new/KDE/KF5/kk-git/kdevplatform/project/projectwatcher.cpp"


Methinks the plugin could avoid adding inexistant (or empty) files to a translation unit, no?
Comment 1 Justin Zobel 2022-11-10 08:52:29 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:18:14 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:15:17 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!