SBT import error when "java" process writes to stderr

SBT import/re-sync fails if the local java installation prints to stderr when running "sbt".

In my case, Java prints a message to standard error indicating that the options from the environment variable _JAVA_OPTS were recognized.  IntelliJ 13 CE SBT support chokes on this, with a stack trace ending with:

Caused by: com.intellij.openapi.externalSystem.model.ExternalSystemException: Picked up _JAVA_OPTIONS: -Dawt.useSyste
mAAFontSettings=lcd
        at org.jetbrains.sbt.project.SbtProjectResolver.resolveProjectInfo(SbtProjectResolver.scala:32)
        at org.jetbrains.sbt.project.SbtProjectResolver.resolveProjectInfo(SbtProjectResolver.scala:18)
        at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:41)
        at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl$1.produce(RemoteExternalSystemProjectResolverImpl.java:37)
        at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.java:59)
        at com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37)
        ... 21 more

1 comment
Comment actions Permalink

I created an issue http://youtrack.jetbrains.com/issue/SCL-6394

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.