librelist archives

« back to archive

sbt error

sbt error

From:
Sean Jensen-Grey
Date:
2014-06-16 @ 20:56
I am brand new to scala, like minutes and am having a problem with the 
README @ https://github.com/chrisdinn/brando

sbt is giving me errors with the example build config.

$scala 
Welcome to Scala version 2.11.1 (Java HotSpot(TM) 64-Bit Server VM, Java 
1.7.0_55).
Type in expressions to have them evaluated.
Type :help for more informatkion.

$sbt --version
sbt launcher version 0.13.5

When I have an build.sbt file containing

resolvers += "http://chrisdinn.github.io/releases/"

libraryDependencies += "com.digital-achiever" %% "brando" % "1.0.2"

and when I launch sbt ...

$sbt
/Users/sitka/w/playground/learning-scala/brando/build.sbt:1: error: No 
implicit for Append.Value[Seq[sbt.Resolver], String] found,
  so String cannot be appended to Seq[sbt.Resolver]
resolvers += "http://chrisdinn.github.io/releases/"
          ^
[error] Type error in expression

Is this just a version thing?

I have read both of these pages

http://www.scala-sbt.org/0.13.2/docs/Examples/Quick-Configuration-Examples.html
http://www.scala-sbt.org/0.13/docs/Resolvers.html

and am still at a loss.

Re: [brando] sbt error

From:
Mark Grey
Date:
2014-06-16 @ 20:58
Try appending in a Seq type and using the "at" operator to apply a resolver
label.  For example:

resolvers ++= Seq(
  "brando" at "http://chrisdinn.github.io/releases/",
  "typesafe" at "http://repo.typesafe.com/typesafe/releases/"
)


On Mon, Jun 16, 2014 at 4:56 PM, Sean Jensen-Grey <seanj@xyke.com> wrote:

> I am brand new to scala, like minutes and am having a problem with the
> README @ https://github.com/chrisdinn/brando
>
> sbt is giving me errors with the example build config.
>
> $scala
> Welcome to Scala version 2.11.1 (Java HotSpot(TM) 64-Bit Server VM, Java
> 1.7.0_55).
> Type in expressions to have them evaluated.
> Type :help for more informatkion.
>
> $sbt --version
> sbt launcher version 0.13.5
>
> When I have an build.sbt file containing
>
> resolvers += "http://chrisdinn.github.io/releases/"
>
> libraryDependencies += "com.digital-achiever" %% "brando" % "1.0.2"
>
> and when I launch sbt ...
>
> $sbt
> /Users/sitka/w/playground/learning-scala/brando/build.sbt:1: error: No
> implicit for Append.Value[S eq[sbt.Resolver], String] found,
>   so String cannot be appended to Seq[sbt.Resolver]
> resolvers += "http://chrisdinn.github.io/releases/"
>           ^
> [error] Type error in expression
>
> Is this just a version thing?
>
> I have read both of these pages
>
>
> http://www.scala-sbt.org/0.13.2/docs/Examples/Quick-Configuration-Examples.html
> http://www.scala-sbt.org/0.13/docs/Resolvers.html
>
> and am still at a loss.
>
>

Re: [brando] sbt error

From:
Sean Jensen-Grey
Date:
2014-06-17 @ 20:55
Excellent, I can now load sbt, update and the console.

# build.sbt

resolvers ++= Seq(
    "brando" at "http://chrisdinn.github.io/releases/"
    , "typesafe" at "http://repo.typesafe.com/typesafe/releases/"
    , "akka" at "http://repo.akka.io/snapshots/"
)

libraryDependencies += "com.digital-achiever" %% "brando" % "1.0.2"

libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.4-SNAPSHOT"

# console

scala> import akka.actor._
import akka.actor._

scala> import brando._
import brando._

scala> val system = ActorSystem("RedisSystem")
system: akka.actor.ActorSystem = akka://RedisSystem

scala> val redis = system.actorOf(Brando("localhost", 6379))
redis: akka.actor.ActorRef = Actor[akka://RedisSystem/user/$a#-247704359]

scala> redis ! Request("PING")

scala> [INFO] [06/17/2014 13:53:16.285] 
[RedisSystem-akka.actor.default-dispatcher-4] 
[akka://RedisSystem/deadLetters] Message [scala.Some] from 
Actor[akka://RedisSystem/user/$a/$a#92965533] to 
Actor[akka://RedisSystem/deadLetters] was not delivered. [1] dead letters 
encountered. This logging can be turned off or adjusted with configuration
settings 'akka.log-dead-letters' and 
'akka.log-dead-letters-during-shutdown'.

I have Redis running on that port…

I am instantiating Akka properly?


On Jun 16, 2014, at 1:58 PM, Mark Grey <mgthesecond@spotify.com> wrote:

> Try appending in a Seq type and using the "at" operator to apply a 
resolver label.  For example:
> 
> resolvers ++= Seq(
>   "brando" at "http://chrisdinn.github.io/releases/",
>   "typesafe" at "http://repo.typesafe.com/typesafe/releases/"
> )
> 
> 
> On Mon, Jun 16, 2014 at 4:56 PM, Sean Jensen-Grey <seanj@xyke.com> wrote:
> I am brand new to scala, like minutes and am having a problem with the 
README @ https://github.com/chrisdinn/brando
> 
> sbt is giving me errors with the example build config.
> 
> $scala 
> Welcome to Scala version 2.11.1 (Java HotSpot(TM) 64-Bit Server VM, Java
1.7.0_55).
> Type in expressions to have them evaluated.
> Type :help for more informatkion.
> 
> $sbt --version
> sbt launcher version 0.13.5
> 
> When I have an build.sbt file containing
> 
> resolvers += "http://chrisdinn.github.io/releases/"
> 
> libraryDependencies += "com.digital-achiever" %% "brando" % "1.0.2"
> 
> and when I launch sbt ...
> 
> $sbt
> /Users/sitka/w/playground/learning-scala/brando/build.sbt:1: error: No 
implicit for Append.Value[S eq[sbt.Resolver], String] found,
>   so String cannot be appended to Seq[sbt.Resolver]
> resolvers += "http://chrisdinn.github.io/releases/"
>           ^
> [error] Type error in expression
> 
> Is this just a version thing?
> 
> I have read both of these pages
> 
> http://www.scala-sbt.org/0.13.2/docs/Examples/Quick-Configuration-Examples.html
> http://www.scala-sbt.org/0.13/docs/Resolvers.html
> 
> and am still at a loss.
> 
> 

Re: [brando] sbt error

From:
Mark Grey
Date:
2014-06-17 @ 21:03
If you're doing this in the console REPL, it might be a little cumbersome
to set up.

Akka actors need a `receive` partial function to match on any messages they
get back (in this case, it would be the PONG using one of the extractor
functions, probably .AsString.)  This is how communication is interchanged
between actor instances.

Here's an example Gaetan brewed together for me when I was first getting
started:

https://gist.github.com/gramk/10289838

On Tue, Jun 17, 2014 at 4:55 PM, Sean Jensen-Grey <seanj@xyke.com> wrote:

> Excellent, I can now load sbt, update and the console.
>
> # build.sbt
>
> resolvers ++= Seq(
>     "brando" at "http://chrisdinn.github.io/releases/"
>     , "typesafe" at "http://repo.typesafe.com/typesafe/releases/"
>     , "akka" at "http://repo.akka.io/snapshots/"
> )
>
> libraryDependencies += "com.digital-achiever" %% "brando" % "1.0.2"
>
> libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.4-SNAPSHOT"
>
> # console
>
> scala> import akka.actor._
> import akka.actor._
>
> scala> import brando._
> import brando._
>
> scala> val system = ActorSystem("RedisSystem")
> system: akka.actor.ActorSystem = akka://RedisSystem
>
> scala> val redis = system.actorOf(Brando(" localhost", 6379))
> redis: akka.actor.ActorRef = Actor[akka://RedisSystem/user/$a#-247704359]
>
> scala> redis ! Request("PING")
>
> scala> [INFO] [06/17/2014 13:53:16.285]
> [RedisSystem-akka.actor.default-dispatcher-4] [akka://RedisSystem/deadLetters]
> Message [scala.Some] from Actor[akka://RedisSystem/user/$a/$a#92965533] to
> Actor[akka://RedisSystem/deadLetters] was not delivered. [1] dead letters
> enc ountered. This logging can be turned off or adjusted with configuration
> settings 'akka.log-dead-letters' and
> 'akka.log-dead-letters-during-shutdown'.
>
> I have Redis running on that port…
>
> I am instantiating Akka properly?
>
>
> On Jun 16, 2014, at 1:58 PM, Mark Grey <mgthesecond@spotify.com> wrote:
>
> Try appending in a Seq type and using the "at" operator to apply a
> resolver label.  For example:
>
> resolvers ++= Seq(
>   "brando" at "http://chrisdinn.github.io/releases/",
>   "typesafe" at "http://repo.typesafe.com/typesafe/releases/"
> )
>
>
> On Mon, Jun 16, 2014 at 4:56 PM, Sean Jensen-Grey <seanj@xyke.com> wrote:
>
>> I am brand new to scala, like minutes and am having a problem with the
>> README @ https://github.com/chrisdinn/brando
>>
>> sbt is giving me errors with the example build config.
>>
>> $scala
>> Welcome to Scala version 2.11.1 (Java HotSpot(TM) 64-Bit Server VM, Java
>> 1.7.0_55).
>> Type in expressions to have them evaluated.
>> Type :help for more informatkion.
>>
>> $sbt --version
>> sbt launcher version 0.13.5
>>
>> When I have an build.sbt file containing
>>
>> resolvers += "http://chrisdinn.github.io/releases/"
>>
>> libraryDependencies += "com.digital-achiever" %% "brando" % "1.0.2"
>>
>> and when I launch sbt ...
>>
>> $sbt
>> /Users/sitka/w/playground/learning-scala/brando/build.sbt:1: error: No
>> implicit for Append.Value[S eq[sbt.Resolver], String] found,
>>   so String cannot be appended to Seq[sbt.Resolver]
>> resolvers += "http://chrisdinn.github.io/releases/"
>>           ^
>> [error] Type error in expression
>>
>> Is this just a version thing?
>>
>> I have read both of these pages
>>
>>
>> http://www.scala-sbt.org/0.13.2/docs/Examples/Quick-Configuration-Examples.html
>>  http://www.scala-sbt.org/0.13/docs/Resolvers.html
>>
>> and am still at a loss.
>>
>>
>
>