Skip to content

Commit

Permalink
Correct issue #1673 (with dupe #1797 and #2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Piolat authored and Geod24 committed Nov 17, 2020
1 parent a1d106c commit 78765f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/dub/generators/visuald.d
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ class VisualDGenerator : ProjectGenerator {
ret.put("\n </Folder>\n</DProject>");

logDebug("About to write to '%s.visualdproj' file %s bytes", getPackageFileName(packname), ret.data.length);
auto basepath = NativePath(".dub/");
if (!isWritableDir(basepath, true))
throw new Exception(".dub is not writeable");
auto proj = openFile(projFileName(packname), FileMode.createTrunc);
scope(exit) proj.close();
proj.put(ret.data);
Expand Down

0 comments on commit 78765f2

Please sign in to comment.