Why am I getting this error when running Scala 2.13 tests in IntelliJ, but not with Scala 2.12?

后端 未结 1 1231
渐次进展
渐次进展 2021-01-04 02:20

I am getting the following error when I try to run tests in IntelliJ (2019.1), Scala IntelliJ plugin v2019.1.8, with Scala 2.13:

Exception in thread \"ScalaT         


        
相关标签:
1条回答
  • 2021-01-04 02:58

    Update: This has been fixed in plugin version 2019.1.9.


    It is possible IntelliJ Scala plugin needs to be updated for 2.13. Meanwhile try workaround by selecting the checkboxes Use sbt and Use UI with sbt under test's Edit configuration.... According to Dmitrii Naumenko:

    This is fixed in the

    • 2019.1 EAP #2019.1.8.21
    • 2019.2 Nightly
    • Will be available soon in 2019.2 EAP and 2019.1 new Release

    Regarding Gradle, try configuring to delegate to Gradle Test Runner

    1. Remove exising ScalaTest runners
    2. Go to Build, Execution, Deployment | Build Tools | Gradle | Runner
    3. Select the checkbox Delegate IDE build/run actions to Gradle
    4. Choose Gradle Test Runner
    0 讨论(0)
提交回复
热议问题