Clang fail create code model in QtCreator
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Ubuntu version: Ubuntu 20.04 LTS
QtCreator version: 4.11.0-2build2
After installing Ubuntu 20.04 and QtCreator I can't develop with QtCreator. It print hundred of code errors like incomplete QString class in Q_OBJECT macro or doesn't recognize any Qt class. Buidling the code works and compiler doen't print any errors so this comes from code model plugin in QtCreator.
I found out that qtcreator depends on libclang1-8 but by default it install clang-10 as clang resolve to it. I solved this problem with code model plugin by installing clang-8 which resolved all errors reported by itand now works properly.
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: qtcreator 4.11.0-2build2
ProcVersionSign
Uname: Linux 5.4.0-29-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Mon May 11 07:44:55 2020
InstallationDate: Installed on 2020-05-06 (4 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
SourcePackage: qtcreator
UpgradeStatus: No upgrade log present (probably fresh install)
I think this is same problem https:/ /askubuntu. com/questions/ 1232969/ qtcreator- not-recognizing -linked- libraries- after-upgrading -ubuntu- to-20-04