Bug#939825: qtcreator: clang-format plugin broken
On 2019-09-09 8:39 p.m., Lisandro Damián Nicanor Pérez Meyer wrote: > The error code comes from > src/plugins/clangformat/clangformatplugin.cpp::157. Looking at the > code it means that KEEP_LINE_BREAKS_FOR_NON_EMPTY_LINES_BACKPORTED is > not defined, but I do not know where that should be defined. > Looks like this functionality has not even been approved for unreleased upstream clang https://reviews.llvm.org/D53072 So I think the problem is that QtCreator authors only chose to make the ClangFormat plugin functional with a custom-patched clang version and it's hardcoded to fail in all other cases. - Adam
Bug#939825: qtcreator: clang-format plugin broken
The error code comes from src/plugins/clangformat/clangformatplugin.cpp::157. Looking at the code it means that KEEP_LINE_BREAKS_FOR_NON_EMPTY_LINES_BACKPORTED is not defined, but I do not know where that should be defined.
Bug#939825: qtcreator: clang-format plugin broken
Control: tag -1 -moreinfo Hi! On Mon, 9 Sep 2019 at 08:51, Roman Lebedev wrote: [snip] > > I'm terribly sorry, mixed clang with clazy, but the analysis still holds, > > you don't have clang installed > Ah, i was wondering what clazy had to do with anything. > > Yes, i do, that is the main compiler i'm using. > > $ dpkg -l | grep clang > ii clang-10 OK, I can reproduce this now. Weird enough all the steps in the README.md are being followed, so I'm kind of lost of what might be happening here.
Bug#939825: qtcreator: clang-format plugin broken
On Mon, Sep 9, 2019 at 2:37 PM Lisandro Damián Nicanor Pérez Meyer wrote: > > I'm terribly sorry, mixed clang with clazy, but the analysis still holds, you > don't have clang installed Ah, i was wondering what clazy had to do with anything. Yes, i do, that is the main compiler i'm using. $ dpkg -l | grep clang ii clang-10 1:10~svn370967-1~exp1+0~20190904200827.2719~1.gbpc222ee amd64 C, C++ and Objective-C compiler ii clang-7 1:7.0.1-9+b1amd64 C, C++ and Objective-C compiler ii clang-8 1:8.0.1-3+b1amd64 C, C++ and Objective-C compiler ii clang-9 1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830 amd64 C, C++ and Objective-C compiler ii clang-format-10 1:10~svn370967-1~exp1+0~20190904200827.2719~1.gbpc222ee amd64 Tool to format C/C++/Obj-C code ii clang-format-7 1:7.0.1-9+b1amd64 Tool to format C/C++/Obj-C code ii clang-format-8 1:8.0.1-3+b1amd64 Tool to format C/C++/Obj-C code ii clang-format-9 1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830 amd64 Tool to format C/C++/Obj-C code ii clang-tidy-10 1:10~svn370967-1~exp1+0~20190904200827.2719~1.gbpc222ee amd64 clang-based C++ linter tool ii clang-tidy-7 1:7.0.1-9+b1amd64 clang-based C++ linter tool ii clang-tidy-8 1:8.0.1-3+b1amd64 clang-based C++ linter tool ii clang-tidy-9 1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830 amd64 clang-based C++ linter tool ii clang-tools-10 1:10~svn370967-1~exp1+0~20190904200827.2719~1.gbpc222ee amd64 clang-based tools for C/C++ developments ii clang-tools-7 1:7.0.1-9+b1amd64 clang-based tools for C/C++ developments ii clang-tools-8 1:8.0.1-3+b1amd64 clang-based tools for C/C++ developments ii clang-tools-9 1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830 amd64 clang-based tools for C/C++ developments ii libclang-7-dev 1:7.0.1-9+b1amd64 Clang library - Development package ii libclang-common-10-dev 1:10~svn370967-1~exp1+0~20190904200827.2719~1.gbpc222ee amd64 Clang library - Common development package ii libclang-common-7-dev 1:7.0.1-9+b1amd64 Clang library - Common development package ii libclang-common-8-dev 1:8.0.1-3+b1amd64 Clang library - Common development package ii libclang-common-9-dev 1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830 amd64 Clang library - Common development package ii libclang-cpp1-10 1:10~svn370967-1~exp1+0~20190904200827.2719~1.gbpc222ee all transitional package ii libclang-cpp1-9 1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830 amd64 C++ interface to the Clang library ii libclang-cpp10 1:10~svn370967-1~exp1+0~20190904200827.2719~1.gbpc222ee amd64 C++ interface to the Clang library ii libclang1-10 1:10~svn370967-1~exp1+0~20190904200827.2719~1.gbpc222ee amd64C interface to the Clang library ii libclang1-7 1:7.0.1-9+b1amd64C interface to the Clang library ii libclang1-8 1:8.0.1-3+b1amd64C interface to the Clang library ii libclang1-9 1:9~svn366059-1~exp1+0~20190715121055.2623~1.gbp7d3830 amd64C interface to the Clang library I don't have clang package, because that one is counter-productive, since it only pulls in whatever latest is considered to be the default, and sets up clang symlinks; all of that i do manually (pointing to the ToT version.) Note that it complains about the build-time dependencies. Is libFormat correctly specified as compile-time dependency of qtcreator? Roman > El lun., 9 sep. 2019 08:35, Lisandro Damián Nicanor Pérez Meyer > escribió: >> >> severity 939825 normal >> tag 939825 moreinfo >> thanks >> >> Hi Roman! >> >> El lun., 9 sep. 2019 07:15, Roman Lebedev escribió: >>> >>> Package: qtcreator >>> Version: 4.10.0-1 >>> Severity: important >>> >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA512 >>> >>> Dear maintainer, after update to qtcreator 4.10.0-1, >>> on the first start, qtcreator is complaining that ClangFormat plugin >>> has errors and can not be loaded: "Plugin initialization failed: Disabling >>> ClangFormat plugin as it is not built against a suitable version of Clang's >>> libFormat. For more information, see the Qt Creator README at >>> https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/README.md; >> >> >> Clazy is currently involved in a llvm transition. Do you have it installed? >> See below. > > > I meant clang here, sorry. > >>> clang-format is a really important piece of modern workflow, so i set >>> priority to important. >> >> >> >> You can still run it by hand, so lowering to
Bug#939825: qtcreator: clang-format plugin broken
severity 939825 normal tag 939825 moreinfo thanks Hi Roman! El lun., 9 sep. 2019 07:15, Roman Lebedev escribió: > Package: qtcreator > Version: 4.10.0-1 > Severity: important > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Dear maintainer, after update to qtcreator 4.10.0-1, > on the first start, qtcreator is complaining that ClangFormat plugin > has errors and can not be loaded: "Plugin initialization failed: Disabling > ClangFormat plugin as it is not built against a suitable version of Clang's > libFormat. For more information, see the Qt Creator README at > https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/README.md; > Clazy is currently involved in a llvm transition. Do you have it installed? See below. clang-format is a really important piece of modern workflow, so i set > priority to important. > You can still run it by hand, so lowering to normal. Roman. > > - -- System Information: > Debian Release: bullseye/sid > APT prefers unstable > APT policy: (990, 'unstable'), (500, 'unstable-debug'), (1, > 'experimental-debug'), (1, 'experimental') > Architecture: amd64 (x86_64) > [snip] Versions of packages qtcreator recommends: > pn clang No clang and... Versions of packages qtcreator suggests: > pn clazy > No clazy either. Please check your system.
Bug#939825: qtcreator: clang-format plugin broken
I'm terribly sorry, mixed clang with clazy, but the analysis still holds, you don't have clang installed El lun., 9 sep. 2019 08:35, Lisandro Damián Nicanor Pérez Meyer < perezme...@gmail.com> escribió: > severity 939825 normal > tag 939825 moreinfo > thanks > > Hi Roman! > > El lun., 9 sep. 2019 07:15, Roman Lebedev escribió: > >> Package: qtcreator >> Version: 4.10.0-1 >> Severity: important >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA512 >> >> Dear maintainer, after update to qtcreator 4.10.0-1, >> on the first start, qtcreator is complaining that ClangFormat plugin >> has errors and can not be loaded: "Plugin initialization failed: >> Disabling >> ClangFormat plugin as it is not built against a suitable version of >> Clang's >> libFormat. For more information, see the Qt Creator README at >> https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/README.md; >> > > Clazy is currently involved in a llvm transition. Do you have it > installed? See below. > I meant clang here, sorry. clang-format is a really important piece of modern workflow, so i set >> priority to important. >> > > > You can still run it by hand, so lowering to normal. > > Roman. >> >> - -- System Information: >> Debian Release: bullseye/sid >> APT prefers unstable >> APT policy: (990, 'unstable'), (500, 'unstable-debug'), (1, >> 'experimental-debug'), (1, 'experimental') >> Architecture: amd64 (x86_64) >> > > > [snip] > > Versions of packages qtcreator recommends: >> pn clang > > > No clang and... > > Versions of packages qtcreator suggests: >> pn clazy >> > > No clazy either. > > Please check your system. >
Bug#939825: qtcreator: clang-format plugin broken
Package: qtcreator Version: 4.10.0-1 Severity: important -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Dear maintainer, after update to qtcreator 4.10.0-1, on the first start, qtcreator is complaining that ClangFormat plugin has errors and can not be loaded: "Plugin initialization failed: Disabling ClangFormat plugin as it is not built against a suitable version of Clang's libFormat. For more information, see the Qt Creator README at https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/README.md; clang-format is a really important piece of modern workflow, so i set priority to important. Roman. - -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'unstable-debug'), (1, 'experimental-debug'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 5.2.0-2-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) Versions of packages qtcreator depends on: ii libc6 2.28-10 ii libclang1-81:8.0.1-3+b1 ii libgcc11:9.2.1-7 ii libllvm8 1:8.0.1-3+b1 ii libqbscore1.12 1.12.2+dfsg-2 ii libqt5concurrent5 5.11.3+dfsg1-4 ii libqt5core5a [qtbase-abi-5-11-3] 5.11.3+dfsg1-4 ii libqt5designer55.11.3-4 ii libqt5designercomponents5 5.11.3-4 ii libqt5gui5 5.11.3+dfsg1-4 ii libqt5help55.11.3-4 ii libqt5network5 5.11.3+dfsg1-4 ii libqt5printsupport55.11.3+dfsg1-4 ii libqt5qml5 [qtdeclarative-abi-5-11-2] 5.11.3-4 ii libqt5quick5 5.11.3-4 ii libqt5quickwidgets55.11.3-4 ii libqt5script5 5.11.3+dfsg-3 ii libqt5serialport5 5.11.3-2 ii libqt5sql5 5.11.3+dfsg1-4 ii libqt5sql5-sqlite 5.11.3+dfsg1-4 ii libqt5widgets5 5.11.3+dfsg1-4 ii libqt5xml5 5.11.3+dfsg1-4 ii libstdc++6 9.2.1-7 ii qml-module-qtqml-models2 5.11.3-4 ii qml-module-qtquick-controls5.11.3-2 ii qml-module-qtquick25.11.3-4 ii qtchooser 66-2 ii qtcreator-data 4.10.0-1 Versions of packages qtcreator recommends: pn clang ii gdb8.3-1 ii konsole [x-terminal-emulator] 4:19.08.0-1 ii make 4.2.1-1.2 ii qmlscene 5.11.3-4 ii qt5-doc5.11.3-1 ii qt5-qmltooling-plugins 5.11.3-4 ii qtbase5-dev-tools 5.11.3+dfsg1-4 pn qtcreator-doc ii qtdeclarative5-dev-tools 5.11.3-4 ii qttools5-dev-tools 5.11.3-4 ii qttranslations5-l10n 5.11.3-2 ii qtxmlpatterns5-dev-tools 5.11.3-2 ii xterm [x-terminal-emulator]348-2 Versions of packages qtcreator suggests: pn clazy ii cmake 3.13.4-1 ii g++ 4:9.2.1-3 ii git 1:2.23.0-1 ii kate-data 4:4.14.3-5 ii subversion 1.10.6-1 ii valgrind1:3.15.0-1 - -- no debconf information -BEGIN PGP SIGNATURE- iQIzBAEBCgAdFiEEjkF6151RK40WXe2HCDw+u0oWieAFAl12JasACgkQCDw+u0oW ieBGoQ//fmPy31CC3IdS6NjjrX5Zc72q4kxJ9HqHUFjp73tdPBgMSQuhWmpcc5D6 J5yjyBonVQGN6nzrRjgd5fHvcHTsHSQZOfp9WhFYp/kyXhK/7J/q7hss0epOAZD9 cKgcNWOPAKpQjHBhEIM87nerxjaJFEZkxfW/x8DW5W7Yi8aT9zmda+d2adVc4qCH NCGcsZw8fDAmMGBugfaoZI7+k+cny6MyDUoq0BGk7VraGPdmnyNXl5+Q1dIwE9K/ E45OSIm+avgxUvLGAts1HRN0WER3fGzucdLhjXPpaSF4GgA4v6I5ZfK77U+3PpRe ocU4dIESRSwuImB5NDHVWS3vB9pSUVZV7LNNEgmPyrswCHxUtkTiHLw9+n6aSwgz mdMH+3IxjPXeH3gWSxmZoFYBs3VDcJGPXRPJlFaSdnmmysOVPxggSVEwNFXxx8Na g/dcHjAnzaOwRV9Ren26MF1DllnBxPfNJg363rkdX0c8ieAlj9hAB0n4Vf53NVxt F/MnjVKOxR5TDGSGULwEHBGq4qods/LADNMl9sFMm6ozW74xwlXKHcIl0CDOCKwK hupf2vQccayXDct1Zr1XNRZVMFI7I8vga33N+x0RbpLOPMswBiuRlsdn6nLL2Tbj SshDsFekLt+2bKFIgUbQEcVJKcJDImfEC8N6q+b37izlPrjV3D4= =32LT -END PGP SIGNATURE-