mirror of https://github.com/buggins/dlangide.git
Merge pull request #214 from g4z3r/work
fix crash of incorrect dub.json file
This commit is contained in:
commit
3b869a20db
|
@ -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);
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue