Bug 1881480

Summary: ClangCodeModel plugin does not find header files after clang-libs update
Product: [Fedora] Fedora Reporter: Lennart Brinkmann <lebrinkma>
Component: qt-creatorAssignee: Itamar Reis Peixoto <itamar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: helio, itamar, jreznik, kde-sig, manisandro, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: qt-creator-4.12.4-2.fc32 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of:
: 1997204 (view as bug list) Environment:
Last Closed: 2020-10-01 01:28:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lennart Brinkmann 2020-09-22 13:47:13 UTC
Description of problem:

After updating clang-libs to 10.0.1-2.fc32.x86_64 the ClangCodeModel plugin in Qt Creator fails to find the clang header files, displaying warning messages. 

Version-Release number of selected component (if applicable):
qt-creator-4.12.4-1.fc32.x86_64

How reproducible:
always

Steps to Reproduce:
1. Open Qt Creator
2. Create a new Qt Widgets Application

Actual results:
Qt Creator displays a warning message
Warning: The code model could not parse an included file, which might lead to incorrect code completion and highlighting, for example.
cstddef:50:10: error: 'stddef.h' file not found
...

Expected results:
No warning

Additional info:
The ClangCodeModel plugin seems to hardcode the path to the clang headers.
strings /usr/lib64/qtcreator/plugins/libClangCodeModel.so | grep /usr/lib64/clang/
/usr/lib64/clang/10.0.0/include

See also: https://bugs.archlinux.org/task/56821#comment164985

Rebuilding the qt-creator package would probably fix the issue for now.

Comment 1 Fedora Update System 2020-09-22 17:09:07 UTC
FEDORA-2020-04275c89c0 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-04275c89c0

Comment 2 Fedora Update System 2020-09-23 17:21:42 UTC
FEDORA-2020-04275c89c0 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-04275c89c0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-04275c89c0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Lennart Brinkmann 2020-09-24 10:06:11 UTC
The FEDORA-2020-04275c89c0 update fixes the issue for me.

Is there a way to prevent this issue from reappearing on the next clang update?

Comment 4 Fedora Update System 2020-10-01 01:28:20 UTC
FEDORA-2020-04275c89c0 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.