Dotty: Advance the support for Scala.js

Created on 27 Aug 2019  路  8Comments  路  Source: lampepfl/dotty

Dotty contains preliminary support for Scala.js under the flag -scalajs. Or rather, it contains the infrastructure for preliminary support. It is far from being actually usable, but this is where you can help!

I have written a tutorial that walks you through a few steps that you can do to further the support of Scala.js in Dotty. Even if you do not typically contribute to a compiler, this can be your chance. It is not very difficult, given that there already exists an extensive test suite, as well as a working implementation for scalac.

Read the tutorial, and get going!

scala.js novice help wanted

Most helpful comment

Thanks to all of you who have contributed to the support of Scala.js in Dotty.

Since I've been allocated time at the Scala Center to finish it, it is now almost done, and so I think this issue can be closed.

All 8 comments

I noted that often when adding and then removing a test suite I'd get errors like it was still trying to compile the removed test suite

I solved it by explicitly deleting the files with
rm -Rf tests/out/bootstrap/sjsJUnitTests

The following two tests from javalib.lang fail without dotty alteration (the rest of the tests from the package are added in #7255):

  1. javalib/lang/ClassTest.scala: error log link
  2. javalib/lang/StringTest.scala: error log link

All the tests from javalib.math have been enabled, no failing tests were discovered #7272

The following test from the javalib.net fails:

  1. javalib/net/URITest.scala: error log link

The second test in the group javalib/net/URLDecoderTest.scala has been enabled #7273

I may dig into that URITest failure.

Edit: Looking at some of the other failures as well.

@Lacaranian , good, please do it

Thanks to all of you who have contributed to the support of Scala.js in Dotty.

Since I've been allocated time at the Scala Center to finish it, it is now almost done, and so I think this issue can be closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

odersky picture odersky  路  3Comments

noti0na1 picture noti0na1  路  3Comments

milessabin picture milessabin  路  3Comments

ohze picture ohze  路  3Comments

liufengyun picture liufengyun  路  3Comments