• Bug#1064846: kdevelop: Code highlighting breaks when changing compiler

    From David James@21:1/5 to All on Mon Feb 26 17:20:01 2024
    Package: kdevelop
    Version: 4:23.08.1-2+b1
    Severity: normal
    X-Debbugs-Cc: davidjamescastor215@proton.me

    Dear Maintainer,

    When using the default compiler on my system (GCC/G++) the code highlighting works fine and mousing over variables shows declaration etc.. However, when I switch the compiler to clang or cross compiling for ARM (by passing -DCMAKE_C_COMPILER=/usr/bin/clang in "extra parameters" in the configuration dialog), the code highlight and variable prediction/help text stops working. Keywords like void and extern are still coloured blue, and strings are still coloured red, but everything else is just plain.

    These were all CMake projects.

    -- System Information:
    Debian Release: trixie/sid
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.6.15-amd64 (SMP w/12 CPU threads; PREEMPT)
    Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
    Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages kdevelop depends on:
    ii kdevelop-data 4:23.08.1-2
    ii kdevelop512-libs 4:23.08.1-2+b1
    ii kinit 5.107.0-1
    ii kio 5.107.0-1+b1
    ii libapr1 1.7.2-3+b2
    ii libaprutil1 1.6.3-1+b1
    ii libastyle3 3.1-3+b1
    ii libc6 2.37-15
    ii libclang1-16 1:16.0.6-19
    ii libgcc-s1 14-20240201-3
    ii libgrantlee-templates5 [grantlee5-templates-5-3] 5.3.1-3+b1
    ii libkasten4controllers0 5:0.26.15-1
    ii libkasten4core0 5:0.26.15-1
    ii libkasten4okteta2controllers0 5:0.26.15-1
    ii libkasten4okteta2core0 5:0.26.15-1
    ii libkasten4okteta2gui0 5:0.26.15-1
    ii libkf5archive5 5.107.0-1+b1
    ii libkf5bookmarks5 5.107.0-1+b1
    ii libkf5codecs5 5.107.0-1+b1
    ii libkf5completion5 5.107.0-1+b1
    ii libkf5configcore5 5.107.0-1+b1
    ii libkf5configgui5 5.107.0-1+b1
    ii libkf5configwidgets5 5.107.0-2+b1
    ii libkf5coreaddons5 5.107.0-1+b1
    ii libkf5crash5 5.107.0-1+b1
    ii libkf5declarative5 5.107.0-1+b1
    ii libkf5guiaddons5 5.107.0-1+b1
    ii libkf5i18n5 5.107.0-1+b1
    ii libkf5iconthemes5 5.107.0-1+b1
    ii libkf5itemmodels5 5.107.0-1+b1
    ii libkf5itemviews5 5.107.0-1+b1
    ii libkf5jobwidgets5 5.107.0-1+b1
    ii libkf5kiocore5 5.107.0-1+b1
    ii libkf5kiofilewidgets5 5.107.0-1+b1
    ii libkf5kiogui5 5.107.0-1+b1
    ii libkf5kiowidgets5 5.107.0-1+b1
    ii libkf5newstuffcore5 5.107.0-2+b1
    ii libkf5newstuffwidgets5 5.107.0-2+b1
    ii libkf5parts5 5.107.0-1+b1
    ii libkf5purpose-bin 5.107.0-1+b1
    ii libkf5purpose5 5.107.0-1+b1
    ii libkf5service-bin 5.107.0-1+b1
    ii libkf5service5 5.107.0-1+b1
    ii libkf5sonnetui5 5.107.0-1+b1
    ii libkf5texteditor5 5.107.0-1+b1
    ii libkf5textwidgets5 5.107.0-1+b1
    ii libkf5threadweaver5 5.107.0-1+b1
    ii libkf5widgetsaddons5 5.107.0-1+b1
    ii libkf5xmlgui5 5.107.0-1+b1
    ii libkomparediff2-5 4:22.12.3-1
    ii libokteta3core0 5:0.26.15-1
    ii libokteta3gui0 5:0.26.15-1
    ii libprocesscore9 4:5.27.10-1
    ii libprocessui9 4:5.27.10-1
    ii libqt5core5a 5.15.10+dfsg-7
    ii libqt5dbus5 5.15.10+dfsg-7
    ii libqt5gui5 5.15.10+dfsg-7
    ii libqt5help5 5.15.10-6
    ii libqt5network5 5.15.10+dfsg-7
    ii libqt5qml5 5.15.10+dfsg-2+b1
    ii libqt5quick5 5.15.10+dfsg-2+b1
    ii libqt5quickwidgets5 5.15.10+dfsg-2+b1
    ii libqt5widgets5 5.15.10+dfsg-7
    ii libqt5xml5 5.15.10+dfsg-7
    ii libstdc++6 14-20240201-3
    ii libsvn1 1.14.3-1+b1
    ii qml-module-qtquick-controls 5.15.10-2+b1
    ii qml-module-qtquick-layouts 5.15.10+dfsg-2+b1
    ii qml-module-qtquick-window2 5.15.10+dfsg-2+b1
    ii qml-module-qtquick-xmllistmodel 5.15.10-2+b1
    ii qml-module-qtquick2 5.15.10+dfsg-2+b1
    ii qml-module-qtwebkit 5.212.0~alpha4-33+b1

    Versions of packages kdevelop recommends:
    ii clang-16 1:16.0.6-19
    ii g++ 4:13.2.0-7
    ii gcc 4:13.2.0-7
    ii gdb 13.2-1
    ii kapptemplate 4:22.12.3-1
    ii kio-extras 4:23.08.4-1
    ii make 4.3-4.1

    Versions of packages kdevelop suggests:
    ii clang 1:16.0-57
    ii clang-tidy 1:16.0-57
    pn clazy <none>
    ii cmake 3.28.3-1
    pn cppcheck <none>
    ii git 1:2.43.0-1
    pn heaptrack <none>
    pn kdevelop-l10n <none>
    pn konsole <none>
    ii meson 1.2.3-1
    ii ninja-build 1.11.1-2

    -- no debconf information

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)