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.
This commit is contained in:
Keywan Ghadami 2015-12-17 11:17:28 +01:00
parent 17195a81f5
commit 85f3596400
1 changed files with 1 additions and 1 deletions

View File

@ -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);