https://issues.dlang.org/show_bug.cgi?id=12210
Vladimir Panteleev <thecybersha...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|thecybersha...@gmail.com |nazriel6...@gmail.com --- Comment #10 from Vladimir Panteleev <thecybersha...@gmail.com> --- Some fixes: https://github.com/D-Programming-Language/dlang.org/pull/1098 Some issues are still blocked on some DPaste-specific problems. (In reply to Gerald Jansen from comment #9) > Perhaps this is a slightly different issue but it is related so I'll just > mention it here. The example in the section "Convenience" under the > paragraph starting with "Automatic memory management makes for safe, simple, > and robust code.", crashes with message: > > Application output: (1 Hangup) > Exiting main. > std.exception.ErrnoException@std/stdio.d(385): Cannot open file `text.txt' > in mode `rb' (No such file or directory) > ---------------- > ... and a bunch of incomprehensible junk (for a casual visitor) > > Having examples that don't run is probably worse than no examples. Perhaps > the priority of this issue should be increased. Perhaps the more general > issue is how to continuously test and ensure that all example code > highlighted on dlang.org runs correctly. The example is correct, and works as expected in the absence of a text.txt file. It is meant to illustrate RAII, there isn't much value in including it in Edit-and-Run, so I added support for excluding examples and excluded it. --