Thread overview
[Issue 17560] Enhancement: view and copy full code example for offline compile/play
Jun 27, 2017
Alexey Kulentsov
Jun 27, 2017
Alexey Kulentsov
June 27, 2017
https://issues.dlang.org/show_bug.cgi?id=17560

greensunny12@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |greensunny12@gmail.com

--- Comment #1 from greensunny12@gmail.com ---
>  First, the examples on the site do not always work

They _always_ work. We test this in our CI (e.g. https://github.com/dlang/phobos/blob/master/posix.mak#L596).

> I propose an additional button that shows the complete, compilable example text.

This is already in the queue: https://github.com/dlang/dlang.org/pull/1669 Feel free to vote for the PR ;-)

--
June 27, 2017
https://issues.dlang.org/show_bug.cgi?id=17560

--- Comment #2 from Alexey Kulentsov <crimaniak@gmail.com> ---
(In reply to greensunny12 from comment #1)
> >  First, the examples on the site do not always work
> 
> They _always_ work. We test this in our CI (e.g. https://github.com/dlang/phobos/blob/master/posix.mak#L596).
Sorry, but no, not always. I mean problems on live site like described here: https://forum.dlang.org/post/jhcyjnidqzxinlpyzuyn@forum.dlang.org

> > I propose an additional button that shows the complete, compilable example text.
> 
> This is already in the queue: https://github.com/dlang/dlang.org/pull/1669 Feel free to vote for the PR ;-)
I did the search before posting issue, but miss this one. Thanks!

--
June 27, 2017
https://issues.dlang.org/show_bug.cgi?id=17560

Alexey Kulentsov <crimaniak@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Alexey Kulentsov <crimaniak@gmail.com> ---
Duplicate so will close.

--
June 27, 2017
https://issues.dlang.org/show_bug.cgi?id=17560

greensunny12@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #4 from greensunny12@gmail.com ---
> Duplicate so will close.

Of what issue? (reopening)

> Sorry, but no, not always. I mean problems on live site like described here:

https://forum.dlang.org/post/jhcyjnidqzxinlpyzuyn@forum.dlang.org

I did reply on the thread.
tl:dr: not much we can do because the execution is an external service (DPaste)
Though there's a PR in the queue to switch over to the tour (more powerful,
uses docker with ~1GB max. per container):

https://github.com/dlang/dlang.org/pull/1647

[1] https://forum.dlang.org/post/kibvzokcytcegvtjqkdp@forum.dlang.org

> I did the search before posting issue, but miss this one. Thanks!

You are very welcome. Please raise your voice on this PR if you want it to be merged ;-)

--
June 28, 2017
https://issues.dlang.org/show_bug.cgi?id=17560

--- Comment #5 from github-bugzilla@puremagic.com ---
Commit pushed to master at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/72f109646392dd412e77dc6db1a2cbe34285c9a2 Add 'Open in editor' button for runnable code examples

Fix Issue 17560 - Enhancement: view and copy full code example for offline compile/play

--
August 14, 2017
https://issues.dlang.org/show_bug.cgi?id=17560

--- Comment #6 from github-bugzilla@puremagic.com ---
Commit pushed to newCTFE at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/72f109646392dd412e77dc6db1a2cbe34285c9a2 Add 'Open in editor' button for runnable code examples

--
August 16, 2017
https://issues.dlang.org/show_bug.cgi?id=17560

--- Comment #7 from github-bugzilla@puremagic.com ---
Commit pushed to stable at https://github.com/dlang/dlang.org

https://github.com/dlang/dlang.org/commit/72f109646392dd412e77dc6db1a2cbe34285c9a2 Add 'Open in editor' button for runnable code examples

--