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:
- cherry-pick https://codereview.qt-project.org/#/c/261097/
- create a qmake subdir project
- add "widget app" via context menu
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'."