core
core copied to clipboard
D Language online tour (https://tour.dlang.org/) and online editor (https://run.dlang.io/)
It would be nice to have an ability to set some defaults, like that tabs are spaces, or something like that.
Będzie mi miło i może uda mi się nauczyć tego języka
I get the following error: ```json { "statusMessage": "Failed to lookup host 'api.github.com'.", "statusDebugMessage": "object.Exception@../../../.dub/packages/vibe-core-1.8.1/vibe-core/source/vibe/core/net.d(71): Failed to lookup host 'api.github.com'.\n----------------\n??:? [0x8d5335]\n??:? [0x8fa47a]\n??:? [0x8e08fd]\nexception.d:516 [0x46e2d5]\nexception.d:436 [0x417145]\nnet.d:71 [0x71796d]\nnet.d:32 [0x7174f5]\nclient.d:693 [0x60eb7c]\nclient.d:610 [0x60c9b8]\nclient.d:582 [0x60a78f]\nclient.d:85...
Try the following code: https://gist.github.com/ryuukk/e6e02960496c491b3370ddbd8841979f And it'll give the error: ``onlineapp.d(680): Error: `writeln` is not defined, perhaps `import std.stdio;``
The issue with gist not working seems to be related to a bug in glibc when it is used as a static library in a static executable. Possibly something related...
Since `URL.path.bySegment` returns `[, run-dlang, ]` when the request path is `/run-dlang/`, first value should be discarded if empty. Signed-off-by: Luís Ferreira --- Fixes #739 .
Somehow the `script` hack to get the color support working doesn't report the exit codes correctly. I might have a look into this later, but for now `canFind("Error:")` should work...
I'm not so sure about this. It will create a lot of overhead :/
As said on #52, hacking this together seems doable. However this is far from complete, but I thought I open it as PR, s.t. giving feedback is easier & everyone...
https://tour.dlang.org/ appears blank without JavaScript enabled. We should provide minimal support for reading its content (without the playground, e.g.).