From 719cdfd426c5f780dbb83e2ba0ca19858bc2ced7 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Fri, 15 Oct 2021 20:48:29 +0200 Subject: ProjectExplorer: Don't print out warnings when wizard.json parsing fails If plugins are disabled (e.g. Designer), some form page types (e.g. "Form") might be missing. Therefore the parsing of some wizard.json files will fail, which is expected. A recent patch added warning output for this case: Failed to create wizard: "wizard.json" Let's remove that, because that is the job of Qt Creator's Option: -customwizard-verbose Amends: 32799b3a7bd0cb8cd3da99c869649dab3be83634 Change-Id: Idda037c2e48ef290ff95754393572ec4309347b2 Reviewed-by: Artem Sokolovskii Reviewed-by: Samuel Ghinet Reviewed-by: Alessandro Portale --- src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp index 431cbbf775..1c8c710743 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp @@ -400,14 +400,12 @@ QList JsonWizardFactory::createWizardFactories() .arg(currentFile.fileName()) .arg(line).arg(column) .arg(error.errorString())); - qWarning() << "Failed to parse wizard: " << currentFile.fileName(); continue; } if (!json.isObject()) { verboseLog.append(tr("* Did not find a JSON object in \"%1\".\n") .arg(currentFile.fileName())); - qWarning() << "Failed to parse wizard: " << currentFile.fileName(); continue; } @@ -425,7 +423,6 @@ QList JsonWizardFactory::createWizardFactories() JsonWizardFactory *factory = createWizardFactory(data, currentDir, &errorMessage); if (!factory) { verboseLog.append(tr("* Failed to create: %1\n").arg(errorMessage)); - qWarning() << "Failed to create wizard: " << currentFile.fileName(); continue; } -- cgit v1.2.1