Skip to content
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

roma86 opened this issue Nov 4, 2015 · 4 comments

Simple hello-world example does not compiled #274

roma86 opened this issue Nov 4, 2015 · 4 comments


Copy link

@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]  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?

Copy link

@cacoco cacoco commented Nov 5, 2015

@roma86 please follow the instructions in the hello-world/

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

Copy link

@roma86 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
$ ls     LICENSE         build.sbt       http            jackson         slf4j       examples        httpclient      project         thrift     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

Copy link

@cacoco 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 The proper command is

 sbt helloWorld/run


Copy link

@roma86 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants