Problem building Play Framework projects

Answered

Hello all, 

I'm having trouble building Play Framework projects recently, using IntelliJ and the Play/Scala plugin. I've tried IntelliJ 15.0.2, IntelliJ 15.0.3, and both The 2.1 and 2.2 versions of the Scala plugin.

My build.log file contains the following error:

2016-02-04 18:25:28,937 [ 9079] INFO - .incremental.IncProjectBuilder - Module 'modulename' production: java.lang.NullPointerException
org.jetbrains.jps.incremental.ProjectBuildException: Module 'modulename' production: java.lang.NullPointerException
at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1005)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:870)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:695)
at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:386)
at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:193)
at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:137)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:294)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:232)
at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:44)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at com.intellij.scala.play.jpsSupport.playutil.Play2JPSUtil$.pathFromUrl(Play2JPSUtil.scala:120)
at com.intellij.scala.play.jpsSupport.Play2TemplateJpsBuilder$$anonfun$2.applyOrElse(Play2TemplateJpsBuilder.scala:86)
at com.intellij.scala.play.jpsSupport.Play2TemplateJpsBuilder$$anonfun$2.applyOrElse(Play2TemplateJpsBuilder.scala:85)
at scala.PartialFunction$$anonfun$runWith$1.apply(PartialFunction.scala:141)
at scala.PartialFunction$$anonfun$runWith$1.apply(PartialFunction.scala:140)
at scala.collection.mutable.HashSet.foreach(HashSet.scala:78)
at scala.collection.TraversableLike$class.collect(TraversableLike.scala:282)
at scala.collection.AbstractTraversable.collect(Traversable.scala:104)
at com.intellij.scala.play.jpsSupport.Play2TemplateJpsBuilder.build(Play2TemplateJpsBuilder.scala:85)
at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1230)
at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:904)
at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:976)

Tried reinstalling IntelliJ, reimporting project, clearing caches, everything. Any ideas how to fix this?

3 comments
Comment actions Permalink

Please try IDEA 16 EAP: https://confluence.jetbrains.com/display/IDEADEV/IDEA+16+EAP and the updated Scala plug-in. Does it help?

If you still get the same problem, please follow https://youtrack.jetbrains.com/issue/SCL-9852 for updates.

0
Comment actions Permalink

Still having the same problem with Intellij16. 

0
Comment actions Permalink

Same problem here, on 15.0.4. Tried the EAP - no luck

Disabling Play2 compilation helps, but then some features aren't available. 

0

Please sign in to leave a comment.