Nim: Fix debugger start of nim projects

Task-number: QTCREATORBUG-19414
Change-Id: Ia93863a6127f4b670113cf6d9159defa4adb6ec4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2017-12-06 10:39:00 +01:00
parent 91fadf03d0
commit 4514208af2

View File

@@ -30,6 +30,7 @@
#include "../nimconstants.h"
#include <coreplugin/icontext.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <coreplugin/iversioncontrol.h>
#include <coreplugin/vcsmanager.h>
@@ -60,6 +61,8 @@ NimProject::NimProject(const FileName &fileName) : Project(Constants::C_NIM_MIME
{
setId(Constants::C_NIMPROJECT_ID);
setDisplayName(fileName.toFileInfo().completeBaseName());
// ensure debugging is enabled (Nim plugin translates nim code to C code)
setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));
m_projectScanTimer.setSingleShot(true);
connect(&m_projectScanTimer, &QTimer::timeout, this, &NimProject::collectProjectFiles);