Skip to content

Instantly share code, notes, and snippets.

@gkossakowski
Created April 9, 2014 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gkossakowski/10277880 to your computer and use it in GitHub Desktop.
Save gkossakowski/10277880 to your computer and use it in GitHub Desktop.
Spray compilation errors with compiled with Scala 2.11 and shapeless 1.2.4
[info] ----------------------
[info] Processing subproject: spray-routing
[info] All Dependencies for subproject spray-routing:
[info] org.scala-lang:scala-compiler:2.11.0-dbuildx7e11954059424344551f607665953d6f57e4ce29:scala-tool->default,optional(default)
[info] org.scala-lang:scala-library:2.11.0-dbuildx7e11954059424344551f607665953d6f57e4ce29:scala-tool->default,optional(default)
[info] io.spray:spray-caching:1.3.1:provided
[info] io.spray:spray-can:1.3.1:provided
[info] io.spray:spray-http:1.3.1
[info] io.spray:spray-httpx:1.3.1
[info] io.spray:spray-util:1.3.1
[info] org.scala-lang:scala-library:2.11.0-dbuildx7e11954059424344551f607665953d6f57e4ce29
[info] com.chuusai:shapeless:1.2.4-dbuildx658c89102c2bb3b859f8ac79540e35e497310648:compile
[info] com.typesafe.akka:akka-osgi:2.4-dbuildx500315000628baa4ffdfe08d1a4831614b3227a2:provided
[info] Running build: spray-routing
[info] [info] Generating 'ApplyConverterInstances.scala'
[info] [info] Formatting 49 Scala sources {file:/Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/}spray-routing(compile) ...
[info] [info] Wrote /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/target/spray-routing-1.3.1-dbuildx3df7141a47c11ddbce7ae40286d76b11149a631f.pom
[info] [info] Generating 'HListDeserializerInstances.scala'
[info] [info] Packaging /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/target/spray-routing-1.3.1-dbuildx3df7141a47c11ddbce7ae40286d76b11149a631f-sources.jar ...
[info] [info] Main Scala API documentation to /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/target/api...
[info] [info] Done packaging.
[info] [info] Compiling 51 Scala sources to /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/target/classes...
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/ExceptionHandler.scala:40: could not find implicit value for parameter marshaller: spray.httpx.marshalling.ToResponseMarshaller[(spray.http.StatusCodes.ClientError, String)]
[info] [error] ctx.complete(e.status, e.info.format(settings.verboseErrorMessages))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/ExceptionHandler.scala:40: could not find implicit value for parameter marshaller: spray.httpx.marshalling.ToResponseMarshaller[(spray.http.StatusCodes.ClientError, String)]
[info] [error] ctx.complete(e.status, e.info.format(settings.verboseErrorMessages))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:37: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] case Nil ? complete(NotFound, "The requested resource could not be found.")
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:47: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(Forbidden, "The supplied authentication is not authorized to access this resource")
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:50: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "The requests encoding is corrupt:\n" + msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:53: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "The form field '" + name + "' was malformed:\n" + msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:56: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, s"The value of HTTP header '$headerName' was malformed:\n" + msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:59: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "The query parameter '" + name + "' was malformed:\n" + msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:62: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "The request content was malformed:\n" + msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:66: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(MethodNotAllowed, List(Allow(methods: _*)), "HTTP method not allowed, supported methods: " + methods.mkString(", "))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:70: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "Uri scheme not allowed, supported schemes: " + schemes.mkString(", "))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:73: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "Request is missing required cookie '" + cookieName + '\'')
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:76: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "Request is missing required form field '" + fieldName + '\'')
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:79: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "Request is missing required HTTP header '" + headerName + '\'')
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:82: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(NotFound, "Request is missing required query parameter '" + paramName + '\'')
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:85: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "Request entity expected but not supplied")
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:88: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(RequestedRangeNotSatisfiable, "Request contains too many ranges.")
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:91: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(RequestedRangeNotSatisfiable, List(`Content-Range`(ContentRange.Unsatisfiable(actualEntityLength))),
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:99: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(NotAcceptable, "Resource representation is only available with these Content-Types:\n" + supported.map(_.value).mkString("\n"))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:103: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(NotAcceptable, "Resource representation is only available with these Content-Encodings:\n" + supported.map(_.value).mkString("\n"))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:107: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(UnsupportedMediaType, "There was a problem with the requests Content-Type:\n" + supported.mkString(" or "))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:111: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "The requests Content-Encoding must be one the following:\n" + supported.map(_.value).mkString("\n"))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:114: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/HttpService.scala:80: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] def timeoutRoute: Route = complete(
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:37: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] case Nil ? complete(NotFound, "The requested resource could not be found.")
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:47: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(Forbidden, "The supplied authentication is not authorized to access this resource")
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:50: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "The requests encoding is corrupt:\n" + msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:53: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "The form field '" + name + "' was malformed:\n" + msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:56: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, s"The value of HTTP header '$headerName' was malformed:\n" + msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:59: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "The query parameter '" + name + "' was malformed:\n" + msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:62: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "The request content was malformed:\n" + msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:66: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(MethodNotAllowed, List(Allow(methods: _*)), "HTTP method not allowed, supported methods: " + methods.mkString(", "))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:70: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "Uri scheme not allowed, supported schemes: " + schemes.mkString(", "))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:73: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "Request is missing required cookie '" + cookieName + '\'')
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:76: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "Request is missing required form field '" + fieldName + '\'')
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:79: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "Request is missing required HTTP header '" + headerName + '\'')
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:82: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(NotFound, "Request is missing required query parameter '" + paramName + '\'')
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:85: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "Request entity expected but not supplied")
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:88: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(RequestedRangeNotSatisfiable, "Request contains too many ranges.")
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:91: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(RequestedRangeNotSatisfiable, List(`Content-Range`(ContentRange.Unsatisfiable(actualEntityLength))),
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:99: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(NotAcceptable, "Resource representation is only available with these Content-Types:\n" + supported.map(_.value).mkString("\n"))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:103: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(NotAcceptable, "Resource representation is only available with these Content-Encodings:\n" + supported.map(_.value).mkString("\n"))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:107: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(UnsupportedMediaType, "There was a problem with the requests Content-Type:\n" + supported.mkString(" or "))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:111: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, "The requests Content-Encoding must be one the following:\n" + supported.map(_.value).mkString("\n"))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/RejectionHandler.scala:114: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] complete(BadRequest, msg)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/HttpService.scala:80: too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1
[info] [error] def timeoutRoute: Route = complete(
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/SimpleRoutingApp.scala:58: could not find implicit value for parameter rh: spray.routing.RejectionHandler
[info] [error] runRoute(route)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/SimpleRoutingApp.scala:58: could not find implicit value for parameter rh: spray.routing.RejectionHandler
[info] [error] runRoute(route)
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/directives/ChunkingDirectives.scala:37: type mismatch;
[info] [error] found : spray.httpx.marshalling.ToResponseMarshaller[spray.http.HttpData]
[info] [error] required: spray.httpx.marshalling.ToResponseMarshaller[Stream[spray.http.HttpData]]
[info] [error] ctx.complete(chunkStream(data))(ToResponseMarshaller.fromMarshaller(status, headers))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/directives/ChunkingDirectives.scala:37: type mismatch;
[info] [error] found : spray.httpx.marshalling.ToResponseMarshaller[spray.http.HttpData]
[info] [error] required: spray.httpx.marshalling.ToResponseMarshaller[Stream[spray.http.HttpData]]
[info] [error] ctx.complete(chunkStream(data))(ToResponseMarshaller.fromMarshaller(status, headers))
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/directives/FileAndResourceDirectives.scala:71: not enough arguments for method withRangeSupport: (m: spray.routing.directives.RangeDirectives.WithRangeSupportMagnet)spray.routing.Directive0.
[info] [error] Unspecified value parameter m.
[info] [error] withRangeSupport() {
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/directives/FileAndResourceDirectives.scala:133: not enough arguments for method withRangeSupport: (m: spray.routing.directives.RangeDirectives.WithRangeSupportMagnet)spray.routing.Directive0.
[info] [error] Unspecified value parameter m.
[info] [error] withRangeSupport() {
[info] [error] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/directives/FileAndResourceDirectives.scala:71: not enough arguments for method withRangeSupport: (m: spray.routing.directives.RangeDirectives.WithRangeSupportMagnet)spray.routing.Directive0.
[info] [error] Unspecified value parameter m.
[info] [error] withRangeSupport() {
[info] [error] ^
[info] [warn] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/directives/FileAndResourceDirectives.scala:175: Adaptation of argument list by inserting () has been deprecated: this is unlikely to be what you want.
[info] [warn] signature: ExecutionDirectives.detach(dm: spray.routing.directives.DetachMagnet): spray.routing.Directive0
[info] [warn] given arguments: <none>
[info] [warn] after adaptation: ExecutionDirectives.detach((): Unit)
[info] [warn] (get & detach()) {
[info] [warn] ^
[info] [error] /Users/grek/scala/community-builds/target-0.8.1/project-builds/spray-3df7141a47c11ddbce7ae40286d76b11149a631f/spray-routing/src/main/scala/spray/routing/directives/FileAndResourceDirectives.scala:133: not enough arguments for method withRangeSupport: (m: spray.routing.directives.RangeDirectives.WithRangeSupportMagnet)spray.routing.Directive0.
[info] [error] Unspecified value parameter m.
[info] [error] withRangeSupport() {
[info] [error] ^
@EdgeCaseBerg
Copy link

For

too many arguments for method apply: (v1: => spray.httpx.marshalling.ToResponseMarshallable)spray.routing.StandardRoute in trait Function1

you need to make sure to import spray.http._

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment