paradox icon indicating copy to clipboard operation
paradox copied to clipboard

Allow "edit in ScalaFiddle" for any snippet

Open ktoso opened this issue 8 years ago • 6 comments

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.

ktoso avatar May 24 '17 18:05 ktoso

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-

:-)

andreaTP avatar May 25 '17 08:05 andreaTP

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

ktoso avatar May 25 '17 09:05 ktoso

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

He-Pin avatar Dec 12 '17 00:12 He-Pin

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.

andreaTP avatar Aug 22 '18 15:08 andreaTP

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

ktoso avatar Aug 23 '18 02:08 ktoso

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.

andreaTP avatar Aug 23 '18 08:08 andreaTP