How do I fix this error message in IntelliJ: `Error:Cause: org.gradle.api.tasks.scala.ScalaCompileOptions.getForce()Ljava/lang/String;`?

I can’t do any Hail development when IntelliJ gives me this error!

Enter these commands in the Hail directory:

rm -r .idea/
rm hail.iml

And reimport the Hail project into IntelliJ from the build.gradle file.

I also saw this error when using an older version of IntelliJ (CE 15). Upgrading to the version below allowed the import to go through without any problem:

IntelliJ IDEA 2016.3.4
Build #IC-163.12024.16, built on January 31, 2017
JRE: 1.8.0_112-release-408-b6 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

1 Like