Skip to content

Migrate to Scala 3.7.#354

Closed
ml86 wants to merge 1 commit intomasterfrom
markus/migrateToScala3.7
Closed

Migrate to Scala 3.7.#354
ml86 wants to merge 1 commit intomasterfrom
markus/migrateToScala3.7

Conversation

@ml86
Copy link
Copy Markdown
Contributor

@ml86 ml86 commented Mar 27, 2026

We want Scala 3.7. compatible code emitted by the code generation in
order to be able to migrate to Scala 3.7. in downstream projets.
These are the necessary adjustments.

We want Scala 3.7. compatible code emitted by the code generation in
order to be able to migrate to Scala 3.7. in downstream projets.
These are the necessary adjustments.
@ml86 ml86 requested a review from mpollmeier March 27, 2026 11:16
@ml86
Copy link
Copy Markdown
Contributor Author

ml86 commented Mar 27, 2026

To add a little more context:
The ImplicitNotFound annotation only accepts compile time constants as argument since Scala 3.7.. To adjust for that I removed the .stripMargin call.

case "L1" => _.out // -> L2
case "R1" => _.repeat(_.out)(_.maxDepth(3)) // -> R4
case "L1" => _.out // -> L2
case "R1" => _.repeat(_.out)(using _.maxDepth(3)) // -> R4
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this uglyfies the traversal DSL - albeit in a rarely used path and it was built onto a hack, but still... we should at least look for alternative ways do keep the nice dsl before throwing it over board

ThisBuild / scalaVersion := scala3

val scala3 = "3.3.6"
val scala3 = "3.7.4"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the comment below this line - this is a library and as such should always stay on the current scala LTS release, which currently is 3.3.7

https://www.scala-lang.org/download/all.html

@ml86
Copy link
Copy Markdown
Contributor Author

ml86 commented Mar 27, 2026

Makes sense. Will make a new PR with only the changes to make it 3.7. compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants