[Issue 12210] dlang.org home page example - Run button does not work
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Sep 12 11:18:41 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=12210
Vladimir Panteleev <thecybershadow at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|thecybershadow at gmail.com |nazriel6969 at gmail.com
--- Comment #10 from Vladimir Panteleev <thecybershadow at 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 at 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.
--
More information about the Digitalmars-d-bugs
mailing list