diff options
author | Christian Stenger <christian.stenger@qt.io> | 2017-12-06 10:39:00 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2017-12-06 10:02:02 +0000 |
commit | 4514208af29aaa4d2f943acb2f0ea572f11d5242 (patch) | |
tree | 0334e35c0bc853753f16ac910ea153468f3a0864 | |
parent | 91fadf03d03e8250d93cdd31ad929a7399bb7959 (diff) |
Nim: Fix debugger start of nim projects
Task-number: QTCREATORBUG-19414
Change-Id: Ia93863a6127f4b670113cf6d9159defa4adb6ec4
Reviewed-by: hjk <hjk@qt.io>
-rw-r--r-- | src/plugins/nim/project/nimproject.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/nim/project/nimproject.cpp b/src/plugins/nim/project/nimproject.cpp index 01f5917760..e8083a9cf3 100644 --- a/src/plugins/nim/project/nimproject.cpp +++ b/src/plugins/nim/project/nimproject.cpp @@ -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); |