Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Highlighting syntax errors without clangd
Forum Updated to NodeBB v4.3 + New Features

Highlighting syntax errors without clangd

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 238 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Petr K
    wrote on 22 Feb 2024, 11:46 last edited by
    #1

    I'm using Qt Creator to edit a very large C++ codebase (namely, Chromium source code), on Ubuntu linux. For a long time, I've been using "Qt Creator 6.0.2 Based on Qt 5.15.3 (GCC 11.2.0, x86_64)" installed via standard Ubuntu repositories. It was working very well, and all the code tools (code completion, finding all references, highlighting syntax errors, etc.) that I needed to use were working very well, especially as compared to other IDEs. And it was using only about 8 Gb of RAM.

    Now I've installed fresh "Qt Creator 13.0.0-beta1 (12.0.82) Based on Qt 6.6.0 (GCC 11.4.0, x86_64)", downloaded from https://github.com/qt-creator/qt-creator/releases/tag/v13.0.0 . Apparently it now can use clangd for code-related tools, but when I enable clangd, it very quickly takes more than 20 Gb of RAM and more, generates a huge CPU load, and makes everything unusable.

    I disabled clangd and found that all the features (code completion, find-all-references, etc.) work... except highlighting syntax errors. Only very simple syntax errors are highlighted, anything more advanced gets skipped.

    For example, I've made two errors in the code. Below are screenshots from the old and the new Qt Creator:

    old:
    qt-old.png
    new:
    qt-new.png

    Old version can catch "no member Foo in Bar' errors, while the new catches only the extra space error.

    Is there any way to enable the same syntax checker in the new Qt Creator, without resorting to clangd?

    1 Reply Last reply
    0

    1/1

    22 Feb 2024, 11:46

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved