Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 01 00:36
    scala-center-steward[bot] opened #678
  • Dec 01 00:36

    scala-center-steward[bot] on munit-cats-effect-3-1.0.7

    Update munit-cats-effect-3 to 1… (compare)

  • Dec 01 00:36
    scala-center-steward[bot] opened #677
  • Dec 01 00:36

    scala-center-steward[bot] on scalatest-3.2.14

    Update scalatest to 3.2.14 (compare)

  • Dec 01 00:36
    scala-center-steward[bot] opened #676
  • Dec 01 00:36

    scala-center-steward[bot] on scalafmt-core-3.5.9

    Update scalafmt-core to 3.5.9 Reformat with scalafmt 3.5.9 E… Add 'Reformat with scalafmt 3.5… (compare)

  • Dec 01 00:35
    scala-center-steward[bot] opened #675
  • Dec 01 00:35

    scala-center-steward[bot] on sbt-converter-1.0.0-beta40

    Update sbt-converter to 1.0.0-b… (compare)

  • Dec 01 00:35
    scala-center-steward[bot] opened #674
  • Dec 01 00:35

    scala-center-steward[bot] on sbt-1.8.0

    Update sbt to 1.8.0 (compare)

  • Dec 01 00:35
    scala-center-steward[bot] opened #673
  • Dec 01 00:35

    scala-center-steward[bot] on scala3-library-3.2.1

    Update scala3-library to 3.2.1 (compare)

  • Dec 01 00:35
    scala-center-steward[bot] opened #672
  • Dec 01 00:35

    scala-center-steward[bot] on scalajs-dom-2.3.0

    Update scalajs-dom to 2.3.0 (compare)

  • Dec 01 00:35
    scala-center-steward[bot] opened #671
  • Dec 01 00:35

    scala-center-steward[bot] on mongo-scala-driver-4.7.2

    Update mongo-scala-driver to 4.… (compare)

  • Dec 01 00:35
    scala-center-steward[bot] opened #670
  • Dec 01 00:34

    scala-center-steward[bot] on org.eclipse.lsp4j-0.19.0

    Update org.eclipse.lsp4j to 0.1… (compare)

  • Dec 01 00:34
    scala-center-steward[bot] opened #669
  • Dec 01 00:34

    scala-center-steward[bot] on commons-text-1.10.0

    Update commons-text to 1.10.0 (compare)

Naftoli Gugenheim
@nafg
It should just say run
I don't think "now I want to save this for later, how do I do that." I think "now I want to run this, how do I do that"
Saving is nice because
(a) I want to press refresh and not lose it
(b) I want to be able to open it elsewhere (or allow someone else to) by copy-pasting a URL
Both of those are things that I expect to happen automatically, not because I explicitly request to. I shouldn't have to
The thing I want to have an explicit button for is "Run," not "Save"
Similarly there should not be a New button, and it most certainly shouldn't pop up a modal confirmation box
There should be a Clear button. And pressing Back should take me to the old code so I don't need to sign a document confirming I accept the risks so to speak
OlegYch
@OlegYch
@nafg can you explain a bit about 'back', i'm not sure what you mean
Naftoli Gugenheim
@nafg
@OlegYch clearing should generate a new URL, and the code before should be saved under its URL, so the browser back button would take me to the code before I cleared it. So you could "undo" erasing it. Therefore no need to show a modal
Relatedly, if I just go to scastie without specific code link, I don't want to see my old code whatever it was doing. I want a blank editor
It's very annoying that if I'm like "I want to try something in scastie" I have 3 steps, navigate to scastie, press New, and confirm Yes
OlegYch
@OlegYch
well if you accidentally close scastie you don't want code to be gone either
@nafg can you open an issue for that please
Naftoli Gugenheim
@nafg
@OlegYch true but I don't see how that's relevant, unless the New confirm is really the onunload confirm, which I can't imagine
Jack Koenig
@jackkoenig

I'm having issues trying to download and run an executable in a Scastie (in this case, using coursier executable as an example): https://scastie.scala-lang.org/binAsaE5RViUFuK8JxdtZA

The same code works locally so I'm just wondering if I'm missing something.

OlegYch
@OlegYch
@jackkoenig could be docker sandbox preventing that?
Jack Koenig
@jackkoenig
@OlegYch that would probably do it, I'm guessing it's strictly forbidden to run any new binaries (other than the compiled Scala of course) for security reasons?
OlegYch
@OlegYch
@jackkoenig i'm not sure (not an expert on docker), but it seems like it
Jack Koenig
@jackkoenig
Does anyone have automation to generate Scasties? My use case is that I have Scastie templates that I have to manually edit every time I do a release of the project I maintain. It'd be nice if I could script this such that I update some data file and then generate new Scastie links and embed them (in a README for example). I know there's a JavaScript API for generating Scasties used by mdoc, it's not exactly what I want but I did discuss this a little bit in the mdoc repo: https://gitter.im/scalameta/mdoc?at=620abd1fe4c979478d79d514
I could go the pure JavaScript embedded route, but it feels wasteful that every time my webpage is opened, a new Scastie is generated. I'd rather generate it once and just embed a link
OlegYch
@OlegYch
@jackkoenig you could pass your library config via query params eg https://scastie.scala-lang.org/try?g=com.typesafe.play&a=play&v=2.8.12&t=JVM&sv=2.13&o=playframework&r=playframework
will this work for you?
Jack Koenig
@jackkoenig
@OlegYch that is neat, thanks for the pointer! That does most of it, can I also include a code snippet?
OlegYch
@OlegYch
yep
Jack Koenig
@jackkoenig
Oh sorry, I only skimmed the link, I see it now. Awesome
I do also use a compiler plugin and it doesn't seem to support injecting build.sbt code, but I see the parsing for that library here: https://github.com/scalacenter/scastie/blob/f850c9244172db638c9af68c35304ddfb14cfb33/client/src/main/scala/com.olegych.scastie.client/Routing.scala maybe it's not that hard to add?
techiejd
@techiejd
Hello, I'm having issues running latest scastie master on my macOS Big Sur (11.6.1). I get the following error when running sbt: "vfork is not a supported process launch mechanism on this platform."
techiejd
@techiejd
The java version:
➜ scastie git:(master) ✗ java --version openjdk 17.0.2 2022-01-18 OpenJDK Runtime Environment Homebrew (build 17.0.2+0) OpenJDK 64-Bit Server VM Homebrew (build 17.0.2+0, mixed mode, sharing)
techiejd
@techiejd
Well, I gave up trying to run it in my Mac, and tried running in GitPod. However, now I'm getting ERROR a.a.OneForOneStrategy:77 | timed out after 100 seconds when updating build configuration
ShalokShalom
@ShalokShalom
Hi there: Two issues: First, make dark mode accessible by URL, or enable it by default
Second: Prevail the dark/light selection after reloading the page
Great app, I love it.
OlegYch
@OlegYch
@techiejd try the nix build
sorry i'm unable to support scastie right now due to russians
please create an issue on github, someone will pick it up
OSE-369
@OSE-369
Scastie, kindly make your website RESPONSIVE
OSE-369
@OSE-369
Make scastie adaptive to mobile screens
OSE-369
@OSE-369
Can kindly add the "Undo" icon to the scastie playground
Suneel Yadav
@suneel.yadav:matrix.org
[m]

Hi There: I am facing the dependency issuses while building the application using SBT. Here is the detailed explination

I have developed a scala application using SBT and my versions are

Scala: 2.12.8
SBT: 1.2.8

When i trying to build the application i am getting the dependency issues from very recently. Listing out the errors

com.typesafe.sbt#sbt-twirl;1.4.1: not found
io.spray#sbt-revolver;0.9.0: not found
com.eed3si9n#sbt-assembly;0.14.9: not found
com.typesafe.sbteclipse#sbteclipse-plugin;5.2.4: not found

Could some one please help me out ?

Kunkka Admiral
@Kunkka0822
Hello everyone
HPGumm
@HPGumm
Hello everyone,
When I am trying to read a text file from my PC:
val datei = scala.io.Source.fromFile("C:\Users\gumm\Documents\Code\Kojo\hello.txt")
then I get the error message: value olegych is not a member of com
What is wrong here?
bjenkinsgit
@bjenkinsgit
What do I have to do to post a link to my scala code in scastie? I thought the "embed" function would do it but when I posted that into a discord chat the other use said all he could see was HIS scastie work.
Naftoli Gugenheim
@nafg
@bjenkinsgit just save and copy the URL from the address bar