Problems with 1.0.233

So it was able to load the project (after converting it). Yay!

The conversion was a little rocky - there were some odd error messages
and popups, but they don't seem to have affected the actual conversion.

Now I'm working and there's a message at the top of the screen:

No Scala SDK in module.

And a link:

Set up Scala SDK?

When I click on the link I get a popup "Add Scala Support", with a
selector to choose a library (and no options) and a button "Create" that
throws an exception. (error report 751607)

I'll see how things go. Hopefully I won't have to back up to 1.0.201 AGAIN.

Donald

0
8 comments

And actually trying to do work fails:

Error:Internal error: (java.lang.NullPointerException) null
java.lang.NullPointerException
     at
org.jetbrains.jps.incremental.scala.SettingsManager.getScalaSdk(SettingsManager.java:49)
     at
org.jetbrains.jps.incremental.scala.SettingsManager.hasScalaSdk(SettingsManager.java:43)
     at
org.jetbrains.jps.incremental.scala.ScalaBuilder$$anonfun$hasScalaFacets$1.apply(ScalaBuilder.scala:75)
     at
org.jetbrains.jps.incremental.scala.ScalaBuilder$$anonfun$hasScalaFacets$1.apply(ScalaBuilder.scala:75)
     at scala.collection.Iterator$class.exists(Iterator.scala:769)
     at scala.collection.AbstractIterator.exists(Iterator.scala:1177)
     at scala.collection.IterableLike$class.exists(IterableLike.scala:77)
     at scala.collection.AbstractIterable.exists(Iterable.scala:54)
     at
org.jetbrains.jps.incremental.scala.ScalaBuilder$.hasScalaFacets(ScalaBuilder.scala:75)
     at
org.jetbrains.jps.incremental.scala.ScalaBuilder$.isScalaProject(ScalaBuilder.scala:69)
     at
org.jetbrains.jps.incremental.scala.ScalaBuilder.buildStarted(ScalaBuilder.scala:36)
     at
org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:339)
     at
org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:191)
     at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:131)
     at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:229)
     at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:113)
     at
org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:158)
     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.run(FutureTask.java:262)
     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:745)

0

I see the same exception.

-Erik

0
Avatar
Permanently deleted user

NPE is fixed, thanks for reporting. Updated build will be available today.

0
Avatar
Permanently deleted user

Donald, thanks for report. Several forms were not updated and failed to initialize. It was fixed yesterday.

0

Thanks, appreciated! -Erik

0

With the new build, I am having a new issue: it seems that building the project always tries to compile Java files first, which fails. The settings are:

- Incrementality type: IDEA (same if I choose sbt)
- Compile order: Mixed

-Erik

0

Hi Erik! I cannot reproduce the problem -I've created a new IDEA project with Scala, then created the following files:

class JFoo {
    JFoo() {
        new SFoo();
    
}
}


class SFoo {
  new JFoo()
}



When compile order is "Mixed" then the projects builds just fine, when compile order is JavaThenScala - there's an error in JFoo, when the order is ScalaThenJava - the error is in SFoo.

Can you reproduce the problem in the given circumstances?

0

Pavel,

I had the same problem with the final build, but by synchronizing my project files with a coworker it started working again. I am not sure which part of the project files was causing the issue, but it's now working.

-Erik

0

Please sign in to leave a comment.