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

Install and configure custom output parser from plugin

XMLWordPrintable

    • All
    • 4bbf76a344bf1ce84297bb16ab15f23ea4f18378 (qt-creator/qt-creator/master)

      Hi!

      I am writing a plugin, that does not have a custom toolchain, but should provide a custom parser for the build output.

      I have seen that with QTCREATORBUG-23993 there was a refactoring to add this in the QtCreator GUI.

      I tried to manually add this in my plugin code, but i get linker errors due to not exported classes for it.

      Example

          mSettings.displayName = tr("Parser for My toolchain");
          mSettings.id = Constants::CustomParserId;
          mSettings.error.setPattern("\\s+:\\d+");
      
          QList<ProjectExplorer::Internal::CustomParserSettings>
              settings = ProjectExplorer::ProjectExplorerPlugin::customParsers();
          settings << mSettings;
          ProjectExplorer::ProjectExplorerPlugin::setCustomParsers(settings);
      

      This gives a linker error for

      error: undefined reference to `ProjectExplorer::Internal::CustomParserExpression::setPattern(QString const&)'

      What is the intended way for a plugin to provide output parsers without an own build configuration / toolchain?

        For Gerrit Dashboard: QTCREATORBUG-24403
        # Subject Branch Project Status CR V

            kandeler Christian Kandeler
            j.kreuzberger Joerg Kreuzberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes