lihaoyi / workbench-example-app

An example application written in ScalaJS using scala-js-dom and scala-js-workbench
204 stars 109 forks source link

Not able to start autowire example #17

Closed sebnozzi closed 10 years ago

sebnozzi commented 10 years ago

I'm not able to start the example as instructed in the README:

> sen@host:~/temp/workbench-example-app$ sbt ~re-start
Loading /usr/share/sbt/bin/sbt-launch-lib.bash
[info] Loading global plugins from /home/sen/.sbt/0.13/plugins
[info] Loading project definition from /home/sen/temp/workbench-example-app/project
[info] Set current project to Example (in build file:/home/sen/temp/workbench-example-app/)
[INFO] [09/09/2014 15:33:31.399] [SystemLol-akka.actor.default-dispatcher-4] [akka://SystemLol/user/IO-HTTP/listener-0] Bound to localhost/127.0.0.1:12345
[error] Not a valid command: re-start
[error] Not a valid project ID: re-start
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: re-start (similar: state, startYear, cross-target)
[error] re-start
[error]         ^
1. Waiting for source changes... (press enter to interrupt)
lihaoyi commented 10 years ago

Try

server/re-start

? I'm assuming this is for the autowire example

sebnozzi commented 10 years ago

I'm assuming this is for the autowire example

Yes, acutally this is what got me confused. Did not realize it was a specific branch of your project :-D

Changed the name of the issue accordingly.

So, I switched to that branch by:

git checkout -t origin/autowire

But upon doing:

server/re-start

the SBT complains about a dependency not found:

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.jsawn#jawn-parser_2.11;0.5.4: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] (server/*:update) sbt.ResolveException: unresolved dependency: org.jsawn#jawn-parser_2.11;0.5.4: not found

Any ideas?

lihaoyi commented 10 years ago

Could you try adding this to your SBT?


resolvers += "bintray/non" at "http://dl.bintray.com/non/maven"

On Tue, Sep 9, 2014 at 11:53 PM, Sebastian Nozzi notifications@github.com wrote:

I'm assuming this is for the autowire example

Yes, acutally this is what got me confused. Did not realize it was a specific branch of your project.

So, I switched to that branch by:

git checkout -t origin/autowire

But upon doing:

server/re-start

the SBT complains about a dependency not found:

[warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: UNRESOLVED DEPENDENCIES :: [warn] :::::::::::::::::::::::::::::::::::::::::::::: [warn] :: org.jsawn#jawn-parser_2.11;0.5.4: not found [warn] :::::::::::::::::::::::::::::::::::::::::::::: error sbt.ResolveException: unresolved dependency: org.jsawn#jawn-parser_2.11;0.5.4: not found

Any ideas?

— Reply to this email directly or view it on GitHub https://github.com/lihaoyi/workbench-example-app/issues/17#issuecomment-54991285 .

sebnozzi commented 10 years ago

I put it in my ~/.sbt/0.13/resolvers.sbt file and it worked. Thanks! :-)

Maybe put this instruction in the README...?

Or, as I see from #8, you are aiming for another solution...?

lihaoyi commented 10 years ago

Yeah, hopefully @non will publish to central and people can stop adding the stupid resolver everywhere =D

On Wed, Sep 10, 2014 at 4:45 PM, Sebastian Nozzi notifications@github.com wrote:

I put it in my ~/.sbt/0.13/resolvers.sbt file and it worked. Thanks! :-)

Maybe put this instruction in the README...?

Or, as I see from #8 https://github.com/lihaoyi/workbench-example-app/issues/8, you are aiming for another solution...?

— Reply to this email directly or view it on GitHub https://github.com/lihaoyi/workbench-example-app/issues/17#issuecomment-55086998 .