-
Suggestion
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.13.0-beta1
-
None
-
-
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 |
| 309036,4 | ProjectExplorer: Allow to add custom output parsers programatically | master | qt-creator/qt-creator | Status: MERGED | +2 | 0 |