Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-25214

ClangFormat plugin prevents QtCreator from starting (Option 'non-global-value-max-name-size' registered more than once!)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.14.0
    • Fix Version/s: None
    • Component/s: All Other Issues
    • Labels:
      None
    • Environment:
      Ubuntu 18.04.5 LTS
    • Platform/s:
      Linux/X11

      Description

      Hi,

      After updating QtCreator, it fails to start because of a bug related to the ClangFormat plugin.

      Observed behaviour:

      1. Try to open QtCreator after update
      2. Get dialog box with message: "It looks like Qt Creator closed because of a problem with the "ClangFormat" plugin. Temporarily disable the plugin?"
      3. If starting 'qtcreator' from the command line and clicking "Continue" in the dialog, the following text appears in the command line before the program exits:
      bash$ qtcreator
      : CommandLine Error: Option 'non-global-value-max-name-size' registered more than once!
      LLVM ERROR: inconsistency in registered CommandLine options
      
      bash$ echo $?
      1
      
      1. If clicking "Disable Plugin", QtCreator starts just fine.

       

      System Information:

       

      bash$ qtcreator -version
      Qt Creator 4.14.0 based on Qt 5.15.2
      Android 4.14.0 Support for deployment to and execution on Android Devices.
       AutoTest 4.14.0 Auto Test plugin.
       AutotoolsProjectManager 4.14.0 Autotools project integration.
       BareMetal 4.14.0 This plugin adds a target for bare metal development.
       Bazaar 4.14.0 Bazaar integration.
       Beautifier 4.14.0 Format source files with the help of beautifiers like AStyle, uncrustify or clang-format.
       BinEditor 4.14.0 Binary editor component.
       Bookmarks 4.14.0 Bookmarks in text editors.
       Boot2Qt 4.14.0 Support for the Boot2Qt Device access using the Qt Debug Bridge.
       CMakeProjectManager 4.14.0 CMake support.
       CVS 4.14.0 CVS integration.
       ClangCodeModel 4.14.0 Clang Code Model plugin.
       ClangFormat 4.14.0 clang-format indentation plugin.
       ClangTools 4.14.0 ClangTools Plugin.
       ClassView 4.14.0 Class View component.
       ClearCase 4.14.0 ClearCase integration.
       CodePaster 4.14.0 Codepaster plugin for pushing/fetching diff from server.
       CompilationDatabaseProjectManager 4.14.0 Compilation Database project support.
       Conan 4.14.0 Conan integration.
       Core 4.14.0 The core plugin for the Qt IDE.
       CppEditor 4.14.0 C/C++ editor component.
       CppTools 4.14.0 Tools for analyzing C/C++ code.
       Cppcheck 4.14.0 Cppcheck static analyzer tool integration. See http://cppcheck.sourceforge.net.
       CtfVisualizer 4.14.0 Chrome Trace Format Visualizer Plugin.
       Debugger 4.14.0 Debugger integration.
       Designer 4.14.0 Qt Designer integration.
       DiffEditor 4.14.0 Diff editor component.
       EmacsKeys 4.14.0 The main idea behind this plugin is to provide additional actions a typical emacs user would expect. It doesn't claim to provide full emacs emulation. The following actions are available:
       - Movement [C-f, C-b, C-n, C-p, M-f, M-b, C-a, C-e, M-<, M->]
       - Mark-based selection [C-SPC, C-x C-x]
       - Cut/copy/yank (doesn't provide kill ring feature) [M-w, C-w, C-y]
       - Kill actions, which interact properly with clipboard [C-k, M-d, C-d]
       - Scrolling (half of the screen, keeps cursor visible) [C-v, M-v]
       - Insert new line and indent [C-j]
      IMPORTANT: Actions are not bound to any key combinations by default. You can find them under 'EmacsKeys' section in keyboard shortcuts settings.
      Also it's worth mentioning that EmacsKeys plugin forces disabling of menu mnemonics by calling Qt's qt_set_sequence_auto_mnemonic function with false argument. Many of the english menu mnemonics get into the way of typical emacs keys, this includes: Alt+F (File), Alt+B (Build), Alt+W (Window). It's a temporary solution, it remains until there is a better one.
       FakeVim 4.14.0 VI-style keyboard navigation.
       GLSLEditor 4.14.0 Editor for GLSL.
       GenericProjectManager 4.14.0 Generic support.
       Git 4.14.0 Git integration.
       HelloWorld 4.14.0 Hello World sample plugin.
       Help 4.14.0 Help system.
       ImageViewer 4.14.0 Image Viewer component.
       IncrediBuild 4.14.0 Support for Incredibuild.
       Ios 4.14.0 Support for deployment to and execution on iOS Devices.
       LanguageClient 4.14.0 Language Server Protocol client component. See https://microsoft.github.io/language-server-protocol/overview for an overview on Language Servers.
       LicenseChecker 4.14.0 License Checker Plugin.
       Macros 4.14.0 Macros in text editors.
       Marketplace 4.14.0 Qt Marketplace plugin.
       McuSupport 4.14.0 Helper for MCU related projects.
       Mercurial 4.14.0 Mercurial integration.
       MesonProjectManager 4.14.0 Meson support.
       ModelEditor 4.14.0 Graphical modeling with structured diagrams.
       Nim 4.14.0 Plugin for supporting the Nim programming language.
       PerfProfiler 4.14.0 Perf Profiler Plugin.
       Perforce 4.14.0 Perforce integration.
       ProjectExplorer 4.14.0 ProjectExplorer framework that can be extended with different kind of project types.
       Python 4.14.0 Plugin for supporting the Python language.
       QbsProjectManager 4.14.0 QBS support.
       QmakeProjectManager 4.14.0 Provides project type for Qt/QMake .pro files and tools.
       QmlDesigner 4.14.0 Visual Designer for QML files.
       QmlJSEditor 4.14.0 Editor for QML and JavaScript.
       QmlJSTools 4.14.0 Tools for analyzing Qml/JS code.
       QmlPreview 4.14.0 Qml Preview Plugin.
       QmlProfiler 4.14.0 Qml Profiler Plugin.
       QmlProjectManager 4.14.0 Qt Quick support
       Qnx 4.14.0 Adds support for QNX to Qt Creator.
       QtSupport 4.14.0 Provides support code for build systems.
       RemoteLinux 4.14.0 Support for deployment to and execution on a remote Linux host.
       ResourceEditor 4.14.0 Editor for qrc files.
       ScxmlEditor 4.14.0 Visual Editor for SCXML (State Chart XML) files.
       SerialTerminal 4.14.0 Serial Port Terminal
       SilverSearcher 4.14.0 Adds possibility to use SilverSearcher tool as an alternative mechanism of 'find in files'
       StudioWelcome 4.14.0 Qt Design Studio Welcome Page.
       Subversion 4.14.0 Subversion integration.
       TaskList 4.14.0 Use .tasks-files to populate the Issues view.
       TextEditor 4.14.0 Text editor framework and the implementation of the basic text editor.
       Todo 4.14.0 Adds pane that lists all TODO, FIXME, etc. entries in comments.
       UpdateInfo 4.14.0 Displays Update-Infos for Qt Installer Framework-based Updaters.
       Valgrind 4.14.0 Valgrind Plugin.
       VcsBase 4.14.0 Version Control System Base Plugin.
       Vxworks 4.14.0 Support for deployment to and execution on a remote Linux host.
       WebAssembly 4.14.0 Helper for WebAssembly projects.
       Welcome 4.14.0 Secondary Welcome Screen Plugin.
       WinRt 4.14.0 Helper for Windows Runtime projects.
      (C) 2020 The Qt Company Ltd
      

       

      bash$ more /etc/lsb-release 
      DISTRIB_ID=Ubuntu
      DISTRIB_RELEASE=18.04
      DISTRIB_CODENAME=bionic
      DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"

       

      Unsure whether QtCreator uses clang-format installed on my system or contains its own version, so including the version from my system as well:

      bash$ clang-format --version
      
      clang-format version 6.0.0-1ubuntu2 (tags/RELEASE_600/final)
      

       

      If you need anything else, please just let me know!

       

       

       

       

       

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              con Eike Ziller
              Reporter:
              lima.sierra Laurent Seiler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes