From 0e79cf5e493a6c2b16071780993e528a601d127a Mon Sep 17 00:00:00 2001 From: gazer Date: Mon, 29 May 2017 21:29:08 +0300 Subject: [PATCH 1/3] fix crash of incorrect dub.json file --- src/dlangide/ui/outputpanel.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dlangide/ui/outputpanel.d b/src/dlangide/ui/outputpanel.d index ed36950..b4486a5 100644 --- a/src/dlangide/ui/outputpanel.d +++ b/src/dlangide/ui/outputpanel.d @@ -162,7 +162,7 @@ class CompilerLogWidget : LogWidget { if (row < 0) row = 0; int col = 0; - if (match[3]) { + if (match[3] && match[3] != "") { col = to!int(match[3]) - 1; if (col < 0) col = 0; @@ -370,4 +370,4 @@ class OutputPanel : DockWindow { return true; } -} \ No newline at end of file +} From 5af0923585c7f9c9dfd0b16877e4da1f6bb817c3 Mon Sep 17 00:00:00 2001 From: gazer Date: Tue, 30 May 2017 12:51:44 +0300 Subject: [PATCH 2/3] remove deprecations --- src/dlangide/ui/dsourceedit.d | 2 +- src/dlangide/ui/newfile.d | 2 +- src/dlangide/ui/newproject.d | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dlangide/ui/dsourceedit.d b/src/dlangide/ui/dsourceedit.d index 579b576..b26d4b6 100644 --- a/src/dlangide/ui/dsourceedit.d +++ b/src/dlangide/ui/dsourceedit.d @@ -24,7 +24,7 @@ import dlangide.tools.editorTool; import ddebug.common.debugger; import std.algorithm; -import std.utf : toUTF8, toUTF32; +import std.utf : toUTF32; interface BreakpointListChangeListener { void onBreakpointListChanged(ProjectSourceFile sourceFile, Breakpoint[] breakpoints); diff --git a/src/dlangide/ui/newfile.d b/src/dlangide/ui/newfile.d index 3c45404..27aadff 100644 --- a/src/dlangide/ui/newfile.d +++ b/src/dlangide/ui/newfile.d @@ -20,7 +20,7 @@ import dlangide.ui.frame; import std.algorithm : startsWith, endsWith, equal; import std.array : empty; -import std.utf : toUTF32, toUTF8; +import std.utf : toUTF32; import std.file; import std.path; diff --git a/src/dlangide/ui/newproject.d b/src/dlangide/ui/newproject.d index ddbcd74..a84ff65 100644 --- a/src/dlangide/ui/newproject.d +++ b/src/dlangide/ui/newproject.d @@ -21,7 +21,7 @@ import dlangide.ui.frame; import std.path; import std.file; import std.array : empty; -import std.utf : toUTF32, toUTF8; +import std.utf : toUTF32; class ProjectCreationResult { Workspace workspace; From 37ac15cd7cfc19d99942494c18840cc39c92f301 Mon Sep 17 00:00:00 2001 From: gazer Date: Tue, 30 May 2017 12:53:12 +0300 Subject: [PATCH 3/3] update ide version string --- src/dlangide/ui/frame.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangide/ui/frame.d b/src/dlangide/ui/frame.d index cdfb1b8..32c47c0 100644 --- a/src/dlangide/ui/frame.d +++ b/src/dlangide/ui/frame.d @@ -46,7 +46,7 @@ import std.path; immutable string HELP_PAGE_URL = "https://github.com/buggins/dlangide/wiki"; // TODO: get version from GIT commit -immutable dstring DLANGIDE_VERSION = "v0.6.19"d; +immutable dstring DLANGIDE_VERSION = "v0.7.30"d; bool isSupportedSourceTextFileFormat(string filename) { return (filename.endsWith(".d") || filename.endsWith(".txt") || filename.endsWith(".cpp") || filename.endsWith(".h") || filename.endsWith(".c")