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
Problems running akka-http using Kotlin #1168
Comments
Please show your dependencies section |
Dependecies
|
The scala major version must match for all artifacts (that's the major one released every few years). You said you included |
@ktoso Thanks, however now this error being produced instead:
|
That means that your route has somewhere a part like this: |
I created #1170 to track the |
@jrudolph I don't see how that is the case here, I tried it with the most minimal path and I'm still getting the same error. object App : HttpApp() {
override fun route() : Route = route(
path("/hello", { get { complete("Hello from Akka HTTP!") } })
)
}
fun main(args: Array<String>) {
App.startServer("0.0.0.0", 8080)
} |
maybe some name clashing with both |
@OverlyExcessive interesting maybe it's some kotlin incompatibility? Can you post a complete example somewhere including all instructions how to build? E.g. maven would be great. Let's use this ticket to fix that problem. |
That's indeed quite confusing, luckily in 10.0.7 we've renamed After this change mvn still complains about the |
@raboof Yep that seems to have fixed it. Thanks! |
Thanks for checking, @raboof, I didn't see that |
Attempting to write tests using Maven is yielding the following error:
Minimal code to reproduce is as follows:
I have added both
scalatest_2.12
andjunit
as test dependencies. Runningmvn clean
does not seem to have have helped.The text was updated successfully, but these errors were encountered: