Skip to content

Commit 3cacf59

Browse files
authored
Update scala version to 3.3.6 (#1045)
The current version of the Scala compiler (3.3.1) is no longer supported by Metals LSP. We should move to the latest LTS version.
1 parent 6e8b2b5 commit 3cacf59

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lazy val noPublishSettings = Seq(
2020
)
2121

2222
lazy val commonSettings = Seq(
23-
scalaVersion := "3.3.1",
23+
scalaVersion := "3.3.6",
2424
semanticdbEnabled := true,
2525
scalacOptions ++= Seq(
2626
"-encoding", "utf8",

effekt/shared/src/main/scala/effekt/util/Source.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ case class MarkdownSource(source: Source) extends Source {
3333
// we map non-code lines to empty lines to preserve line numbers
3434
source.content.linesIterator.foreach {
3535
case fenceLine(lang, ots) =>
36-
val opts = if (ots != null) { ots.tail.split(":").toList } else { Nil }
36+
val opts = if (ots != null) { ots.split(":").tail.toList } else { Nil }
3737
if (opts.contains("ignore")) {
3838
fenceType = Some(Ignore)
3939
lines += ""

effekt/shared/src/main/scala/effekt/util/TreeDocs.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package util
33

44
import scala.deriving.*
55
import scala.compiletime.*
6+
import scala.annotation.nowarn
67

78

89
// TODO we need to get rid of spurious pipes:
@@ -21,6 +22,7 @@ import scala.compiletime.*
2122
// |
2223
trait Docs[A] { def show(indentation: String, depth: Int): String }
2324

25+
@nowarn("msg=New anonymous class definition will be duplicated at each inline")
2426
object Docs {
2527

2628
inline def summonAll[T <: Tuple]: List[Docs[_]] =

kiama

Submodule kiama updated 1 file

0 commit comments

Comments
 (0)