From 85f3596400653a1ee611050f076800649dcf2227 Mon Sep 17 00:00:00 2001 From: Keywan Ghadami Date: Thu, 17 Dec 2015 11:17:28 +0100 Subject: [PATCH 1/6] dlang ide crashed on opening an workspace by selecting an dub file. E.g. when i tied to open the dlangide directory itself. the stacktrace shows that it tried to save some settings but the filename was null. So i changed the default settings filename in worspace.d file from null to WORKSPACE_EXTENSION. This way i was able to open the the workspace. I am new to Dlang and to this project so i might not get the hole picture here and doing something wrong, please double check if that the correct way to fix that. --- src/dlangide/workspace/workspace.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangide/workspace/workspace.d b/src/dlangide/workspace/workspace.d index 4b765c7..91d9835 100644 --- a/src/dlangide/workspace/workspace.d +++ b/src/dlangide/workspace/workspace.d @@ -58,7 +58,7 @@ class Workspace : WorkspaceItem { protected BuildConfiguration _buildConfiguration; protected ProjectConfiguration _projectConfiguration = ProjectConfiguration.DEFAULT; - this(IDEFrame frame, string fname = null) { + this(IDEFrame frame, string fname = WORKSPACE_EXTENSION) { super(fname); _workspaceFile = new SettingsFile(fname); _settings = new WorkspaceSettings(fname ? fname ~ WORKSPACE_SETTINGS_EXTENSION : null); From 136137aad83922e593d9b68f3d3aa9a6ac294813 Mon Sep 17 00:00:00 2001 From: Keywan Ghadami Date: Thu, 17 Dec 2015 14:30:28 +0100 Subject: [PATCH 2/6] printing the commandlineparamters when executing dub. --- src/dlangide/builders/builder.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dlangide/builders/builder.d b/src/dlangide/builders/builder.d index da65b41..8bb4ac6 100644 --- a/src/dlangide/builders/builder.d +++ b/src/dlangide/builders/builder.d @@ -66,7 +66,6 @@ class Builder : BackgroundOperationWatcher { ExternalProcessState state = _extprocess.state; if (state == ExternalProcessState.None) { _log.clear(); - _box.writeText("Running dub\n"d); char[] program = "dub".dup; char[][] params; char[] dir = _project.dir.dup; @@ -116,6 +115,8 @@ class Builder : BackgroundOperationWatcher { if (_verbose) params ~= "-v".dup; + auto text = "Running (in " ~ dir ~ "): " ~ program ~ " " ~ params.join(' ') ~ "\n"; + _box.writeText(to!dstring(text)); state = _extprocess.run(program, params, dir, _box, null); if (state != ExternalProcessState.Running) { _box.writeText("Failed to run builder tool\n"d); From 7a2500398774189bbabf8a89dace8abb08fc2f05 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 17 Dec 2015 18:39:26 +0300 Subject: [PATCH 3/6] fixes --- src/ddebug/gdb/gdbinterface.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ddebug/gdb/gdbinterface.d b/src/ddebug/gdb/gdbinterface.d index 4b6d080..e644337 100644 --- a/src/ddebug/gdb/gdbinterface.d +++ b/src/ddebug/gdb/gdbinterface.d @@ -127,7 +127,7 @@ class GDBInterface : ConsoleDebuggerInterface, TextCommandTarget { ]; Log.d("Terminal command line: ", args); terminalPid = spawnProcess(args); - for (int i = 0; i < 40; i++) { + for (int i = 0; i < 80; i++) { Thread.sleep(dur!"msecs"(100)); if (!isTerminalActive) { Log.e("Failed to get terminal TTY"); From d1031aa8033723d8f376bdab51b36a12ed9c7a16 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 17 Dec 2015 18:58:41 +0300 Subject: [PATCH 4/6] update dlangui dependency version --- dub.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dub.json b/dub.json index b78a605..f98b203 100644 --- a/dub.json +++ b/dub.json @@ -14,7 +14,7 @@ "copyFiles-windows": ["lib/win32/dcd-server.exe", "lib/win32/dcd-client.exe"], "dependencies": { - "dlangui": "~>0.7.22", + "dlangui": "~>0.7.23", "libdparse": "==0.2.0" }, From 35e83d4a370438a86332b9269155406e3e1e95cf Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 17 Dec 2015 19:18:45 +0300 Subject: [PATCH 5/6] update readme --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index e2929d7..4aec5e9 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,11 @@ Currently supported features: * DUB dependencies update * DUB package configuration selection (contributed by NCrashed) * Dependency projects are shown in workspace tree +* New project wizard +* Toolchain settings for DMD, LDC, GDC +* Project specific settings +* Basic debugger support using GDB (work in progress) + Source editor features: From fc51f4188edc3754e6c09dc596c1b6f201e00b43 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 17 Dec 2015 21:42:09 +0300 Subject: [PATCH 6/6] update dlangui dependency version --- dub.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dub.json b/dub.json index f98b203..7ddd292 100644 --- a/dub.json +++ b/dub.json @@ -14,7 +14,7 @@ "copyFiles-windows": ["lib/win32/dcd-server.exe", "lib/win32/dcd-client.exe"], "dependencies": { - "dlangui": "~>0.7.23", + "dlangui": "~>0.7.24", "libdparse": "==0.2.0" },