Skip to content

Commit

Permalink
Add Scala 3.1.0 support (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
dos65 authored Oct 20, 2021
1 parent a897826 commit 1f2187d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- "'++2.12.12 test'"
- "'++2.12.14 test' scripted"
- "'++2.13.6 test'"
- "'++3.0.1 test'"
- "'++3.1.0 test'"
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v13
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ out/
.bloop/
metals.sbt
.vscode/
.bsp

website/translated_docs
website/build/
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import scala.collection.mutable
def scala212 = "2.12.15"
def scala211 = "2.11.12"
def scala213 = "2.13.6"
def scala3 = "3.0.2"
def scala3 = "3.1.0"
def scala2Versions = List(scala212, scala211, scala213)
def allScalaVersions = scala2Versions :+ scala3

def scalajs = "1.5.1"
def scalajs = "1.7.1"
def scalajsBinaryVersion = "1"
def scalajsDom = "1.1.0"

Expand Down
2 changes: 1 addition & 1 deletion mdoc-sbt/src/sbt-test/sbt-mdoc/basic/project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.5.1")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.7.1")
addSbtPlugin("org.scalameta" % "sbt-mdoc" % sys.props("plugin.version"))
addSbtCoursier
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class MarkdownCompiler(
report(vreporter, input, fileImports, run.runContext, edit)
}

class CollectionReporter extends dotty.tools.dotc.reporting.Reporter {
class CollectionReporter extends dotty.tools.dotc.reporting.Reporter with UniqueMessagePositions {
val allDiags = List.newBuilder[Diagnostic]

override def doReport(dia: Diagnostic)(using Context) =
Expand Down
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "1.1.0")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.5.1")
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.7.1")
addSbtPlugin("ch.epfl.scala" % "sbt-scalajs-bundler" % "0.20.0")

libraryDependencies ++= List(
Expand Down
8 changes: 0 additions & 8 deletions tests/unit-js/src/test/scala/tests/js/JsSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -300,14 +300,6 @@ class JsSuite extends BaseMarkdownSuite {
|no-dom.md:3 (mdoc generated code)
| value scalajs is not a member of org
|def run0(node: _root_.org.scalajs.dom.raw.HTMLElement): Unit = {
|
|
|error:
|no-dom.md:3 (mdoc generated code)
| (<error value scalajs is not a member of org>#dom.raw :
| <error value scalajs is not a member of org>
|) is not a valid type prefix, since it is not an immutable path
|def run0(node: _root_.org.scalajs.dom.raw.HTMLElement): Unit = {
""".stripMargin
)
)
Expand Down

0 comments on commit 1f2187d

Please sign in to comment.