question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't compile with Scala 2.13

See original GitHub issue

Describe the bug Quarkus doesn’t work when Scala version is changed from 2.12 to 2.13.

Expected behavior Successfully compiled.

To Reproduce Steps to reproduce the behavior:

  1. Open https://code.quarkus.io

  2. Select Scala (I also selected Gradle, resteasy-jackson, jackson, jdbc-postgresql and mailer)

  3. Download and extract the skeleton project

  4. Update the Scala version in build.gradle to 2.13.1

  5. In ExampleResource.scala, replace def hello() = "hello" with def hello() = List("hello").minOption.get – minOption is a new method in 2.13.

  6. In the project’s working directory, ./gradlew quarkusDev

  7. Notice the errors. You will get something like:

     > Task :compileScala                                                                                                                      
     [Error] C:\...\src\main\scala\...\ExampleResource.scala:11: value minOption is not a member of List[String]     
     one error found
    

Environment (please complete the following information):

  • Output of uname -a or ver: Linux Ryzen5 4.4.0-18362-Microsoft #836-Microsoft Mon May 05 16:04:00 PST 2020 x86_64 x86_64 x86_64 GNU/Linux

  • Output of java -version: openjdk version “11.0.3” 2019-04-16 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)

  • GraalVM version (if different from Java): N/A

  • Quarkus version or git rev: 1.5.1.Final

  • Build tool (ie. output of mvnw --version or gradlew --version): Gradle 6.3 Build time: 2020-03-24 19:52:07 UTC Revision: bacd40b727b0130eeac8855ae3f9fd9a0b207c60 Kotlin: 1.3.70 Groovy: 2.5.10 Ant: Apache Ant™ version 1.10.7 compiled on September 1 2019 JVM: 11.0.3 (AdoptOpenJDK 11.0.3+7) OS: Linux 4.4.0-18362-Microsoft amd64

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
gsmetcommented, Apr 22, 2022

I created a draft PR here: https://github.com/quarkusio/quarkus/pull/25106 . I had to rework everything as my branch was really too old and too many things had changed. The good thing is that it was a lot simpler… except if I missed something 😃.

0reactions
gsmetcommented, Apr 22, 2022

I have a branch somewhere but it would need a refresh.

Read more comments on GitHub >

github_iconTop Results From Across the Web

can't compile scala 2.13.0 · Issue #9857 · gradle/gradle - GitHub
Expected Behavior i use idea and gradle to build my project, it work good when my lib is 2.12.X, when i upgrade the...
Read more >
Attempting to execute compile task but mystery module can't ...
Your base project is only compiled for Scala 2.13 whereas it is defined as a dependency (using dependsOn ) of trans which targets...
Read more >
IntelliJ IDEA - Troubleshoot common Scala issues - JetBrains
In most cases your project JDK is not compatible with Scala or sbt version, try to change the Scala Compile Server SDK. Press...
Read more >
Scala 3 in sbt 1.5
The Scala 3 compiler is able to type check Scala 2.13 types and to resolve Scala 2.13 implicits. It means you can safely...
Read more >
Using Scala 3 with Spark | 47 Degrees
Scala 2.13 was released in June 2019, but it took more than two ... We can already use Scala 3 to build Spark...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found