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

JSON wizard: Unknown macro 'BuildSystem'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 4.10.0-beta1
    • None

    Description

      When triggered from contextual menu (new subproject), the wizard lacks the variable "BuildSystem".
      This does not happen when the subproject is added from top-menu, and then parent project is selected on symmary page:

      Steps to reproduce:

      The following warnings are generated:

      bool Utils::AbstractMacroExpander::expandNestedMacros(const QString&, int*, QString*) "'%{JS: '%{BuildSystem}' === 'qmake'}', at 9: Unknown macro 'BuildSystem'."
      bool Utils::AbstractMacroExpander::expandNestedMacros(const QString&, int*, QString*) "'%{JS: '%{BuildSystem}' === 'qmake'}', at 9: Unknown macro 'BuildSystem'."
      JsonWizard::boolFromVariant: Value is neither "true" or "false": "%{JS: '%{BuildSystem}' === 'qmake'}"
      bool Utils::AbstractMacroExpander::expandNestedMacros(const QString&, int*, QString*) "'%{JS: '%{BuildSystem}' === 'cmake'}', at 9: Unknown macro 'BuildSystem'."
      bool Utils::AbstractMacroExpander::expandNestedMacros(const QString&, int*, QString*) "'%{JS: '%{BuildSystem}' === 'cmake'}', at 9: Unknown macro 'BuildSystem'."
      JsonWizard::boolFromVariant: Value is neither "true" or "false": "%{JS: '%{BuildSystem}' === 'cmake'}"
      bool Utils::AbstractMacroExpander::expandNestedMacros(const QString&, int*, QString*) "'%{JS: '%{BuildSystem}' === 'qbs'}', at 9: Unknown macro 'BuildSystem'."
      bool Utils::AbstractMacroExpander::expandNestedMacros(const QString&, int*, QString*) "'%{JS: '%{BuildSystem}' === 'qbs'}', at 9: Unknown macro 'BuildSystem'."
      JsonWizard::boolFromVariant: Value is neither "true" or "false": "%{JS: '%{BuildSystem}' === 'qbs'}"
      bool Utils::AbstractMacroExpander::expandNestedMacros(const QString&, int*, QString*) "'%{JS: ('%{BuildSystem}' === 'cmake' ? (Util.path('%{FormFileName}') + '/') : '') + 'ui_' + Util.completeBaseName('%{FormFileName}') + '.h'}', at 10: Unknown macro 'BuildSystem'."
      bool Utils::AbstractMacroExpander::expandNestedMacros(const QString&, int*, QString*) "'%{JS: ('%{BuildSystem}' === 'cmake' ? (Util.path('%{FormFileName}') + '/') : '') + 'ui_' + Util.completeBaseName('%{FormFileName}') + '.h'}', at 10: Unknown macro 'BuildSystem'."
      bool Utils::AbstractMacroExpander::expandNestedMacros(const QString&, int*, QString*) "'\\\n#include \"mainwindow.h\"\n@if true\n#include \"%{JS: ('%{BuildSystem}' === 'cmake' ? (Util.path('mainwindow.ui') + '/') : '') + 'ui_' + Util.completeBaseName('mainwindow.ui') + '.h'}\"\n@endif\n\\\n\nMainWindow::MainWindow(QWidget *parent)\n    : QMainWindow(parent)\n@if true\n    , ui(new Ui::MainWindow)\n@endif\n{\n@if true\n    ui->setupUi(this);\n@endif\n}\n\nMainWindow::~MainWindow()\n{\n@if true\n    delete ui;\n@endif\n}\n\n\\\n', at 55: Unknown macro 'BuildSystem'."
      bool Utils::AbstractMacroExpander::expandNestedMacros(const QString&, int*, QString*) "'\\\n#include \"mainwindow.h\"\n@if true\n#include \"%{JS: ('%{BuildSystem}' === 'cmake' ? (Util.path('mainwindow.ui') + '/') : '') + 'ui_' + Util.completeBaseName('mainwindow.ui') + '.h'}\"\n@endif\n\\\n\nMainWindow::MainWindow(QWidget *parent)\n    : QMainWindow(parent)\n@if true\n    , ui(new Ui::MainWindow)\n@endif\n{\n@if true\n    ui->setupUi(this);\n@endif\n}\n\nMainWindow::~MainWindow()\n{\n@if true\n    delete ui;\n@endif\n}\n\n\\\n', at 55: Unknown macro 'BuildSystem'."
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            christian_gagneraud_navico Christian Gagneraud
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes