From 85f3596400653a1ee611050f076800649dcf2227 Mon Sep 17 00:00:00 2001 From: Keywan Ghadami Date: Thu, 17 Dec 2015 11:17:28 +0100 Subject: [PATCH] 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);