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

Launching "compile" in the Caliban client example project makes sbt exit #1240

Closed
pmeheut opened this issue Jan 6, 2022 · 2 comments
Closed

Comments

@pmeheut
Copy link
Contributor

pmeheut commented Jan 6, 2022

I have been able to reproduce it in another, very simple project. In your example, it goes like this:

compile
[info] ctCalibanClient - Starting to generate...
[info] compiling 5 Scala sources to /Users/pascal/eclipse/workspace/poc_compile_time_caliban_client_generation/modules/posts/target/scala-2.13/classes ...
[info] compiling 3 Scala sources to /Users/pascal/eclipse/workspace/poc_compile_time_caliban_client_generation/modules/potatoes/target/scala-2.13/classes ...
[info] done compiling
[info] done compiling
[warn] multiple main classes detected: run 'show discoveredMainClasses' to see the list
[info] compiling 1 Scala source to /Users/pascal/eclipse/workspace/poc_compile_time_caliban_client_generation/modules/app/target/scala-2.13/classes ...
[info] running caliban.generator.CalibanClientGenerator_0 /Users/pascal/eclipse/workspace/poc_compile_time_caliban_client_generation/modules/caliban-clients
[info] running caliban.generator.CalibanClientGenerator_1 /Users/pascal/eclipse/workspace/poc_compile_time_caliban_client_generation/modules/caliban-clients
[info] running caliban.generator.CalibanClientGenerator_2 /Users/pascal/eclipse/workspace/poc_compile_time_caliban_client_generation/modules/caliban-clients
[info] running caliban.generator.CalibanClientGenerator_0 /Users/pascal/eclipse/workspace/poc_compile_time_caliban_client_generation/modules/caliban-clients
[info] done compiling
parsed config (v3.3.1): .scalafmt.conf
parsed config (v3.3.1): .scalafmt.conf
parsed config (v3.3.1): .scalafmt.conf
parsed config (v3.3.1): .scalafmt.conf

Process finished with exit code 0
@ghostdogpr
Copy link
Owner

ghostdogpr commented Jan 6, 2022

This is a problem with sbt 1.6.x, I fixed it in #1236 and will release soon. In the meantime, you can use sbt 1.5.x or use the latest caliban snapshot.

@pmeheut
Copy link
Contributor Author

pmeheut commented Jan 6, 2022

Thanks

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