You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Scala with this plugin the depentendies of SBT (including conflicting Scala-Version), get copied to the Raspberry and get loaded during executin. SBT ist just the Build-Tool and is not needed an the Raspberry.
This causes errors like this:
Exception in thread "main" java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object; at akka.http.scaladsl.server.directives.LoggingMagnet$.forRequestResponseFromMarker(DebuggingDirectives.scala:69) at Service$class.$init$(AkkaHttpMicroservice.scala:81) at AkkaHttpMicroservice$.<init>(AkkaHttpMicroservice.scala:107) at AkkaHttpMicroservice$.<clinit>(AkkaHttpMicroservice.scala) at AkkaHttpMicroservice.main(AkkaHttpMicroservice.scala)
When executiong the same code localy, this problem does not exist
This problem could be reproduced with:
Intellij 2016.1.3
Scala-Plugin installed
Version 1.20 of this plugin
Activator-template "akka-http-microservice".
To work around this problem:
Remove "SBT: sbt-and-plugin" from Dependencies under File > Project Structure > Modlues > *-build > Dependencies
Delete Target-Folder on PI
The text was updated successfully, but these errors were encountered:
My only idea is looking at the way it is done when the project get's executed locals => there has to be some difference in determining the Classpath and JARs getting loaded during execution.
I'm using this Plugin for Scala Development, wich worked fine for some time.
But starting with SBT 0.13, Scala itself gets resolved like a normal lib, see http://stackoverflow.com/questions/22551430/in-sbt-0-13-does-scalaversion-still-control-the-version-of-scala-used-for-compi
When using Scala with this plugin the depentendies of SBT (including conflicting Scala-Version), get copied to the Raspberry and get loaded during executin. SBT ist just the Build-Tool and is not needed an the Raspberry.
This causes errors like this:
Exception in thread "main" java.lang.NoSuchMethodError: scala.Predef$.ArrowAssoc(Ljava/lang/Object;)Ljava/lang/Object; at akka.http.scaladsl.server.directives.LoggingMagnet$.forRequestResponseFromMarker(DebuggingDirectives.scala:69) at Service$class.$init$(AkkaHttpMicroservice.scala:81) at AkkaHttpMicroservice$.<init>(AkkaHttpMicroservice.scala:107) at AkkaHttpMicroservice$.<clinit>(AkkaHttpMicroservice.scala) at AkkaHttpMicroservice.main(AkkaHttpMicroservice.scala)
When executiong the same code localy, this problem does not exist
This problem could be reproduced with:
To work around this problem:
The text was updated successfully, but these errors were encountered: