New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple hello-world example does not compiled #274

Closed
roma86 opened this Issue Nov 4, 2015 · 4 comments

Comments

2 participants
@roma86

roma86 commented Nov 4, 2015

Just download repo

cd /Downloads/fintra/examples
cp hello-world /hello-world
cd /hello-world
$ sbt clean
[info] Loading project definition from /hello-world/project
[info] Set current project to hello-world (in build file:/hello-world/)
[success] Total time: 0 s, completed Nov 4, 2015 11:51:38 PM
$ sbt test
[info] Loading project definition from /Downloads/hello-world/project
[info] Set current project to hello-world (in build file:/Downloads/hello-world/)
[info] Updating {file:/Downloads/hello-world/}hello-world...
[info] Resolving com.twitter.finatra#finatra-http_2.11;2.1.2-SNAPSHOT ...
[warn]  module not found: com.twitter.finatra#finatra-http_2.11;2.1.2-SNAPSHOT
[warn] ==== local: tried
...
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: com.twitter.finatra#finatra-http_2.11;2.1.2-SNAPSHOT: not found
[warn]  :: com.twitter.finatra#finatra-httpclient_2.11;2.1.2-SNAPSHOT: not found
[warn]  :: com.twitter.finatra#finatra-slf4j_2.11;2.1.2-SNAPSHOT: not found
[warn]  :: com.twitter.inject#inject-core_2.11;2.1.2-SNAPSHOT: not found
[warn]  :: com.twitter.finatra#finatra-jackson_2.11;2.1.2-SNAPSHOT: not found
[warn]  :: com.twitter.inject#inject-app_2.11;2.1.2-SNAPSHOT: not found
[warn]  :: com.twitter.inject#inject-modules_2.11;2.1.2-SNAPSHOT: not found
[warn]  :: com.twitter.inject#inject-server_2.11;2.1.2-SNAPSHOT: not found
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn]  Note: Unresolved dependencies path:
[warn]      com.twitter.inject:inject-core_2.11:2.1.2-SNAPSHOT (/Downloads/hello-world/build.sbt#L22-39)
[warn]        +- com.twitter.finatra.example:hello-world_2.11:2.1.2-SNAPSHOT
[warn]      com.twitter.inject:inject-app_2.11:2.1.2-SNAPSHOT (/Downloads/hello-world/build.sbt#L22-39)
[warn]        +- com.twitter.finatra.example:hello-world_2.11:2.1.2-SNAPSHOT
[warn]      com.twitter.inject:inject-modules_2.11:2.1.2-SNAPSHOT (/Downloads/hello-world/build.sbt#L22-39)
[warn]        +- com.twitter.finatra.example:hello-world_2.11:2.1.2-SNAPSHOT
[warn]      com.twitter.finatra:finatra-http_2.11:2.1.2-SNAPSHOT (/Downloads/hello-world/build.sbt#L22-39)
[warn]        +- com.twitter.finatra.example:hello-world_2.11:2.1.2-SNAPSHOT
[warn]      com.twitter.inject:inject-server_2.11:2.1.2-SNAPSHOT (/Downloads/hello-world/build.sbt#L22-39)
[warn]        +- com.twitter.finatra.example:hello-world_2.11:2.1.2-SNAPSHOT
[warn]      com.twitter.finatra:finatra-httpclient_2.11:2.1.2-SNAPSHOT (/Downloads/hello-world/build.sbt#L22-39)
[warn]        +- com.twitter.finatra.example:hello-world_2.11:2.1.2-SNAPSHOT
[warn]      com.twitter.finatra:finatra-slf4j_2.11:2.1.2-SNAPSHOT (/Downloads/hello-world/build.sbt#L22-39)
[warn]        +- com.twitter.finatra.example:hello-world_2.11:2.1.2-SNAPSHOT
[warn]      com.twitter.finatra:finatra-jackson_2.11:2.1.2-SNAPSHOT (/Downloads/hello-world/build.sbt#L22-39)
[warn]        +- com.twitter.finatra.example:hello-world_2.11:2.1.2-SNAPSHOT
sbt.ResolveException: unresolved dependency: com.twitter.finatra#finatra-http_2.11;2.1.2-SNAPSHOT: not found
unresolved dependency: com.twitter.finatra#finatra-httpclient_2.11;2.1.2-SNAPSHOT: not found
unresolved dependency: com.twitter.finatra#finatra-slf4j_2.11;2.1.2-SNAPSHOT: not found
unresolved dependency: com.twitter.inject#inject-core_2.11;2.1.2-SNAPSHOT: not found
unresolved dependency: com.twitter.finatra#finatra-jackson_2.11;2.1.2-SNAPSHOT: not found
unresolved dependency: com.twitter.inject#inject-app_2.11;2.1.2-SNAPSHOT: not found
unresolved dependency: com.twitter.inject#inject-modules_2.11;2.1.2-SNAPSHOT: not found
unresolved dependency: com.twitter.inject#inject-server_2.11;2.1.2-SNAPSHOT: not found

This is so frustrating – simple example that should provide instructions how to start work with framework does not work.
As newcomer in scala and sbt i do not know all hangs, but i want rely on the examples of experts and learn from their examples. And what i found? Code that can not be run, outdated instructions and tons of reasons do not use this project. Why you do this? You do not want to use this product newcomers?

@cacoco

This comment has been minimized.

Member

cacoco commented Nov 5, 2015

@roma86 please follow the instructions in the hello-world/README.md.

Let us know if that doesn't work. Thanks!

@roma86

This comment has been minimized.

roma86 commented Nov 5, 2015

@cacoco thank you for answer. I'm new, but not stupid. I've already tried these instructions.

$ cd /Downloads/finatra-master
$ pwd
/Downloads/finatra-master
$ ls
ADOPTERS.md     LICENSE         build.sbt       http            jackson         slf4j
CHANGELOG.md        README.md       examples        httpclient      project         thrift
CONTRIBUTING.md     benchmarks      finatra_logo.png    inject          sbt         utils
$ sbt examples/hello-world/run
[info] Loading project definition from /Downloads/finatra-master/project
[info] Updating {file:/Downloads/finatra-master/project/}finatra-master-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to root (in build file:/Downloads/finatra-master/)
[error] Expected ID character
[error] Not a valid command: examples (similar: eval)
[error] Expected project ID
[error] Expected configuration
[error] Expected ':' (if selecting a configuration)
[error] Expected key
[error] Not a valid key: examples (similar: compilers, name, extra-loggers)
[error] examples/hello-world/run
[error]         ^
$ sbt sbtVersion
[info] 0.13.8
$ scala
Welcome to Scala version 2.11.7 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_20).

Instructions under

Run sbt from this project's directory

generate result same my first message

@cacoco

This comment has been minimized.

Member

cacoco commented Nov 5, 2015

@roma86 firstly, are you on master or in a release tag?

Secondly, it does not look like you're actually running what's in the instructions. You have to run the sbt command with the project ID not the directory name (which is stated in the README.md). The proper command is

 sbt helloWorld/run

Thanks!

@roma86

This comment has been minimized.

roma86 commented Nov 5, 2015

that's mean i am firstly stupid. thank you.

@roma86 roma86 closed this Nov 5, 2015

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