Bug 15319 – [REG2.069] module map is in file std/map.d which cannot be read

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-11-11T15:12:04Z
Last change time
2020-03-21T03:56:38Z
Assigned to
No Owner
Creator
ponce

Comments

Comment #0 by aliloko — 2015-11-11T15:12:04Z
This used to build with a 2.066 to 2.068 front-end. Doesn't build anymore with a 2.069 front-end. -------------- import std.file; void copyDir(string from, string to) { auto mdFiles = dirEntries(from, SpanMode.shallow); foreach(md; mdFiles) { copy(md, to ~ "/" ~ md); } } void main(string[] args) { } -------------- To reproduce: $ dmd main.d Output: /Library/D/dmd/src/phobos/std/file.d(3102): Error: module map is in file 'std/map.d' which cannot be read
Comment #1 by b2.temp — 2015-11-13T06:42:24Z
https://github.com/D-Programming-Language/phobos/pull/3808 In the meantime maybe you can manage to find a trick so that the other overload of copy() gets called.
Comment #2 by aliloko — 2015-11-13T14:53:02Z
In the meantime I use another compiler. Thanks!
Comment #3 by github-bugzilla — 2015-11-19T14:50:34Z
Commits pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/c1333caf696e82b93f09324f0f1d65ecc4c60616 Fix issue 15319 - broken import in std.file.copy https://github.com/D-Programming-Language/phobos/commit/b5f9ac264bf00da4b0a1955997004c6232fe321c Merge pull request #3821 from klickverbot/squash-pr-3808 Fix issue 15319 - broken import in std.file.copy
Comment #4 by github-bugzilla — 2016-01-03T14:15:02Z