Clang fail create code model in QtCreator

Bug #1877927 reported by nou
6
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 5.4.0-29.33-generic 5.4.30
Uname: Linux 5.4.0-29-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
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)

Revision history for this message
nou (poizl) wrote :
Revision history for this message
nou (poizl) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtcreator - 4.12.4-1

---------------
qtcreator (4.12.4-1) unstable; urgency=medium

  * Team upload.
  * New upstream release.
  * Use the default LLVM/clang Debian versions, rather than hardcoding 8.
    Hopefully qtcreator will properly support newer LLVM versions fast enough.
    (Closes: #966007)
    - switch the libclang-8-dev build dependency to libclang-dev >= 8
    - switch the llvm-8-dev build dependency to llvm-dev >= 8
    - get the LLVM root using llvm-config
  * Switch the generic clang recommend to a dependency of the exact clang-N
    used to build (Closes: #919860, #952718) (LP: #1890434, #1877927)
    - add the clang build dependency to get the used clang executable
  * Drop the Debian man page, as it is outdated, and it offers no useful
    information.
  * Force the version of libqt5designercomponents5 as dependency to be at least
    the same as used during the build. (Closes: #966169)
  * Remove the kate-data suggest, as it does not exist anymore; syntax
    highlighting files are already provided by KF5SyntaxHighlighting.

 -- Pino Toscano <email address hidden> Wed, 19 Aug 2020 19:00:23 +0200

Changed in qtcreator (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.