Bug 23149 – doc generator with -i errors writing file for imported module

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-05-31T00:13:32Z
Last change time
2024-12-13T19:23:08Z
Keywords
ddoc
Assigned to
No Owner
Creator
duser
Moved to GitHub: dmd#20113 →

Comments

Comment #0 by duser — 2022-05-31T00:13:32Z
// entry.d module entry; import other; void main(){} // other.d module other; compile: dmd -i -D entry.d entry.d(2): Error: error writing file '' running it with strace shows that it indeed tries to write the doc for "other" with an empty filename stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1900, ...}) = 0 stat("entry.html", {st_mode=S_IFREG|0644, st_size=12208, ...}) = 0 openat(AT_FDCWD, "entry.html", O_WRONLY|O_CREAT|O_TRUNC, 0644) = 3 write(3, "\r\n<!DOCTYPE html>\r\n<html>\r\n <he"..., 12208) = 12208 close(3) = 0 stat("/etc/localtime", {st_mode=S_IFREG|0644, st_size=1900, ...}) = 0 stat("", 0x7ffdd2a39f00) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "", O_WRONLY|O_CREAT|O_TRUNC, 0644) = -1 ENOENT (No such file or directory)
Comment #1 by robert.schadek — 2024-12-13T19:23:08Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20113 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB