Bug 1833665

Summary: qt-creator doesn't start with "CommandLine Error" and "LLVM ERROR" after enabling ClangFormat plugin
Product: [Fedora] Fedora Reporter: edward.park0203
Component: qt-creatorAssignee: Itamar Reis Peixoto <itamar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 32CC: helio, itamar, jreznik, kde-sig, manisandro, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: qt-creator-4.12.0-2.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-19 02:52:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
ClangFormat plugin none

Description edward.park0203 2020-05-09 13:54:20 UTC
Created attachment 1686785 [details]
ClangFormat plugin

Description of problem:
After enabling the ClangFormat plugin (screenshot in attachment) and exiting Qt Creator it doesn't start again. When I start Qt Creator from the command line (qtcreator) it outputs this to stderr.

QSocketNotifier: Can only be used with threads started with QThread
: CommandLine Error: Option 'filter' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options

I don't think the QSocketNotifier message is relevant since it was there before enabling the plugin. If I rename /usr/lib64/qtcreator/plugins/libClangFormat.so to /usr/lib64/qtcreator/plugins/libClangFormat.so.bak then I can start Qt Creator again.

Version-Release number of selected component (if applicable):
4.11.1-1.fc32

How reproducible:
Inside Qt Creator go to Help -> About Plugins... and check ClangFormat to enable it. Exit Qt Creator (File -> Exit). If you start Qt Creator from the command line the above error is printed to stderr.

Steps to Reproduce:
1. Open Qt Creator.
2. Go to Help -> About Plugins...
3. Check ClangFormat
4. Close
5. File -> Exit
6. Start Qt Creator in command line (qtcreator)

Actual results:
Qt Creator doesn't start and outputs error.

Expected results:
Qt Creator should start normally.

Additional info:
Renaming /usr/lib64/qtcreator/plugins/libClangFormat.so to /usr/lib64/qtcreator/plugins/libClangFormat.so.bak allows me to start Qt Creator again without the errors. Once I exit Qt Creator (File -> Exit) I can rename libClangFormat.so.bak back to libClangFormat.so and start Qt Creator again.

Running `dnf list installed | fgrep llvm` shows me that I have llvm-libs (10.0.0-1.fc32 already installed not by me seeing that cheese depends on it indirectly and I didn't install cheese) and llvm9.0-libs (9.0.1-8.fc32 installed as a dependency of qt-creator). There are both verions of the LLVM shared libraries in /usr/lib64.

Comment 1 Sandro Mani 2020-05-10 11:04:21 UTC
qt-creator-4.12 (as in F33) will report:

"Plugin initialization failed: Disabling ClangFormat plugin as it has not been built against a modified 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"

I'll build qt-creator 4.12 also for F32.

Comment 2 Fedora Update System 2020-05-10 18:34:17 UTC
FEDORA-2020-25c871d712 has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-25c871d712

Comment 3 Fedora Update System 2020-05-11 03:33:32 UTC
FEDORA-2020-25c871d712 has been pushed to the Fedora 32 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-25c871d712`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-25c871d712

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 edward.park0203 2020-05-11 06:13:35 UTC
fesfsefsef

Comment 5 edward.park0203 2020-05-11 06:15:55 UTC
I ran `dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-25c871d712` but got this:

No security updates needed, but 10 updates available
Dependencies resolved.
Nothing to do.
Complete!

Comment 6 Fedora Update System 2020-05-19 02:52:29 UTC
FEDORA-2020-25c871d712 has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.