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

Obligatory example on page #674

Closed
wibisono opened this issue Nov 2, 2018 · 4 comments
Closed

Obligatory example on page #674

wibisono opened this issue Nov 2, 2018 · 4 comments

Comments

@wibisono
Copy link

wibisono commented Nov 2, 2018

I managed to run the first example on docs only after changing request handler line into:

case request @ Get on Root => Callback.successful(request.ok("Hello world!"))

With the callback successful. No big deal but rather bumpy first experience.

@dkarivalis
Copy link
Contributor

hey @wibisono! quickly tested the hello world example and am not seeing the same results:
screen shot 2018-11-02 at 11 01 20 am

which scala / sbt version are you using?

@wibisono
Copy link
Author

wibisono commented Nov 2, 2018

Hi,

Maybe that's the issue, I am using sbt 1.2.6 and scala 2.12.7:
Idea

@dkarivalis
Copy link
Contributor

Hi,

Maybe that's the issue, I am using sbt 1.2.6 and scala 2.12.7:
https://imgur.com/a/P1P7iCY

ahh i believe you may need import colossus.service.Callback.Implicits._ for the implicit conversion. mind giving that a try?

@wibisono
Copy link
Author

wibisono commented Nov 2, 2018

That works :) sorry for the trouble, thanks.

@wibisono wibisono closed this as completed Nov 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants