Strange output of the Scala compiler in Spray project -


i have mixed scala/java maven project uses spray. compile maven , scala-maven-plugin. i'm using scala 2.10.4. maven outputs lot of meaningless information shapeless, dependency of spray:

[info] compiling 25 scala sources , 841 java sources /home/david/myproject/web- inf/classes... nothing <: spray.routing.directive1[spray.http.uri]? true spray.routing.directive1[spray.http.uri] <: shapeless.hlist? false spray.routing.directive1[spray.http.uri] <: l? false nothing <: spray.routing.directive1[spray.http.uri]? true spray.routing.directive1[spray.http.uri] <: shapeless.hlist? false spray.routing.directive1[spray.http.uri] <: l? false unit <: spray.httpx.marshalling.marshaller[(spray.http.statuscodes.servererror, string)]? false unit <: akka.event.loggingadapter? false nothing <: spray.routing.directive0? true spray.routing.directive0 <: shapeless.hlist? false spray.routing.directive0 <: l? false nothing <: spray.routing.directive0? true spray.routing.directive0 <: shapeless.hlist? false spray.routing.directive0 <: l? false nothing <: spray.routing.directive1[java.util.locale]? true spray.routing.directive1[java.util.locale] <: shapeless.hlist? false spray.routing.directive1[java.util.locale] <: l? false nothing <: spray.routing.directive1[java.util.locale]? true spray.routing.directive1[java.util.locale] <: shapeless.hlist? false spray.routing.directive1[java.util.locale] <: l? false nothing <: spray.routing.directive[shapeless.hnil]? true spray.routing.directive[shapeless.hnil] <: shapeless.hlist? false spray.routing.directive[shapeless.hnil] <: l? false nothing <: spray.routing.directive[shapeless.hnil]? true spray.routing.directive[shapeless.hnil] <: shapeless.hlist? false spray.routing.directive[shapeless.hnil] <: l? false nothing <: spray.routing.directive[shapeless.hnil]? true spray.routing.directive[shapeless.hnil] <: shapeless.hlist? false spray.routing.directive[shapeless.hnil] <: l? false nothing <: spray.routing.directive[shapeless.hnil]? true spray.routing.directive[shapeless.hnil] <: shapeless.hlist? false spray.routing.directive[shapeless.hnil] <: l? false nothing <: spray.routing.directive[shapeless.::[fcc.vision.rest.usuario,shapeless.hnil]]? true spray.routing.directive[shapeless.::[fcc.vision.rest.usuario,shapeless.hnil]] <: shapeless.hlist? ... 

this generates lot of noise, , provides no meaning me.

what purpose of messages?

they internal debug output of scala compiler.

can removed?.

update:

here excerpt of pom:

<dependencies>     <dependency>         <groupid>io.spray</groupid>         <artifactid>spray-servlet</artifactid>         <version>1.3.1</version>     </dependency>     <dependency>         <groupid>io.spray</groupid>         <artifactid>spray-routing</artifactid>         <version>1.3.1</version>     </dependency>     <dependency>         <groupid>org.json4s</groupid>         <artifactid>json4s-native_${scala.mayor}</artifactid>         <version>3.2.9</version>     </dependency>     <dependency>         <groupid>org.scala-lang</groupid>         <artifactid>scalap</artifactid>         <version>${scala.mayor}.${scala.menor}</version>     </dependency>     <dependency>         <groupid>com.typesafe.akka</groupid>         <artifactid>akka-actor_${scala.mayor}</artifactid>         <version>2.3.0</version>     </dependency>     <dependency>         <groupid>org.scala-lang</groupid>         <artifactid>scala-library</artifactid>         <version>${scala.mayor}.${scala.menor}</version>     </dependency> </dependencies> <properties>     <maven.compiler.source>1.7</maven.compiler.source>     <maven.compiler.target>1.7</maven.compiler.target> <project.build.sourceencoding>utf-8</project.build.sourceencoding>     <scala.mayor>2.10</scala.mayor>     <scala.menor>4</scala.menor> </properties> 

shapeless brought transitive dependency automatically.

this looks have -explaintypes enabled in scala compiler options. open pom.xml , check <plugin><plugins> entry scala-maven-scala. see if in <configuration><args> have <arg>-explaintypes</arg>. these messages can aid in cleaning type errors in code find them annoying keep them on time, remove <arg>-explaintypes</arg> , should go away (check other team members if put there reason).


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -