Skip to content
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

Allow "edit in ScalaFiddle" for any snippet #124

Open
ktoso opened this issue May 24, 2017 · 6 comments
Open

Allow "edit in ScalaFiddle" for any snippet #124

ktoso opened this issue May 24, 2017 · 6 comments

Comments

@ktoso
Copy link
Contributor

ktoso commented May 24, 2017

Sometimes when a snippet is interesting, but not complete, and I may want to hack on it,
i may want to "get this snippet to scalafiddle and let me edit it" - this could open in a new window.

@andreaTP
Copy link
Contributor

Actually this is a feature request to be moved to scalafiddle itself.
but great @ochrons already provided it:
http://doc.akka.io/docs/akka/current/scala/actors.html#here-is-another-example-that-you-can-edit-and-run-in-the-browser-

:-)

@ktoso
Copy link
Contributor Author

ktoso commented May 25, 2017

I don't think so - it's about making a snippet be reloaded as fiddle as I may want to edit it to play around. I don't think we'd want to load all snippets on a page as fiddles initially - it would not make too much sense and take resources for snippets that are not even intended to be run unless edited

@He-Pin
Copy link

He-Pin commented Dec 12, 2017

Do we support scastie ? like https://scastie.scala-lang.org/sadhen/vjSdQp9XQ5uFu23U7nTF0w ,
@andreaTP

@andreaTP
Copy link
Contributor

given version 0.4 of paradox this is now feasible (IMO) e.g. having all directives as fiddle (since it degrades gracefully now).

But this decision is above me.

@ktoso
Copy link
Contributor Author

ktoso commented Aug 23, 2018

What I thought about here was small links under snippets [edit file in scalafiddle] which opens the target file from where we included the thing in fiddle -- the entire file I guess, otherwise it's getting too tricky since snippets are random parts of files hm hm

@andreaTP
Copy link
Contributor

ok, that's different from what I understood @ktoso and will require further investigation; in my opinion there are a couple of technical limitations that make this feature mostly unpractical (remember that we are still running in JS and e.g. Akka documentation is pretty thigh to JVM, IO, Files etc. etc.)

BTW @hepin1989 I completely miss your comment, really sorry, as for now only scalafiddle is supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants