forked from qt-creator/qt-creator
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:
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
#include "../nimconstants.h"
|
#include "../nimconstants.h"
|
||||||
|
|
||||||
|
#include <coreplugin/icontext.h>
|
||||||
#include <coreplugin/progressmanager/progressmanager.h>
|
#include <coreplugin/progressmanager/progressmanager.h>
|
||||||
#include <coreplugin/iversioncontrol.h>
|
#include <coreplugin/iversioncontrol.h>
|
||||||
#include <coreplugin/vcsmanager.h>
|
#include <coreplugin/vcsmanager.h>
|
||||||
@@ -60,6 +61,8 @@ NimProject::NimProject(const FileName &fileName) : Project(Constants::C_NIM_MIME
|
|||||||
{
|
{
|
||||||
setId(Constants::C_NIMPROJECT_ID);
|
setId(Constants::C_NIMPROJECT_ID);
|
||||||
setDisplayName(fileName.toFileInfo().completeBaseName());
|
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);
|
m_projectScanTimer.setSingleShot(true);
|
||||||
connect(&m_projectScanTimer, &QTimer::timeout, this, &NimProject::collectProjectFiles);
|
connect(&m_projectScanTimer, &QTimer::timeout, this, &NimProject::collectProjectFiles);
|
||||||
|
Reference in New Issue
Block a user