Merge pull request #214 from g4z3r/work

fix crash of incorrect dub.json file
This commit is contained in:
Vadim Lopatin 2017-06-23 20:50:26 +03:00 committed by GitHub
commit 3b869a20db
5 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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

View File

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

View File

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