Play framework 2 running unit tests in Intellij IDEA 13

craastad

There are two very similar questions here and here. I created a project with play new and ran play idea. The tests run with the play test command and when I try to run them in IDEA I get the following stacktrace.

Internal error: (java.lang.ClassNotFoundException) com.pty4j.PtyProcess
java.lang.ClassNotFoundException: com.pty4j.PtyProcess
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at com.intellij.scala.play.jpsSupport.Play2TemplateJpsBuilder$$anonfun$build$1.apply(Play2TemplateJpsBuilder.scala:90)
    at com.intellij.scala.play.jpsSupport.Play2TemplateJpsBuilder$$anonfun$build$1.apply(Play2TemplateJpsBuilder.scala:88)
    at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:105)
    at com.intellij.scala.play.jpsSupport.Play2TemplateJpsBuilder.build(Play2TemplateJpsBuilder.scala:88)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1086)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:797)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:845)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:760)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:583)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:344)
    at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:184)
    at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:129)
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:224)
    at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:113)
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:133)
    at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:724)

I have tried turning off the external compiler server in Settings (IDE) -> Scala, invalidating cache, and get the same exception. This is jetbrains post about the compiler server.

Justin

In my case, the problem has not solved with 133.331. IntelliJ 13 still does not compile test codes.

I think it's due to external build, because there is no problem with IntelliJ 12 of which external build option is off.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Play framework 2 running unit tests in Intellij IDEA 13

From Dev

Running Unit and Integration Tests in IntelliJ

From Dev

Running Spark Unit Tests in IntelliJ

From Dev

IntelliJ IDEA 13: Keyboard shortcuts to navigate stack trace after running tests?

From Dev

Setup IntelliJ IDEA 12 with Play2 and framework sources (java)

From Dev

Intellij IDEA warnings for @Nonnull annotation in unit tests

From Dev

Intellij IDEA warnings for @Nonnull annotation in unit tests

From Dev

How to create Play! Framework JAVA application with JetBrains IntelliJ Idea 13? I only find the Scala project

From Dev

Empty '/target/test-reports' Folder After Running Java Unit Tests In Play Framework 2.2.6

From Dev

Running jest tests directly in Intellij Idea/WebStorm?

From Dev

Running Android unit tests with Spock framework

From Dev

Building tests in Intellij for Play Framework is very slow

From Dev

Play framework support in IntelliJ IDEA Community Edition

From Dev

Intellij IDEA can not resolve symbol with Play framework

From Java

"No tests found for given includes" when running Gradle tests in IntelliJ IDEA

From Dev

"No tests found for given includes" when running Gradle tests in IntelliJ IDEA

From Dev

How to add unit tests to Java project in intellij IDEA?

From Dev

Intellij IDEA fork mode for unit tests slows down

From Dev

How to add google play services in IntelliJ IDEA 13 with gradle

From Dev

How to run Play Framework 2.x in debug mode in IntelliJ IDEA?

From Dev

How to run Play Framework 2.x in debug mode in IntelliJ IDEA?

From Dev

Runtime error upon running compiled Groovy code in IntelliJ IDEA 13

From Dev

OpenEJB Logger configuration when running tests from TestNG in Intellij IDEA

From Dev

ActiveMQ in-memory broker not starting when tests running in IntelliJ IDEA

From Dev

ActiveMQ in-memory broker not starting when tests running in IntelliJ IDEA

From Dev

Unit Test controllers in Play 2 framework with Scala

From Dev

Unit Test controllers in Play 2 framework with Scala

From Dev

Running Unit Tests Fakes Framework on TFS build server | Error

From Dev

Running Unit Tests Fakes Framework on TFS build server | Error

Related Related

  1. 1

    Play framework 2 running unit tests in Intellij IDEA 13

  2. 2

    Running Unit and Integration Tests in IntelliJ

  3. 3

    Running Spark Unit Tests in IntelliJ

  4. 4

    IntelliJ IDEA 13: Keyboard shortcuts to navigate stack trace after running tests?

  5. 5

    Setup IntelliJ IDEA 12 with Play2 and framework sources (java)

  6. 6

    Intellij IDEA warnings for @Nonnull annotation in unit tests

  7. 7

    Intellij IDEA warnings for @Nonnull annotation in unit tests

  8. 8

    How to create Play! Framework JAVA application with JetBrains IntelliJ Idea 13? I only find the Scala project

  9. 9

    Empty '/target/test-reports' Folder After Running Java Unit Tests In Play Framework 2.2.6

  10. 10

    Running jest tests directly in Intellij Idea/WebStorm?

  11. 11

    Running Android unit tests with Spock framework

  12. 12

    Building tests in Intellij for Play Framework is very slow

  13. 13

    Play framework support in IntelliJ IDEA Community Edition

  14. 14

    Intellij IDEA can not resolve symbol with Play framework

  15. 15

    "No tests found for given includes" when running Gradle tests in IntelliJ IDEA

  16. 16

    "No tests found for given includes" when running Gradle tests in IntelliJ IDEA

  17. 17

    How to add unit tests to Java project in intellij IDEA?

  18. 18

    Intellij IDEA fork mode for unit tests slows down

  19. 19

    How to add google play services in IntelliJ IDEA 13 with gradle

  20. 20

    How to run Play Framework 2.x in debug mode in IntelliJ IDEA?

  21. 21

    How to run Play Framework 2.x in debug mode in IntelliJ IDEA?

  22. 22

    Runtime error upon running compiled Groovy code in IntelliJ IDEA 13

  23. 23

    OpenEJB Logger configuration when running tests from TestNG in Intellij IDEA

  24. 24

    ActiveMQ in-memory broker not starting when tests running in IntelliJ IDEA

  25. 25

    ActiveMQ in-memory broker not starting when tests running in IntelliJ IDEA

  26. 26

    Unit Test controllers in Play 2 framework with Scala

  27. 27

    Unit Test controllers in Play 2 framework with Scala

  28. 28

    Running Unit Tests Fakes Framework on TFS build server | Error

  29. 29

    Running Unit Tests Fakes Framework on TFS build server | Error

HotTag

Archive