Guillaume Martres
Guillaume Martres
The following code: ```scala class Hi { class A } class Foo { val x = new Hi import x._ def bar: A = new A } ``` fails with:...
As far as I can see, everything is hardcoded to compile scalap, what would be needed to be able to do: ```scala > run foo.scala ``` from sbt, and have...
We need to forward-port @harpocrates's https://github.com/scala/scala/pull/9551. Note that our equivalent of Scala 2's JavaParsers is in https://github.com/lampepfl/dotty/blob/main/compiler/src/dotty/tools/dotc/parsing/JavaParsers.scala.
Using Coursier 2.1.0-M5-18-gfebf9838c : ```shell % cs fetch --scala-version 3 'org.scalacheck::scalacheck:1.16.0' /home/smarter/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scalacheck/scalacheck_2.13/1.16.0/scalacheck_2.13-1.16.0.jar /home/smarter/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-lang/scala-library/2.13.8/scala-library-2.13.8.jar /home/smarter/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/test-interface/1.0/test-interface-1.0.jar ``` (Also IMO it's time to change the default to scala 3 from scala 2.13 now...
Feedback from one of our students: > When I try entering ".\cs setup -y --jvm 8 --apps cs,sbt", Avast warns me about some virus and places a file named cs.exe...
Right now the compiler bridge generation is controlled by: https://github.com/lihaoyi/mill/blob/436e5e21f526a8e9758bd11c8b9b221253d50663/scalalib/worker/src/mill/scalalib/worker/ScalaWorker.scala#L34-L36 There's several things missing compared to sbt here: - The bridge is cached based only on the scala version, this...
I changed a few things in https://index.scala-lang.org/edit/lampepfl/dotty then pressed "Updated" and I got: ```scala org.json4s.ParserUtil$ParseException: unknown token G Near: cumentation needs "G at org.json4s.native.JsonParser$Parser.fail(JsonParser.scala:234) at org.json4s.native.JsonParser$Parser.nextToken(JsonParser.scala:322) at org.json4s.native.JsonParser$.$anonfun$astParser$1(JsonParser.scala:186) at org.json4s.native.JsonParser$.$anonfun$astParser$1$adapted(JsonParser.scala:143)...
This is a breaking change mentioned in https://github.com/lampepfl/dotty/pull/13822 but which is worth highlighting in the migration guide I think (it can also affect usage of WeakReference in some situations but...
Using https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-color-scheme it's possible to check if the system/browser is in dark mode, this could be used to automatically enable the dark theme on scastie.
## steps See https://github.com/lampepfl/dotty/issues/14691 ## problem On the compiler side, we implement CompilerInterface2 in https://github.com/lampepfl/dotty/blob/main/sbt-bridge/src/dotty/tools/xsbt/CompilerBridge.java, but as far as I know this interface doesn't expose the sourcePositionMappers. ## expectation I...