Scala can't compile whenever I upgrade IntelliJ

I've had this problem every time I've upgraded IDEA for the last year and a half. Before that I never used Scala. So what I find is that the Scala components of the project can't compile due to some mysterious error, whereas the maven build works just fine. This morning I upgraded to 2018.1 and have been unable to compile ever since. My usual solution is to muck around for about a day until it mysteriously gets better, but that gets old. This is JDK 1.7.0_80, Scala 2.9.2, IntelliJ 2018.1.

When I compile, the Build tab says this:

Information:javac 7 was used to compile java sources
Information:23/05/18 2:04 PM - Compilation completed with 1 error and 0 warnings in 10 s 27 ms
Error:Module 'redacted' production: sbt.internal.inc.CompileFailed

That's all. Module redacted depends on two other modules which contain no Scala code. Module redacted includes only one Scala file, in the test sources, which depends on code from the Java modules. The Scala errors in the idea.log below are not from my code.

pom.xml for the module:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>au.com.redacted</groupId>
<artifactId>redacted</artifactId>
<version>2.8.4-SNAPSHOT</version>
</parent>
<artifactId>redacted</artifactId>
<name>redacted</name>
<packaging>jar</packaging>
<dependencies>

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
</dependency>

<... redacted ...>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.29</version>
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.1.1</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2.1</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.1</version>
</dependency>

<!-- AD: I haven't investigated but this dep gets blocked. It's pretty important and caused a live bug for not being included. -->
<dependency>
<groupId>org.jadira.usertype</groupId>
<artifactId>usertype.spi</artifactId>
<version>1.8</version>
</dependency>

<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>1.2.1</version>
</dependency>

</dependencies>
<build>
<plugins>
<!-- SCALA -->
<plugin>
<groupId>org.scala-tools</groupId>
<artifactId>maven-scala-plugin</artifactId>
<version>2.15.2</version>
<configuration>
<charset>${project.build.sourceEncoding}</charset>
<jvmArgs>
<jvmArg>-Xmx1024m</jvmArg>
<jvmArg>-DpackageLinkDefs=file://${project.build.directory}/packageLinkDefs.properties</jvmArg>
</jvmArgs>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

 

idea.log:

2018-05-23 14:02:48,129 [4396272] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /home/john/bin/idea-IU-181.5087.20/lib/jps-launcher.jar:/home/john/bin/idea-IU-181.5087.20/jre64/lib/tools.jar:/home/john/bin/idea-IU-181.5087.20/lib/optimizedFileManager.jar
2018-05-23 14:02:48,149 [4396292] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2018-05-23 14:02:48,149 [4396292] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2018-05-23 14:02:48,149 [4396292] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2018-05-23 14:04:39,756 [4507899] INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS)
2018-05-23 14:04:40,428 [4508571] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /home/john/bin/idea-IU-181.5087.20/lib/jps-launcher.jar:/home/john/bin/idea-IU-181.5087.20/jre64/lib/tools.jar:/home/john/bin/idea-IU-181.5087.20/lib/optimizedFileManager.jar
2018-05-23 14:04:40,447 [4508590] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2018-05-23 14:04:40,447 [4508590] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2018-05-23 14:04:40,447 [4508590] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
2018-05-23 14:04:49,525 [4517668] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/Analyzer.scala:31: error: ')' expected but string literal found.
2018-05-23 14:04:49,527 [4517670] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: assert(sym.isClass, s"${sym.fullName} is not a class")
2018-05-23 14:04:49,527 [4517670] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,568 [4517711] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/CompilerInterface.scala:95: error: ';' expected but string literal found.
2018-05-23 14:04:49,569 [4517712] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: s"[zinc] Running cached compiler $compilerId for Scala compiler $versionString"
2018-05-23 14:04:49,569 [4517712] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,590 [4517733] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/DelegatingReporter.scala:149: error: ';' expected but string literal found.
2018-05-23 14:04:49,590 [4517733] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: override def toString = s"[$severity] $pos: $message"
2018-05-23 14:04:49,590 [4517733] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,650 [4517793] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/ExtractUsedNames.scala:122: error: ';' expected but string literal found.
2018-05-23 14:04:49,651 [4517794] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: val msg = s"The ${unit.source} contains the following used names:\n"
2018-05-23 14:04:49,651 [4517794] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,658 [4517801] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/GlobalHelpers.scala:162: error: ';' expected but string literal found.
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: s"The symbol $symbol comes from an unknown source or compiled source -- ignoring."
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/GlobalHelpers.scala:164: error: ';' expected but string literal found.
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: s"The ${culprit.fullName} defined at ${culprit.fullLocationString} is not a class symbol."
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/GlobalHelpers.scala:166: error: ';' expected but string literal found.
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: s"No enclosing class. Discarding dependency on $culprit (currentOwner = $owner)."
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/GlobalHelpers.scala:167: error: ';' expected but string literal found.
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: def noTopLevelMember(found: String) = s"""
2018-05-23 14:04:49,659 [4517802] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/LocalToNonLocalClass.scala:40: error: ')' expected but string literal found.
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: s"Tried to resolve ${s.fullName} to a non local classes but the resolution works up to sbtDependency phase. We're at ${phase.name}"
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/LocalToNonLocalClass.scala:52: error: ')' expected but string literal found.
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: assert(s.isClass, s"The ${s.fullName} is not a class.")
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/LocalToNonLocalClass.scala:57: error: ')' expected but string literal found.
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: assert(s.isClass, s"The ${s.fullName} is not a class.")
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: /home/john/.IntelliJIdea2018.1/system/compile-server/develop_8e89a9a1/_temp_/sbt_20cbe3c4/xsbt/LocalToNonLocalClass.scala:58: error: ';' expected but ')' found.
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: cache.getOrElseUpdate(s, lookupNonLocal(s))
2018-05-23 14:04:49,667 [4517810] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: ^
2018-05-23 14:04:49,681 [4517824] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: 12 errors found
2018-05-23 14:04:49,779 [4517922] INFO - lij.compiler.impl.CompilerUtil - COMPILATION FINISHED (BUILD PROCESS); Errors: 1; warnings: 0 took 10027 ms: 0 min 10sec
2018-05-23 14:04:49,830 [4517973] INFO - s.CompilerReferenceServiceImpl - backward reference index reader is opened
2018-05-23 14:04:50,008 [4518151] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: /home/john/bin/idea-IU-181.5087.20/lib/jps-launcher.jar:/home/john/bin/idea-IU-181.5087.20/jre64/lib/tools.jar:/home/john/bin/idea-IU-181.5087.20/lib/optimizedFileManager.jar
2018-05-23 14:04:50,026 [4518169] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
2018-05-23 14:04:50,026 [4518169] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation
2018-05-23 14:04:50,026 [4518169] INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

8 comments
Comment actions Permalink

Update: I tried to use Scala 2.10.0 instead. It reports different stuff in the log file but I still fails with CompileFailed.

Ubuntu 16.04, IntelliJ Ultimate.

0
Comment actions Permalink

Can you check when this happens:

* are plugin auto-updates enabled?

* is the Scala plugin activated?

* is the Scala plugin on the latest version?

This problem may appear when the IntelliJ distribution is upgraded, but the Scala plugin is not yet updated. We had some report that the auto-updating wasn;t working correctly for some versions, requiring a manual update of the plugins.

0
Comment actions Permalink

Scala plugin is version 2018.1.9. When I first started the new version it told me a bunch of plugins were out of date and updated them. Whether that counts as auto-update I'm not sure.

I just tried disabling the Scala plugin, restarting, enabling the Scala plugin, restarting... nothing changed.

It's as if the Scala subsystem isn't initialised properly. When I have had this problem in the past (EVERY TIME I UPDATE IDEA!!!) it eventually gets better. However I've lost a day of productivity this time, and I'm not getting any closer to solving the problem :-(.

0
Comment actions Permalink

Um, I seem to have fixed it. I told it to use the Scala compile server. It said it didn't like some class file which had version 52.0. So I set JDK to 1.8 in the Scala Compile Server setting (note: it's not 100% clear that this is the JDK that the Scala compile server runs with). And then it was working.

So maybe the original error was that Scala was picking up JDK 1.7 from somewhere (because that's what our code runs on), when the compiler needs JDK 1.8?

0
Comment actions Permalink

And now it's broken again, despite me having changed nothing since it last worked.

 

Information:javac 7 was used to compile java sources
Information:24/05/18 2:37 PM - Compilation completed with 1 error and 68 warnings in 5 s 392 ms
Error:scalac: Error: org.jetbrains.jps.incremental.scala.remote.ServerException
Error compiling the sbt component 'compiler-interface-2.9.2-52.0'
at sbt.internal.inc.AnalyzingCompiler$.handleCompilationError$1(AnalyzingCompiler.scala:331)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$4(AnalyzingCompiler.scala:346)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$4$adapted(AnalyzingCompiler.scala:341)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:376)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:383)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$2(AnalyzingCompiler.scala:341)
at sbt.internal.inc.AnalyzingCompiler$.$anonfun$compileSources$2$adapted(AnalyzingCompiler.scala:335)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:376)
at sbt.io.IO$.withTemporaryDirectory(IO.scala:383)
at sbt.internal.inc.AnalyzingCompiler$.compileSources(AnalyzingCompiler.scala:335)
at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl$.getOrCompileInterfaceJar(CompilerFactoryImpl.scala:128)
at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl.$anonfun$getScalac$1(CompilerFactoryImpl.scala:49)
at scala.Option.map(Option.scala:146)
at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl.getScalac(CompilerFactoryImpl.scala:47)
at org.jetbrains.jps.incremental.scala.local.CompilerFactoryImpl.createCompiler(CompilerFactoryImpl.scala:25)
at org.jetbrains.jps.incremental.scala.local.CachingFactory.$anonfun$createCompiler$3(CachingFactory.scala:24)
at org.jetbrains.jps.incremental.scala.local.Cache.$anonfun$getOrUpdate$2(Cache.scala:20)
at scala.Option.getOrElse(Option.scala:121)
at org.jetbrains.jps.incremental.scala.local.Cache.getOrUpdate(Cache.scala:19)
at org.jetbrains.jps.incremental.scala.local.CachingFactory.createCompiler(CachingFactory.scala:24)
at org.jetbrains.jps.incremental.scala.local.LocalServer.compile(LocalServer.scala:22)
at org.jetbrains.jps.incremental.scala.remote.Main$.make(Main.scala:68)
at org.jetbrains.jps.incremental.scala.remote.Main$.nailMain(Main.scala:25)
at org.jetbrains.jps.incremental.scala.remote.Main.nailMain(Main.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.martiansoftware.nailgun.NGSession.run(NGSession.java:319)
Warning:scalac: /tmp/sbt_9798f320/xsbt/Analyzer.scala:31: error: ')' expected but string literal found.
Warning:scalac: assert(sym.isClass, s"${sym.fullName} is not a class")
Warning:scalac: ^
Warning:scalac: /tmp/sbt_9798f320/xsbt/CompilerInterface.scala:95: error: ';' expected but string literal found.
Warning:scalac: s"[zinc] Running cached compiler $compilerId for Scala compiler $versionString"
Warning:scalac: ^
Warning:scalac: /tmp/sbt_9798f320/xsbt/DelegatingReporter.scala:149: error: ';' expected but string literal found.
Warning:scalac: override def toString = s"[$severity] $pos: $message"
Warning:scalac: ^
Warning:scalac: /tmp/sbt_9798f320/xsbt/ExtractUsedNames.scala:122: error: ';' expected but string literal found.
Warning:scalac: val msg = s"The ${unit.source} contains the following used names:\n"
Warning:scalac: ^
Warning:scalac: /tmp/sbt_9798f320/xsbt/GlobalHelpers.scala:162: error: ';' expected but string literal found.
Warning:scalac: s"The symbol $symbol comes from an unknown source or compiled source -- ignoring."
Warning:scalac: ^
Warning:scalac: /tmp/sbt_9798f320/xsbt/GlobalHelpers.scala:164: error: ';' expected but string literal found.
Warning:scalac: s"The ${culprit.fullName} defined at ${culprit.fullLocationString} is not a class symbol."
Warning:scalac: /tmp/sbt_9798f320/xsbt/GlobalHelpers.scala:166: error: ';' expected but string literal found.
Warning:scalac: s"No enclosing class. Discarding dependency on $culprit (currentOwner = $owner)."
Warning:scalac: /tmp/sbt_9798f320/xsbt/GlobalHelpers.scala:167: error: ';' expected but string literal found.
Warning:scalac: def noTopLevelMember(found: String) = s"""
Warning:scalac: ^
Warning:scalac: /tmp/sbt_9798f320/xsbt/LocalToNonLocalClass.scala:40: error: ')' expected but string literal found.
Warning:scalac: s"Tried to resolve ${s.fullName} to a non local classes but the resolution works up to sbtDependency phase. We're at ${phase.name}"
Warning:scalac: /tmp/sbt_9798f320/xsbt/LocalToNonLocalClass.scala:52: error: ')' expected but string literal found.
Warning:scalac: assert(s.isClass, s"The ${s.fullName} is not a class.")
Warning:scalac: ^
Warning:scalac: /tmp/sbt_9798f320/xsbt/LocalToNonLocalClass.scala:57: error: ')' expected but string literal found.
Warning:scalac: /tmp/sbt_9798f320/xsbt/LocalToNonLocalClass.scala:58: error: ';' expected but ')' found.
Warning:scalac: cache.getOrElseUpdate(s, lookupNonLocal(s))
Warning:scalac: ^
Warning:scalac: 12 errors found
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/Analyzer.scala:31: error: ')' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/CompilerInterface.scala:95: error: ';' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/DelegatingReporter.scala:149: error: ';' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/ExtractUsedNames.scala:122: error: ';' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/GlobalHelpers.scala:162: error: ';' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/GlobalHelpers.scala:164: error: ';' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/GlobalHelpers.scala:166: error: ';' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/GlobalHelpers.scala:167: error: ';' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/LocalToNonLocalClass.scala:40: error: ')' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/LocalToNonLocalClass.scala:52: error: ')' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/LocalToNonLocalClass.scala:57: error: ')' expected but string literal found.
Warning:scalac: /tmp/sbt_ce9c7494/xsbt/LocalToNonLocalClass.scala:58: error: ';' expected but ')' found.

0
Comment actions Permalink

Could it be that the Project JDK is changed under some circumstances? The most likely case is that it happens when refreshing the project model.

0
Comment actions Permalink

No, we use JDK 1.7 so I very carefully set that up.

The latest symptoms are that it mostly works. When I build a module as part of running a configuration I get the warnings from SBT. Occasionally, I get an error at that point and it doesn't work so I have to click the Build Project button. Then I get the warnings, and next time I try to run the configuration it works. I have never had this particular batch of symptoms before.

0
Comment actions Permalink

I'm also getting sbt.internal.inc.CompileFailed on Ubuntu with Scala 2.9.1.final, JDK 1.7.0_95, IntelliJ build #IC-182.3911.36 and scala-intellij-plugin 2018.2.10

0

Please sign in to leave a comment.