Closed drug007 closed 9 years ago
I modified code to build it, it installs now, I see the plugin in modules list, it's activated, also in "Options" I see dub executable settings, but I can't understand how to create or open dub project.
Now, as you installed the plugin you are able to open dub.json as File -> Open File or Project
or create new DUB project via File -> Create New File or Project -> Non-Qt Project -> DUB Project
. If it fails please check options for DUB executable path.
Probably installation is broken because I can't openg dub.json and can't create DUB project... Well, will keep trying... But DUB was system-wide installed and runs perfectely from CLI...
Ooops, it's funny but I can do it) will be testing it tomorrow. Thank you!
I can open simple DUB project, but when I try to open non-trivial DUB project either it fails due to dub process timeout
or it fails in failed assert. But simple project works - and autocompletion, and building/running and even debuging. It's interesting!
When I increased timeout it only fails in assert. will investigate this.
Please could you specify the assert file and line?
I manage to run one non-trivial DUB project - the problem was dub hanged during getting annotations. When this reason was removed this project opens and so on very well. But another project fails in dubproject.cpp:93. As I understand here
const ConfigurationInfo& s = m_parser->configurationInfo(m_parser->configurationsList().front());
is fetching front element from empty container.
Thank you, that's very helpful, I'll try to handle this case.
But still, why do you have empty configuration list? Could you exec dub build --annotate --print-configs
for the project? Is an output list of available configurations empty?
I have empty configuration list because this package is container for subpackages only.
Oh, ok, I'll fix it.
this project dub.json looks like
{
"name": "rdpl",
"targetType": "none",
"subPackages": [
"./core/",
"./service",
"./utils",
],
}
I did some workaround for the last problem (f978d4076b6500d3221941eb664c830350f7f7dd). So projects that have no configurations are eligible now and are able to show a project tree for subPackages (only for their default configurations). Build configurations are available after manual configuration only (as long as dub build
fails with such "none"-typed projects). It is a little bit messy but I could not find another way to do it because it seems impossible to configure QtCreator's subprojects. In conclusion, I suggest to open subPackages separately.
Thank you!
Building using
gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
,Qt Creator 3.5.81 Основан на Qt 5.5.1 (GCC 4.8.4, 64 бита)
fails with the following:The problem is that the definition of
runWizardImpl
has been changed and returnsUtils::Wizard
now instead ofvoid
.