Bug 19944 – Some examples on std.file docs page raise FileException
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-06-06T16:26:59Z
Last change time
2019-06-22T13:09:49Z
Keywords
pull
Assigned to
No Owner
Creator
a
Comments
Comment #0 by a — 2019-06-06T16:26:59Z
For example, pressing "Run" on the example for timeLastModified causes the following error:
std.file.FileException@/dlang/dmd/linux/bin64/../../src/phobos/std/file.d(1675): /tmp/deleteme.dmd.unittest.pid25: No such file or directory
Changing deleteme.write("bb") to std.file.write(deleteme, "bb") causes it to work (and phobos unittests still pass), but I'm not sure why.
Another one that fails using the same pattern is the 2nd example of mkdirRecurse.
Comment #1 by dlang-bot — 2019-06-13T13:07:27Z
@Kriyszig created dlang/dlang.org pull request #2658 "Fixes 19944 - Unit test failures in std.file" fixing this issue:
- fix Issue 19944 - std.file.write conflicted with std.stdio.write
This resulted in failure of tests in std.file
https://github.com/dlang/dlang.org/pull/2658
Comment #2 by dlang-bot — 2019-06-22T13:09:49Z
dlang/dlang.org pull request #2658 "Fixes 19944 - Unit test failures in std.file" was merged into master:
- 10f74fdd01e48eb702111c442d50cf600f59a9b6 by Kriyszig:
fix Issue 19944 - std.file.write conflicted with std.stdio.write
This resulted in failure of tests in std.file
https://github.com/dlang/dlang.org/pull/2658