Bug 1881480 - ClangCodeModel plugin does not find header files after clang-libs update
Summary: ClangCodeModel plugin does not find header files after clang-libs update
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: qt-creator
Version: 32
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Itamar Reis Peixoto
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-22 13:47 UTC by Lennart Brinkmann
Modified: 2020-10-01 01:28 UTC (History)
6 users (show)

Fixed In Version: qt-creator-4.12.4-2.fc32
Doc Type: ---
Doc Text:
Clone Of:
: 1997204 (view as bug list)
Environment:
Last Closed: 2020-10-01 01:28:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.