FS#62221 - qtcreator 4.8.2-2 cannot find the Clazy plugin
Attached to Project:
Arch Linux
Opened by Angelo Theodorou (encelo) - Wednesday, 03 April 2019, 15:06 GMT
Last edited by Antonio Rojas (arojas) - Monday, 06 May 2019, 16:17 GMT
Opened by Angelo Theodorou (encelo) - Wednesday, 03 April 2019, 15:06 GMT
Last edited by Antonio Rojas (arojas) - Monday, 06 May 2019, 16:17 GMT
|
Details
Description:
With version 4.8.2-2 Qt Creator was recompiled against LLVM 8.0. It seems that now the patch that was added to support Clazy 1.5 is not working anymore: https://git.archlinux.org/svntogit/packages.git/tree/trunk/qtcreator-clang-plugins.patch?h=packages/qtcreator Steps to reproduce: First be sure to have Clazy enabled in the Diagnostic Configurations window that is accessible from the Code Model tab in Tools->Options->C++ (Level 0 is enough). Then start the IDE from the console with `QT_LOGGING_RULES=qtc.clang*=true qtcreator` to enable additional debug output. Then, when opening a C++ file, you could read in the console the following message: `error: unable to find plugin 'clazy'` At this point the whole Code Model plugin will stop working, this means no syntax highlighting and no auto-completion. In order to make it work again it is sufficient to disable Clazy support from the Diagnostic Configurations. |
This task depends upon
Closed by Antonio Rojas (arojas)
Monday, 06 May 2019, 16:17 GMT
Reason for closing: Fixed
Additional comments about closing: qtcreator 4.9.0-2 (only when running from the .desktop file)
Monday, 06 May 2019, 16:17 GMT
Reason for closing: Fixed
Additional comments about closing: qtcreator 4.9.0-2 (only when running from the .desktop file)
I can't reproduce the issue; clazy checks seem to work fine.
Check that all your packages are at the correct version:
$ pacman -Q qtcreator clazy clang llvm-libs
qtcreator 4.8.2-2
clazy 1.5-2
clang 8.0.0-3
llvm-libs 8.0.0-1
I confirm I have the exact same package versions as you.
Anyway, as QtCreator 4.9 is just days away from release maybe we can just wait for it first.
Thanks for your time,
Angelo
Loading the clazy plugin still works fine when invoking clang from the command line
/usr/bin/clang -fsyntax-only -Xclang -load -Xclang ClazyPlugin.so -Xclang -add-plugin -Xclang clazy foo.cpp
However it still applies to the one-time launch of clazy (via Analyze → Clang-tidy and Clazy…).
The thing is the patch does not make Qt Creator call -Xclang clazy but -Xclang clang-lazy in this case.
The attached patch patch fixes the bug for me.
EDIT :
I just saw OP's error was the other way around, with `error: unable to find plugin 'clazy'`, while I've got `error: unable to find plugin 'clang-lazy'`.
Also the patch I attached should read 'Fix clang-lazy to clazy rename patch'.