-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multipe modules on run.dlang.io #656
Comments
Thanks a lot for the request, Mike! However, I'm inclined to close it as a WONTFIX.
Please see my NG thread about the D boilerplate template. It can be used as a template for the awesome WebIDE Cloud9 - simply use https://github.com/wilzbach/d-bootstrap as a template (or clone it in an existing workspace), hit What is your use case? |
My use case is for sharing code and ideas with others. So, for example, I could post an example to illustrate a minimal runtime with an object.d and a main.d, and readers can try the example immediately. Or to illustrate concepts such as visibility from one module to another. This can be useful for demonstrating features and bugs on the forum or in Bugzilla. I also think there are a use cases in the documentation where it would be useful to teach concepts. Perhaps I could make use of Cloud9 for such things; I've never tried. I will say that this is a luxury and not a necessity. It's your call. No hard feelings if you choose not to implement it, I promise. |
Well, I agree that's "generally useful", but not many click & run platforms I know of/have used, support this:
Actually https://godbolt.org is the online platform that supports this that comes to my mind and it's windowing framework looks rather complicated.
If you use the micro instances, the first year is for free. Though I think you need to explicitly add people to the workspace
That's actually a good use case - think ... we could "hack" that in though. We already support import from GH's gist, so in theory something similar to DUB single file format could work, e.g.
Well that would be a simple start and it's left optional whether the frontend actually needs to support multiple files. Well if you or someone else want to take a go at this, it would require the following adjustments:
As mentioned I don't need this, so I won't work on this in the foreseeable future, but I'm happy to merge PRs. |
Initial HAR support is now live: It's still experimental and most of the buttons don't work, but it should be enough to judge whether it's useful in this form. And also we can start integrating it into the DTour + dlang.org where these buttons don't exist anyways. |
Tried a minimal runtime test with this: https://run.dlang.io/is/rrhgJL
I'm not sure what that means. |
I initially tried to use Anyhow I just pushed a fix and it should be deployed in a few minutes: |
It works now: https://run.dlang.io/is/UwoLSC |
So cool!. Thanks. I'm OK to close this issue if you consider it solved. |
Ah wait!. This gave me a strange error: https://run.dlang.io/is/gHkwbJ
|
Hmm it goes away if I remove the comment: https://run.dlang.io/is/7k0KLk |
For reference, this was a bug in har. |
the main function doesn't seem to be found when using HAR right now. However if you add |
This is a feature request to add support to run.dlang.io for editing/compiling multiple modules/files.
The text was updated successfully, but these errors were encountered: