Merge pull request #383 from cschlote/fix-phobos-path-getcwd

Fix access to private std.path.getcwd
This commit is contained in:
Vadim Lopatin 2018-10-02 15:02:08 +03:00 committed by GitHub
commit 1119c32e61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,17 +224,17 @@ class CompilerLogWidget : LogWidget {
}
void resolveRelativePath(ref string path, int line) {
import std.path : getcwd, absolutePath;
Log.d("resolveRelativePath ", path, " current directory: ", getcwd);
import std.path : absolutePath;
Log.d("resolveRelativePath ", path);
string prjName = findProjectForLine(line);
if (prjName) {
Log.d("Error is in project ", prjName);
}
string base = _baseDirectory;
if (!base)
base = getcwd;
// TODO: select proper base
path = absolutePath(path, base);
path = absolutePath(path, base);
else
path = absolutePath(path);
Log.d("converted to absolute path: ", path);
}
///