diff --git a/source/dub/generators/visuald.d b/source/dub/generators/visuald.d index ff3700d..ed31714 100644 --- a/source/dub/generators/visuald.d +++ b/source/dub/generators/visuald.d @@ -205,6 +205,7 @@ ret.formattedWrite("\n ", pack.name); Path lastFolder; foreach(source; sortedSources(sourceFiles.keys)) { + logTrace("source looking at %s", source.structurePath); auto cur = source.structurePath[0..$-1]; if(lastFolder != cur) { size_t same = 0; diff --git a/source/dub/package_.d b/source/dub/package_.d index 828703a..5ce372b 100644 --- a/source/dub/package_.d +++ b/source/dub/package_.d @@ -14,6 +14,7 @@ import std.conv; import std.exception; import std.file; +import vibe.core.log; import vibe.core.file; import vibe.data.json; import vibe.inet.url; @@ -252,6 +253,7 @@ auto customSourcePath = "sourcePath" in m_meta; if(customSourcePath) sourcePath = Path(customSourcePath.get!string()); + logTrace("Parsing directory for sources: %s", m_path ~ sourcePath); foreach(d; dirEntries((m_path ~ sourcePath).toNativeString(), "*.d", SpanMode.depth)) { // direct assignment allSources ~= Path(d.name)[...] spawns internal compiler/linker error if(isDir(d.name)) continue; diff --git a/source/dub/project.d b/source/dub/project.d index 30c3e7d..2e048b6 100644 --- a/source/dub/project.d +++ b/source/dub/project.d @@ -113,6 +113,9 @@ if( !existsFile(m_root~PackageJsonFilename) ){ logWarn("There was no '"~PackageJsonFilename~"' found for the application in '%s'.", m_root.toNativeString()); + auto json = Json.EmptyObject; + json.name = ""; + m_main = new Package(json, InstallLocation.Local, m_root); return; }