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

Partial union type query #446 #790

Conversation

anotherhale
Copy link

#446
This is a work in progress. I originally worked on this last July and so I had to resolve merge conflicts. Everything compiles but when I tried to run the scripted test it fails with the following;
snipppet from console output:

[info] [info] compiling 3 Scala sources to /tmp/sbt_a58f20c8/target/scala-2.12/classes ...
[info] [error] /tmp/sbt_a58f20c8/src/main/scala/Client.scala:138:7: overriding method wait in class Object of type ()Unit;
[info] [error]  value wait cannot override final member
[info] [error]       wait: String
[info] [error]       ^
[info] [error] one error found

Full output

sbt scripted
[info] welcome to sbt 1.4.7 (Red Hat, Inc. Java 1.8.0_275)
[info] loading global plugins from /home/ahale/.sbt/1.0/plugins
[info] loading settings for project caliban-build from plugins.sbt ...
[info] loading project definition from /home/ahale/dev/github/caliban/project
[info] loading settings for project root from build.sbt ...
[info] resolving key references (15165 settings) ...
[info]    ____      _ _ _                 
[info]   / ___|__ _| (_) |__   __ _ _ __  
[info]  | |   / _` | | | '_ \ / _` | '_ \ 
[info]  | |__| (_| | | | |_) | (_| | | | |
[info]   \____\__,_|_|_|_.__/ \__,_|_| |_|  0.9.5+13-593726f0+20210303-0857-SNAPSHOT
[info] 
[info] Useful sbt tasks:
[info] > ~compile - Compile all modules with file-watch enabled
[info] > test - Run the unit test suite
[info] > fmt - Run scalafmt on the entire project
[info] > scripted - Run the scripted test suite
[info] > examples/runMain caliban.http4s.ExampleApp - Start the example server (http4s based)
[info] > examples/runMain caliban.akkahttp.ExampleApp - Start the example server (akka-http based)
[info] > benchmarks/jmh:run - Run the benchmarks
[info] > +publishLocal - Publish caliban locally
[info] Wrote /home/ahale/dev/github/caliban/core/target/scala-2.12/caliban_2.12-0.9.5+13-593726f0+20210303-0857-SNAPSHOT.pom
[info] Wrote /home/ahale/dev/github/caliban/client/.jvm/target/scala-2.12/caliban-client_2.12-0.9.5+13-593726f0+20210303-0857-SNAPSHOT.pom
[info] Wrote /home/ahale/dev/github/caliban/tools/target/scala-2.12/caliban-tools_2.12-0.9.5+13-593726f0+20210303-0857-SNAPSHOT.pom
[info] Wrote /home/ahale/dev/github/caliban/macros/target/scala-2.12/caliban-macros_2.12-0.9.5+13-593726f0+20210303-0857-SNAPSHOT.pom
[info] Wrote /home/ahale/dev/github/caliban/codegen-sbt/target/scala-2.12/sbt-1.0/caliban-codegen-sbt-0.9.5+13-593726f0+20210303-0857-SNAPSHOT.pom
[info] Main Scala API documentation to /home/ahale/dev/github/caliban/macros/target/scala-2.12/api...
[info] Main Scala API documentation to /home/ahale/dev/github/caliban/client/.jvm/target/scala-2.12/api...
[info] Main Scala API documentation to /home/ahale/dev/github/caliban/core/target/scala-2.12/api...
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Main Scala API documentation to /home/ahale/dev/github/caliban/tools/target/scala-2.12/api...
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Main Scala API documentation to /home/ahale/dev/github/caliban/codegen-sbt/target/scala-2.12/sbt-1.0/api...
model contains 5 documentable templates
model contains 6 documentable templates
[info] Main Scala API documentation successful.
[info] :: delivering :: com.github.ghostdogpr#caliban-macros_2.12;0.9.5+13-593726f0+20210303-0857-SNAPSHOT :: 0.9.5+13-593726f0+20210303-0857-SNAPSHOT :: integration :: Wed Mar 03 08:58:02 EST 2021
[info]  delivering ivy file to /home/ahale/dev/github/caliban/macros/target/scala-2.12/ivy-0.9.5+13-593726f0+20210303-0857-SNAPSHOT.xml
[info]  published caliban-macros_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-macros_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/poms/caliban-macros_2.12.pom
[info]  published caliban-macros_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-macros_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/jars/caliban-macros_2.12.jar
[info]  published caliban-macros_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-macros_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/srcs/caliban-macros_2.12-sources.jar
[info]  published caliban-macros_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-macros_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/docs/caliban-macros_2.12-javadoc.jar
[info]  published ivy to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-macros_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/ivys/ivy.xml
model contains 92 documentable templates
[info] Main Scala API documentation successful.
[info] :: delivering :: com.github.ghostdogpr#caliban-codegen-sbt;0.9.5+13-593726f0+20210303-0857-SNAPSHOT :: 0.9.5+13-593726f0+20210303-0857-SNAPSHOT :: integration :: Wed Mar 03 08:58:03 EST 2021
[info]  delivering ivy file to /home/ahale/dev/github/caliban/codegen-sbt/target/scala-2.12/sbt-1.0/ivy-0.9.5+13-593726f0+20210303-0857-SNAPSHOT.xml
[info]  published caliban-codegen-sbt to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-codegen-sbt/scala_2.12/sbt_1.0/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/poms/caliban-codegen-sbt.pom
[info]  published caliban-codegen-sbt to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-codegen-sbt/scala_2.12/sbt_1.0/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/jars/caliban-codegen-sbt.jar
[info]  published caliban-codegen-sbt to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-codegen-sbt/scala_2.12/sbt_1.0/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/srcs/caliban-codegen-sbt-sources.jar
[info]  published caliban-codegen-sbt to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-codegen-sbt/scala_2.12/sbt_1.0/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/docs/caliban-codegen-sbt-javadoc.jar
[info]  published ivy to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-codegen-sbt/scala_2.12/sbt_1.0/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/ivys/ivy.xml
model contains 64 documentable templates
[info] Main Scala API documentation successful.
[info] :: delivering :: com.github.ghostdogpr#caliban-tools_2.12;0.9.5+13-593726f0+20210303-0857-SNAPSHOT :: 0.9.5+13-593726f0+20210303-0857-SNAPSHOT :: integration :: Wed Mar 03 08:58:07 EST 2021
[info]  delivering ivy file to /home/ahale/dev/github/caliban/tools/target/scala-2.12/ivy-0.9.5+13-593726f0+20210303-0857-SNAPSHOT.xml
[info] Main Scala API documentation successful.
[info]  published caliban-tools_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-tools_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/poms/caliban-tools_2.12.pom
[info]  published caliban-tools_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-tools_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/jars/caliban-tools_2.12.jar
[info]  published caliban-tools_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-tools_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/srcs/caliban-tools_2.12-sources.jar
[info]  published caliban-tools_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-tools_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/docs/caliban-tools_2.12-javadoc.jar
[info]  published ivy to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-tools_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/ivys/ivy.xml
[info] :: delivering :: com.github.ghostdogpr#caliban-client_2.12;0.9.5+13-593726f0+20210303-0857-SNAPSHOT :: 0.9.5+13-593726f0+20210303-0857-SNAPSHOT :: integration :: Wed Mar 03 08:58:08 EST 2021
[info]  delivering ivy file to /home/ahale/dev/github/caliban/client/.jvm/target/scala-2.12/ivy-0.9.5+13-593726f0+20210303-0857-SNAPSHOT.xml
[info]  published caliban-client_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-client_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/poms/caliban-client_2.12.pom
[info]  published caliban-client_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-client_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/jars/caliban-client_2.12.jar
[info]  published caliban-client_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-client_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/srcs/caliban-client_2.12-sources.jar
[info]  published caliban-client_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-client_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/docs/caliban-client_2.12-javadoc.jar
[info]  published ivy to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-client_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/ivys/ivy.xml
model contains 259 documentable templates
[info] Main Scala API documentation successful.
[info] :: delivering :: com.github.ghostdogpr#caliban_2.12;0.9.5+13-593726f0+20210303-0857-SNAPSHOT :: 0.9.5+13-593726f0+20210303-0857-SNAPSHOT :: integration :: Wed Mar 03 08:58:29 EST 2021
[info]  delivering ivy file to /home/ahale/dev/github/caliban/core/target/scala-2.12/ivy-0.9.5+13-593726f0+20210303-0857-SNAPSHOT.xml
[info]  published caliban_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/poms/caliban_2.12.pom
[info]  published caliban_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/jars/caliban_2.12.jar
[info]  published caliban_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/srcs/caliban_2.12-sources.jar
[info]  published caliban_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/docs/caliban_2.12-javadoc.jar
[info]  published ivy to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban_2.12/0.9.5+13-593726f0+20210303-0857-SNAPSHOT/ivys/ivy.xml
[info] Running 2 / 2 (100.00%) scripted tests with RunFromSourceMain
[info] Running codegen/gen-view-test-compile
[error] [info] [launcher] getting org.scala-sbt sbt 1.4.7  (this may take some time)...
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: retrieving :: org.scala-sbt#boot-app
[error]         confs: [default]
[error]         84 artifacts copied, 0 already retrieved
[error] [info] [launcher] getting Scala 2.12.12 (for sbt)...
[error] :: retrieving :: org.scala-sbt#boot-scala
[error]         confs: [default]
[error]         6 artifacts copied, 0 already retrieved
[info] [info] Updated file /tmp/sbt_a58f20c8/project/build.properties: set sbt.version to 1.4.7
[info] [info] welcome to sbt 1.4.7 (Red Hat, Inc. Java 1.8.0_275)
[info] [info] loading settings for project sbt_a58f20c8-build from plugins.sbt ...
[info] [info] loading project definition from /tmp/sbt_a58f20c8/project
[info] [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] [info] compiling 1 Scala source to /tmp/sbt_a58f20c8/project/target/scala-2.12/sbt-1.0/classes ...
[info] [info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.12. Compiling...
[info] [info]   Compilation completed in 9.317s.
[info] [info] done compiling
[info] [info] loading settings for project root from build.sbt ...
[info] [info] set current project to root (in build file:/tmp/sbt_a58f20c8/)
[info] [info] welcome to sbt 1.4.7 (Red Hat, Inc. Java 1.8.0_275)
[info] [info] loading settings for project sbt_a58f20c8-build from plugins.sbt ...
[info] [info] loading project definition from /tmp/sbt_a58f20c8/project
[info] [info] loading settings for project root from build.sbt ...
[info] [info] set current project to root (in build file:/tmp/sbt_a58f20c8/)
[info] Generating code for project/schema.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
CharacterView exists in ./src/main/scala/Client.scala
[info] Generating code for project/schema-to-check-name-uniqueness.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
StarshipView exists in ./src/main/scala/client/ClientNameUniqueness.scala
[info] Generating code for project/gitlab-schema.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
VulnerableProjectsByGradeView exists in ./src/main/scala/client/ClientGitLab.scala
[info] [info] compiling 3 Scala sources to /tmp/sbt_a58f20c8/target/scala-2.12/classes ...
[info] [error] /tmp/sbt_a58f20c8/src/main/scala/Client.scala:138:7: overriding method wait in class Object of type ()Unit;
[info] [error]  value wait cannot override final member
[info] [error]       wait: String
[info] [error]       ^
[info] [error] one error found
[info] [error] (Compile / compileIncremental) Compilation failed
[info] [error] Total time: 19 s, completed Mar 3, 2021 8:59:40 AM
[error] x codegen/gen-view-test-compile 
[error]  Cause of test exception: {line 16}  Command failed: compile failed
[info] Running codegen/test-compile
[error] [info] [launcher] getting org.scala-sbt sbt 1.4.7  (this may take some time)...
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: retrieving :: org.scala-sbt#boot-app
[error]         confs: [default]
[error]         84 artifacts copied, 0 already retrieved
[error] [info] [launcher] getting Scala 2.12.12 (for sbt)...
[error] :: retrieving :: org.scala-sbt#boot-scala
[error]         confs: [default]
[error]         6 artifacts copied, 0 already retrieved
[info] [info] Updated file /tmp/sbt_1abbf140/project/build.properties: set sbt.version to 1.4.7
[info] [info] welcome to sbt 1.4.7 (Red Hat, Inc. Java 1.8.0_275)
[info] [info] loading settings for project sbt_1abbf140-build from plugins.sbt ...
[info] [info] loading project definition from /tmp/sbt_1abbf140/project
[info] [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] [info] compiling 1 Scala source to /tmp/sbt_1abbf140/project/target/scala-2.12/sbt-1.0/classes ...
[info] [info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.12. Compiling...
[info] [info]   Compilation completed in 9.097s.
[info] [info] done compiling
[info] [info] loading settings for project root from build.sbt ...
[info] [info] set current project to root (in build file:/tmp/sbt_1abbf140/)
[info] [info] welcome to sbt 1.4.7 (Red Hat, Inc. Java 1.8.0_275)
[info] [info] loading settings for project sbt_1abbf140-build from plugins.sbt ...
[info] [info] loading project definition from /tmp/sbt_1abbf140/project
[info] [info] loading settings for project root from build.sbt ...
[info] [info] set current project to root (in build file:/tmp/sbt_1abbf140/)
[info] Generating code for project/schema.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
[info] Generating code for project/schema-to-check-name-uniqueness.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
[info] Generating code for project/gitlab-schema.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
[info] [info] compiling 3 Scala sources to /tmp/sbt_1abbf140/target/scala-2.12/classes ...
[info] [error] /tmp/sbt_1abbf140/src/main/scala/Client.scala:82:7: overriding method wait in class Object of type ()Unit;
[info] [error]  value wait cannot override final member
[info] [error]       wait: String
[info] [error]       ^
[info] [error] one error found
[info] [error] (Compile / compileIncremental) Compilation failed
[info] [error] Total time: 13 s, completed Mar 3, 2021 9:00:39 AM
[error] x codegen/test-compile 
[error]  Cause of test exception: {line 14}  Command failed: compile failed
[error] java.lang.RuntimeException: Failed tests:
[error]         codegen/gen-view-test-compile
[error]         codegen/test-compile
[error] 
[error]         at scala.sys.package$.error(package.scala:30)
[error]         at sbt.scriptedtest.ScriptedRunner.reportErrors(ScriptedTests.scala:545)
[error]         at sbt.scriptedtest.ScriptedRunner.runAll(ScriptedTests.scala:548)
[error]         at sbt.scriptedtest.ScriptedRunner.run(ScriptedTests.scala:517)
[error]         at sbt.scriptedtest.ScriptedRunner.run(ScriptedTests.scala:417)
[error]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error]         at java.lang.reflect.Method.invoke(Method.java:498)
[error]         at sbt.ScriptedPlugin$.$anonfun$scriptedTask$3(ScriptedPlugin.scala:204)
[error]         at sbt.ScriptedPlugin$.$anonfun$scriptedTask$3$adapted(ScriptedPlugin.scala:189)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error]         at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error]         at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error]         at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error]         at sbt.Execute.work(Execute.scala:291)
[error]         at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error]         at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error]         at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error]         at java.lang.Thread.run(Thread.java:748)
[error] (codegenSbt / scripted) Failed tests:
[error]         codegen/gen-view-test-compile
[error]         codegen/test-compile
[error] Total time: 167 s (02:47), completed Mar 3, 2021 9:00:40 AM

"""

def safeUnapplyName(name: String): String =
if (reservedKeywords.contains(name) || name.endsWith("_")) s"$name$$"
if (reservedKeywords.contains(name)) s"${name}_"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's a merge issue here, those changes should not be reverted and probably explain the CI error.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting that. I will try to update that and let you know how it goes.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the same issue with:

[info] [error] /tmp/sbt_f9ee2458/src/main/scala/Client.scala:82:7: overriding method wait in class Object of type ()Unit;
[info] [error]  value wait cannot override final member
[info] [error]       wait: String
[info] [error]       ^

I will look over the merge conflicts that I attempted to resolve and see if I screwed other spots up too.

@anotherhale anotherhale changed the title WIP - Partial union type query #446 Partial union type query #446 Mar 4, 2021
@anotherhale
Copy link
Author

anotherhale commented Mar 4, 2021

Found the merge conflicts and resolved them. Now need to resolve failing tests. I will look into that

@anotherhale
Copy link
Author

caliban
This is the code that I had working before the merge with master (before safe names). I am trying to figure out how to do this with the updated code and writeFieldInfo vs writeField.
@user501254

@anotherhale
Copy link
Author

anotherhale commented Mar 5, 2021

This last commit is failing to compile but I feel is closer to how it could work. Not sure how I munged up the FieldInfo. I suppose it is time to step through the debugger in IntelliJ and attempt to validate/disqualify some of my assumptions.

[error] /home/ahale/dev/github/caliban/tools/src/main/scala/caliban/tools/ClientWriter.scala:189:55: value typeInfo is not a member of caliban.parsing.adt.Definition.TypeSystemDefinition.TypeDefinition.FieldDefinition => caliban.tools.ClientWriter.FieldInfo
[error]         "\n  " + writeView(typedef.name, fields.map(_.typeInfo), mappingClashedTypeNames)
[error]                                                       ^
[error] /home/ahale/dev/github/caliban/tools/src/main/scala/caliban/tools/ClientWriter.scala:194:24: type mismatch;
[error]  found   : caliban.tools.ClientWriter.FieldInfo => String
[error]  required: (caliban.parsing.adt.Definition.TypeSystemDefinition.TypeDefinition.FieldDefinition => caliban.tools.ClientWriter.FieldInfo) => ?
[error]        |  ${fields.map(writeFieldInfo).mkString("\n  ")}
[error]                        ^
[error] two errors found
[error] (tools / Compile / compileIncremental) Compilation failed

@anotherhale
Copy link
Author

My bad - my Scala is a bit rusty. I did resolve the FieldInfo and it is writing the optional field now but it is not writing the original field. Should have it working soon.

@anotherhale
Copy link
Author

anotherhale commented Mar 5, 2021

Tests now pass and it looks like the appropriate Client code is generated (for the sbt test at least). However, the Client code that is generated during sbt scripted is invalid. Here is my error logs:

Snippet:

[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:36:51: RoleSelection is already defined as type RoleSelection
[info] [error]     final case class CharacterView[RoleSelection, RoleSelection](
[info] [error]                                                   ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:48:39: RoleSelection is already defined as type RoleSelection
[info] [error]     type ViewSelection[RoleSelection, RoleSelection] =
[info] [error]                                       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:51:29: RoleSelection is already defined as type RoleSelection
[info] [error]     def view[RoleSelection, RoleSelection](
[info] [error]                             ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:41:22: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection in class CharacterView of type RoleSelection
[info] [error] and  type RoleSelection in class CharacterView of type RoleSelection
[info] [error] match expected type ?
[info] [error]         role: Option[RoleSelection],
[info] [error]                      ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:45:35: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection in class CharacterView of type RoleSelection
[info] [error] and  type RoleSelection in class CharacterView of type RoleSelection
[info] [error] match expected type ?
[info] [error]         roleOption: Option[Option[RoleSelection]]
[info] [error]                                   ^

Full Output:

$ sbt scripted
[info] welcome to sbt 1.4.7 (Red Hat, Inc. Java 1.8.0_275)
[info] loading global plugins from /home/ahale/.sbt/1.0/plugins
[info] loading settings for project caliban-build from plugins.sbt ...
[info] loading project definition from /home/ahale/dev/github/caliban/project
[info] loading settings for project root from build.sbt ...
[info] resolving key references (15165 settings) ...
[info]    ____      _ _ _                 
[info]   / ___|__ _| (_) |__   __ _ _ __  
[info]  | |   / _` | | | '_ \ / _` | '_ \ 
[info]  | |__| (_| | | | |_) | (_| | | | |
[info]   \____\__,_|_|_|_.__/ \__,_|_| |_|  0.9.5+20-516c1c1c-SNAPSHOT
[info] 
[info] Useful sbt tasks:
[info] > ~compile - Compile all modules with file-watch enabled
[info] > test - Run the unit test suite
[info] > fmt - Run scalafmt on the entire project
[info] > scripted - Run the scripted test suite
[info] > examples/runMain caliban.http4s.ExampleApp - Start the example server (http4s based)
[info] > examples/runMain caliban.akkahttp.ExampleApp - Start the example server (akka-http based)
[info] > benchmarks/jmh:run - Run the benchmarks
[info] > +publishLocal - Publish caliban locally
[info] Wrote /home/ahale/dev/github/caliban/macros/target/scala-2.12/caliban-macros_2.12-0.9.5+20-516c1c1c-SNAPSHOT.pom
[info] Wrote /home/ahale/dev/github/caliban/codegen-sbt/target/scala-2.12/sbt-1.0/caliban-codegen-sbt-0.9.5+20-516c1c1c-SNAPSHOT.pom
[info] Wrote /home/ahale/dev/github/caliban/tools/target/scala-2.12/caliban-tools_2.12-0.9.5+20-516c1c1c-SNAPSHOT.pom
[info] Wrote /home/ahale/dev/github/caliban/core/target/scala-2.12/caliban_2.12-0.9.5+20-516c1c1c-SNAPSHOT.pom
[info] Wrote /home/ahale/dev/github/caliban/client/.jvm/target/scala-2.12/caliban-client_2.12-0.9.5+20-516c1c1c-SNAPSHOT.pom
[info] Main Scala API documentation to /home/ahale/dev/github/caliban/macros/target/scala-2.12/api...
[info] Main Scala API documentation to /home/ahale/dev/github/caliban/client/.jvm/target/scala-2.12/api...
[info] Main Scala API documentation to /home/ahale/dev/github/caliban/core/target/scala-2.12/api...
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Main Scala API documentation to /home/ahale/dev/github/caliban/tools/target/scala-2.12/api...
[warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] Main Scala API documentation to /home/ahale/dev/github/caliban/codegen-sbt/target/scala-2.12/sbt-1.0/api...
model contains 5 documentable templates
model contains 6 documentable templates
[info] Main Scala API documentation successful.
[info] :: delivering :: com.github.ghostdogpr#caliban-macros_2.12;0.9.5+20-516c1c1c-SNAPSHOT :: 0.9.5+20-516c1c1c-SNAPSHOT :: integration :: Fri Mar 05 16:56:08 EST 2021
[info]  delivering ivy file to /home/ahale/dev/github/caliban/macros/target/scala-2.12/ivy-0.9.5+20-516c1c1c-SNAPSHOT.xml
[info]  published caliban-macros_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-macros_2.12/0.9.5+20-516c1c1c-SNAPSHOT/poms/caliban-macros_2.12.pom
[info]  published caliban-macros_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-macros_2.12/0.9.5+20-516c1c1c-SNAPSHOT/jars/caliban-macros_2.12.jar
[info]  published caliban-macros_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-macros_2.12/0.9.5+20-516c1c1c-SNAPSHOT/srcs/caliban-macros_2.12-sources.jar
[info]  published caliban-macros_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-macros_2.12/0.9.5+20-516c1c1c-SNAPSHOT/docs/caliban-macros_2.12-javadoc.jar
[info]  published ivy to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-macros_2.12/0.9.5+20-516c1c1c-SNAPSHOT/ivys/ivy.xml
[info] Main Scala API documentation successful.
model contains 92 documentable templates
[info] :: delivering :: com.github.ghostdogpr#caliban-codegen-sbt;0.9.5+20-516c1c1c-SNAPSHOT :: 0.9.5+20-516c1c1c-SNAPSHOT :: integration :: Fri Mar 05 16:56:10 EST 2021
[info]  delivering ivy file to /home/ahale/dev/github/caliban/codegen-sbt/target/scala-2.12/sbt-1.0/ivy-0.9.5+20-516c1c1c-SNAPSHOT.xml
[info]  published caliban-codegen-sbt to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-codegen-sbt/scala_2.12/sbt_1.0/0.9.5+20-516c1c1c-SNAPSHOT/poms/caliban-codegen-sbt.pom
[info]  published caliban-codegen-sbt to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-codegen-sbt/scala_2.12/sbt_1.0/0.9.5+20-516c1c1c-SNAPSHOT/jars/caliban-codegen-sbt.jar
[info]  published caliban-codegen-sbt to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-codegen-sbt/scala_2.12/sbt_1.0/0.9.5+20-516c1c1c-SNAPSHOT/srcs/caliban-codegen-sbt-sources.jar
[info]  published caliban-codegen-sbt to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-codegen-sbt/scala_2.12/sbt_1.0/0.9.5+20-516c1c1c-SNAPSHOT/docs/caliban-codegen-sbt-javadoc.jar
[info]  published ivy to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-codegen-sbt/scala_2.12/sbt_1.0/0.9.5+20-516c1c1c-SNAPSHOT/ivys/ivy.xml
model contains 64 documentable templates
[info] Main Scala API documentation successful.
[info] Main Scala API documentation successful.
[info] :: delivering :: com.github.ghostdogpr#caliban-tools_2.12;0.9.5+20-516c1c1c-SNAPSHOT :: 0.9.5+20-516c1c1c-SNAPSHOT :: integration :: Fri Mar 05 16:56:12 EST 2021
[info]  delivering ivy file to /home/ahale/dev/github/caliban/tools/target/scala-2.12/ivy-0.9.5+20-516c1c1c-SNAPSHOT.xml
[info]  published caliban-tools_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-tools_2.12/0.9.5+20-516c1c1c-SNAPSHOT/poms/caliban-tools_2.12.pom
[info]  published caliban-tools_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-tools_2.12/0.9.5+20-516c1c1c-SNAPSHOT/jars/caliban-tools_2.12.jar
[info]  published caliban-tools_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-tools_2.12/0.9.5+20-516c1c1c-SNAPSHOT/srcs/caliban-tools_2.12-sources.jar
[info]  published caliban-tools_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-tools_2.12/0.9.5+20-516c1c1c-SNAPSHOT/docs/caliban-tools_2.12-javadoc.jar
[info]  published ivy to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-tools_2.12/0.9.5+20-516c1c1c-SNAPSHOT/ivys/ivy.xml
[info] :: delivering :: com.github.ghostdogpr#caliban-client_2.12;0.9.5+20-516c1c1c-SNAPSHOT :: 0.9.5+20-516c1c1c-SNAPSHOT :: integration :: Fri Mar 05 16:56:13 EST 2021
[info]  delivering ivy file to /home/ahale/dev/github/caliban/client/.jvm/target/scala-2.12/ivy-0.9.5+20-516c1c1c-SNAPSHOT.xml
[info]  published caliban-client_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-client_2.12/0.9.5+20-516c1c1c-SNAPSHOT/poms/caliban-client_2.12.pom
[info]  published caliban-client_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-client_2.12/0.9.5+20-516c1c1c-SNAPSHOT/jars/caliban-client_2.12.jar
[info]  published caliban-client_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-client_2.12/0.9.5+20-516c1c1c-SNAPSHOT/srcs/caliban-client_2.12-sources.jar
[info]  published caliban-client_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-client_2.12/0.9.5+20-516c1c1c-SNAPSHOT/docs/caliban-client_2.12-javadoc.jar
[info]  published ivy to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban-client_2.12/0.9.5+20-516c1c1c-SNAPSHOT/ivys/ivy.xml
model contains 259 documentable templates
[info] Main Scala API documentation successful.
[info] :: delivering :: com.github.ghostdogpr#caliban_2.12;0.9.5+20-516c1c1c-SNAPSHOT :: 0.9.5+20-516c1c1c-SNAPSHOT :: integration :: Fri Mar 05 16:56:32 EST 2021
[info]  delivering ivy file to /home/ahale/dev/github/caliban/core/target/scala-2.12/ivy-0.9.5+20-516c1c1c-SNAPSHOT.xml
[info]  published caliban_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban_2.12/0.9.5+20-516c1c1c-SNAPSHOT/poms/caliban_2.12.pom
[info]  published caliban_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban_2.12/0.9.5+20-516c1c1c-SNAPSHOT/jars/caliban_2.12.jar
[info]  published caliban_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban_2.12/0.9.5+20-516c1c1c-SNAPSHOT/srcs/caliban_2.12-sources.jar
[info]  published caliban_2.12 to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban_2.12/0.9.5+20-516c1c1c-SNAPSHOT/docs/caliban_2.12-javadoc.jar
[info]  published ivy to /home/ahale/.ivy2/local/com.github.ghostdogpr/caliban_2.12/0.9.5+20-516c1c1c-SNAPSHOT/ivys/ivy.xml
[info] Running 2 / 2 (100.00%) scripted tests with RunFromSourceMain
[info] Running codegen/gen-view-test-compile
[error] [info] [launcher] getting org.scala-sbt sbt 1.4.7  (this may take some time)...
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: retrieving :: org.scala-sbt#boot-app
[error]         confs: [default]
[error]         84 artifacts copied, 0 already retrieved
[error] [info] [launcher] getting Scala 2.12.12 (for sbt)...
[error] :: retrieving :: org.scala-sbt#boot-scala
[error]         confs: [default]
[error]         6 artifacts copied, 0 already retrieved
[info] [info] Updated file /tmp/sbt_1a72f44c/project/build.properties: set sbt.version to 1.4.7
[info] [info] welcome to sbt 1.4.7 (Red Hat, Inc. Java 1.8.0_275)
[info] [info] loading settings for project sbt_1a72f44c-build from plugins.sbt ...
[info] [info] loading project definition from /tmp/sbt_1a72f44c/project
[info] [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] [info] compiling 1 Scala source to /tmp/sbt_1a72f44c/project/target/scala-2.12/sbt-1.0/classes ...
[info] [info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.12. Compiling...
[info] [info]   Compilation completed in 8.771s.
[info] [info] done compiling
[info] [info] loading settings for project root from build.sbt ...
[info] [info] set current project to root (in build file:/tmp/sbt_1a72f44c/)
[info] [info] welcome to sbt 1.4.7 (Red Hat, Inc. Java 1.8.0_275)
[info] [info] loading settings for project sbt_1a72f44c-build from plugins.sbt ...
[info] [info] loading project definition from /tmp/sbt_1a72f44c/project
[info] [info] loading settings for project root from build.sbt ...
[info] [info] set current project to root (in build file:/tmp/sbt_1a72f44c/)
[info] Generating code for project/schema.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
CharacterView exists in ./src/main/scala/Client.scala
[info] Generating code for project/schema-to-check-name-uniqueness.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
StarshipView exists in ./src/main/scala/client/ClientNameUniqueness.scala
[info] Generating code for project/gitlab-schema.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
VulnerableProjectsByGradeView exists in ./src/main/scala/client/ClientGitLab.scala
[info] [info] compiling 3 Scala sources to /tmp/sbt_1a72f44c/target/scala-2.12/classes ...
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:36:51: RoleSelection is already defined as type RoleSelection
[info] [error]     final case class CharacterView[RoleSelection, RoleSelection](
[info] [error]                                                   ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:48:39: RoleSelection is already defined as type RoleSelection
[info] [error]     type ViewSelection[RoleSelection, RoleSelection] =
[info] [error]                                       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:51:29: RoleSelection is already defined as type RoleSelection
[info] [error]     def view[RoleSelection, RoleSelection](
[info] [error]                             ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:41:22: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection in class CharacterView of type RoleSelection
[info] [error] and  type RoleSelection in class CharacterView of type RoleSelection
[info] [error] match expected type ?
[info] [error]         role: Option[RoleSelection],
[info] [error]                      ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:45:35: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection in class CharacterView of type RoleSelection
[info] [error] and  type RoleSelection in class CharacterView of type RoleSelection
[info] [error] match expected type ?
[info] [error]         roleOption: Option[Option[RoleSelection]]
[info] [error]                                   ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:36:36: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection of type RoleSelection
[info] [error] and  type RoleSelection of type RoleSelection
[info] [error] match expected type ?
[info] [error]     final case class CharacterView[RoleSelection, RoleSelection](
[info] [error]                                    ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:49:49: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection of type RoleSelection
[info] [error] and  type RoleSelection of type RoleSelection
[info] [error] match expected type ?
[info] [error]       SelectionBuilder[Character, CharacterView[RoleSelection, RoleSelection]]
[info] [error]                                                 ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:49:64: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection of type RoleSelection
[info] [error] and  type RoleSelection of type RoleSelection
[info] [error] match expected type ?
[info] [error]       SelectionBuilder[Character, CharacterView[RoleSelection, RoleSelection]]
[info] [error]                                                                ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:54:9: roleSelectionOnCaptain is already defined as value roleSelectionOnCaptain
[info] [error]         roleSelectionOnCaptain: SelectionBuilder[Captain, RoleSelection],
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:55:9: roleSelectionOnPilot is already defined as value roleSelectionOnPilot
[info] [error]         roleSelectionOnPilot: SelectionBuilder[Pilot, RoleSelection]
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:56:22: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection of type RoleSelection
[info] [error] and  type RoleSelection of type RoleSelection
[info] [error] match expected type ?
[info] [error]     ): ViewSelection[RoleSelection, RoleSelection] =
[info] [error]                      ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:56:37: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection of type RoleSelection
[info] [error] and  type RoleSelection of type RoleSelection
[info] [error] match expected type ?
[info] [error]     ): ViewSelection[RoleSelection, RoleSelection] =
[info] [error]                                     ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:52:59: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection of type RoleSelection
[info] [error] and  type RoleSelection of type RoleSelection
[info] [error] match expected type ?
[info] [error]         roleSelectionOnCaptain: SelectionBuilder[Captain, RoleSelection],
[info] [error]                                                           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:53:55: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection of type RoleSelection
[info] [error] and  type RoleSelection of type RoleSelection
[info] [error] match expected type ?
[info] [error]         roleSelectionOnPilot: SelectionBuilder[Pilot, RoleSelection],
[info] [error]                                                       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:54:59: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection of type RoleSelection
[info] [error] and  type RoleSelection of type RoleSelection
[info] [error] match expected type ?
[info] [error]         roleSelectionOnCaptain: SelectionBuilder[Captain, RoleSelection],
[info] [error]                                                           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:55:55: ambiguous reference to overloaded definition,
[info] [error] both type RoleSelection of type RoleSelection
[info] [error] and  type RoleSelection of type RoleSelection
[info] [error] match expected type ?
[info] [error]         roleSelectionOnPilot: SelectionBuilder[Pilot, RoleSelection]
[info] [error]                                                       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:58:9: ambiguous reference to overloaded definition,
[info] [error] both value roleSelectionOnCaptain of type caliban.client.SelectionBuilder[Client.Captain,<error>]
[info] [error] and  value roleSelectionOnCaptain of type caliban.client.SelectionBuilder[Client.Captain,<error>]
[info] [error] match expected type caliban.client.SelectionBuilder[Client.Captain,?]
[info] [error]         roleSelectionOnCaptain,
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:59:9: ambiguous reference to overloaded definition,
[info] [error] both value roleSelectionOnPilot of type caliban.client.SelectionBuilder[Client.Pilot,<error>]
[info] [error] and  value roleSelectionOnPilot of type caliban.client.SelectionBuilder[Client.Pilot,<error>]
[info] [error] match expected type caliban.client.SelectionBuilder[Client.Pilot,?]
[info] [error]         roleSelectionOnPilot
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:61:9: type mismatch;
[info] [error]  found   : caliban.client.SelectionBuilder[Client.Captain,<error>] <and> caliban.client.SelectionBuilder[Client.Captain,<error>]
[info] [error]  required: Option[caliban.client.SelectionBuilder[Client.Captain,?]]
[info] [error]         roleSelectionOnCaptain,
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:62:9: type mismatch;
[info] [error]  found   : caliban.client.SelectionBuilder[Client.Pilot,<error>] <and> caliban.client.SelectionBuilder[Client.Pilot,<error>]
[info] [error]  required: Option[caliban.client.SelectionBuilder[Client.Pilot,?]]
[info] [error]         roleSelectionOnPilot
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:72:15: role is already defined as value role
[info] [error]               role
[info] [error]               ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:75:13: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: String
[info] [error]             name,
[info] [error]             ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:76:13: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: List[String]
[info] [error]             nicknames,
[info] [error]             ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:77:13: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: String
[info] [error]             type$,
[info] [error]             ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:78:13: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Option[Client.Origin]
[info] [error]             origin,
[info] [error]             ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:80:13: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: String
[info] [error]             oldName,
[info] [error]             ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:81:13: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: List[String]
[info] [error]             oldNicknames,
[info] [error]             ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/Client.scala:82:13: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: String
[info] [error]             oldName2,
[info] [error]             ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30496:9: LocationSelection is already defined as type LocationSelection
[info] [error]         LocationSelection
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30530:9: LocationSelection is already defined as type LocationSelection
[info] [error]         LocationSelection
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30554:9: LocationSelection is already defined as type LocationSelection
[info] [error]         LocationSelection
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30504:26: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection in class VulnerabilityView of type LocationSelection
[info] [error] and  type LocationSelection in class VulnerabilityView of type LocationSelection
[info] [error] match expected type ?
[info] [error]         location: Option[LocationSelection],
[info] [error]                          ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30517:39: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection in class VulnerabilityView of type LocationSelection
[info] [error] and  type LocationSelection in class VulnerabilityView of type LocationSelection
[info] [error] match expected type ?
[info] [error]         locationOption: Option[Option[LocationSelection]]
[info] [error]                                       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30490:9: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]         LocationSelection,
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30535:7: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]       LocationSelection,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30541:7: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]       LocationSelection
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30620:9: locationSelectionOnVulnerabilityLocationContainerScanning is already defined as value locationSelectionOnVulnerabilityLocationContainerScanning
[info] [error]         locationSelectionOnVulnerabilityLocationContainerScanning: SelectionBuilder[
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30624:9: locationSelectionOnVulnerabilityLocationCoverageFuzzing is already defined as value locationSelectionOnVulnerabilityLocationCoverageFuzzing
[info] [error]         locationSelectionOnVulnerabilityLocationCoverageFuzzing: SelectionBuilder[
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30628:9: locationSelectionOnVulnerabilityLocationDast is already defined as value locationSelectionOnVulnerabilityLocationDast
[info] [error]         locationSelectionOnVulnerabilityLocationDast: SelectionBuilder[
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30632:9: locationSelectionOnVulnerabilityLocationDependencyScanning is already defined as value locationSelectionOnVulnerabilityLocationDependencyScanning
[info] [error]         locationSelectionOnVulnerabilityLocationDependencyScanning: SelectionBuilder[
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30636:9: locationSelectionOnVulnerabilityLocationSast is already defined as value locationSelectionOnVulnerabilityLocationSast
[info] [error]         locationSelectionOnVulnerabilityLocationSast: SelectionBuilder[
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30640:9: locationSelectionOnVulnerabilityLocationSecretDetection is already defined as value locationSelectionOnVulnerabilityLocationSecretDetection
[info] [error]         locationSelectionOnVulnerabilityLocationSecretDetection: SelectionBuilder[
[info] [error]         ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30648:7: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]       LocationSelection,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30654:7: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]       LocationSelection
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30584:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30588:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30592:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30596:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30600:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30604:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30622:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30626:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30630:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30634:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30638:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30642:11: ambiguous reference to overloaded definition,
[info] [error] both type LocationSelection of type LocationSelection
[info] [error] and  type LocationSelection of type LocationSelection
[info] [error] match expected type ?
[info] [error]           LocationSelection
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30669:7: ambiguous reference to overloaded definition,
[info] [error] both value locationSelectionOnVulnerabilityLocationContainerScanning of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationContainerScanning,<error>]
[info] [error] and  value locationSelectionOnVulnerabilityLocationContainerScanning of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationContainerScanning,<error>]
[info] [error] match expected type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationContainerScanning,?]
[info] [error]       locationSelectionOnVulnerabilityLocationContainerScanning,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30670:7: ambiguous reference to overloaded definition,
[info] [error] both value locationSelectionOnVulnerabilityLocationCoverageFuzzing of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationCoverageFuzzing,<error>]
[info] [error] and  value locationSelectionOnVulnerabilityLocationCoverageFuzzing of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationCoverageFuzzing,<error>]
[info] [error] match expected type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationCoverageFuzzing,?]
[info] [error]       locationSelectionOnVulnerabilityLocationCoverageFuzzing,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30671:7: ambiguous reference to overloaded definition,
[info] [error] both value locationSelectionOnVulnerabilityLocationDast of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDast,<error>]
[info] [error] and  value locationSelectionOnVulnerabilityLocationDast of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDast,<error>]
[info] [error] match expected type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDast,?]
[info] [error]       locationSelectionOnVulnerabilityLocationDast,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30672:7: ambiguous reference to overloaded definition,
[info] [error] both value locationSelectionOnVulnerabilityLocationDependencyScanning of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDependencyScanning,<error>]
[info] [error] and  value locationSelectionOnVulnerabilityLocationDependencyScanning of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDependencyScanning,<error>]
[info] [error] match expected type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDependencyScanning,?]
[info] [error]       locationSelectionOnVulnerabilityLocationDependencyScanning,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30673:7: ambiguous reference to overloaded definition,
[info] [error] both value locationSelectionOnVulnerabilityLocationSast of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSast,<error>]
[info] [error] and  value locationSelectionOnVulnerabilityLocationSast of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSast,<error>]
[info] [error] match expected type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSast,?]
[info] [error]       locationSelectionOnVulnerabilityLocationSast,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30674:7: ambiguous reference to overloaded definition,
[info] [error] both value locationSelectionOnVulnerabilityLocationSecretDetection of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSecretDetection,<error>]
[info] [error] and  value locationSelectionOnVulnerabilityLocationSecretDetection of type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSecretDetection,<error>]
[info] [error] match expected type caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSecretDetection,?]
[info] [error]       locationSelectionOnVulnerabilityLocationSecretDetection
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30684:7: type mismatch;
[info] [error]  found   : caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationContainerScanning,<error>] <and> caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationContainerScanning,<error>]
[info] [error]  required: Option[caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationContainerScanning,?]]
[info] [error]       locationSelectionOnVulnerabilityLocationContainerScanning,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30685:7: type mismatch;
[info] [error]  found   : caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationCoverageFuzzing,<error>] <and> caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationCoverageFuzzing,<error>]
[info] [error]  required: Option[caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationCoverageFuzzing,?]]
[info] [error]       locationSelectionOnVulnerabilityLocationCoverageFuzzing,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30686:7: type mismatch;
[info] [error]  found   : caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDast,<error>] <and> caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDast,<error>]
[info] [error]  required: Option[caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDast,?]]
[info] [error]       locationSelectionOnVulnerabilityLocationDast,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30687:7: type mismatch;
[info] [error]  found   : caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDependencyScanning,<error>] <and> caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDependencyScanning,<error>]
[info] [error]  required: Option[caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationDependencyScanning,?]]
[info] [error]       locationSelectionOnVulnerabilityLocationDependencyScanning,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30688:7: type mismatch;
[info] [error]  found   : caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSast,<error>] <and> caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSast,<error>]
[info] [error]  required: Option[caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSast,?]]
[info] [error]       locationSelectionOnVulnerabilityLocationSast,
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30689:7: type mismatch;
[info] [error]  found   : caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSecretDetection,<error>] <and> caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSecretDetection,<error>]
[info] [error]  required: Option[caliban.client.SelectionBuilder[client.ClientGitLab.VulnerabilityLocationSecretDetection,?]]
[info] [error]       locationSelectionOnVulnerabilityLocationSecretDetection
[info] [error]       ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30744:13: location is already defined as value location
[info] [error]             location
[info] [error]             ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30747:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Option[String]
[info] [error]           description,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30748:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: client.ClientGitLab.Time
[info] [error]     (which expands to)  String
[info] [error]           detectedAt,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30750:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: String
[info] [error]           id,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30751:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: List[?]
[info] [error]           identifiers,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30755:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Option[?]
[info] [error]           primaryIdentifier,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30756:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Option[?]
[info] [error]           project,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30757:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Option[client.ClientGitLab.VulnerabilityReportType]
[info] [error]           reportType,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30758:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Boolean
[info] [error]           resolvedOnDefaultBranch,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30759:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Option[?]
[info] [error]           scanner,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30760:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Option[client.ClientGitLab.VulnerabilitySeverity]
[info] [error]           severity,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30761:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Option[client.ClientGitLab.VulnerabilityState]
[info] [error]           state,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30762:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Option[String]
[info] [error]           title,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30763:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Int
[info] [error]           userNotesCount,
[info] [error]           ^
[info] [error] /tmp/sbt_1a72f44c/src/main/scala/client/ClientGitLab.scala:30765:11: type mismatch;
[info] [error]  found   : Any
[info] [error]  required: Option[String]
[info] [error]           vulnerabilityPath,
[info] [error]           ^
[info] [error] 83 errors found
[info] [error] (Compile / compileIncremental) Compilation failed
[info] [error] Total time: 11 s, completed Mar 5, 2021 4:57:32 PM
[error] x codegen/gen-view-test-compile 
[error]  Cause of test exception: {line 16}  Command failed: compile failed
[info] Running codegen/test-compile
[error] [info] [launcher] getting org.scala-sbt sbt 1.4.7  (this may take some time)...
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: loading settings :: url = jar:file:/home/ahale/.cache/coursier/v1/https/repo1.maven.org/maven2/org/scala-sbt/sbt-launch/1.4.7/sbt-launch-1.4.7.jar!/org/apache/ivy/core/settings/ivysettings.xml
[error] :: retrieving :: org.scala-sbt#boot-app
[error]         confs: [default]
[error]         84 artifacts copied, 0 already retrieved
[error] [info] [launcher] getting Scala 2.12.12 (for sbt)...
[error] :: retrieving :: org.scala-sbt#boot-scala
[error]         confs: [default]
[error]         6 artifacts copied, 0 already retrieved
[info] [info] Updated file /tmp/sbt_9107fff6/project/build.properties: set sbt.version to 1.4.7
[info] [info] welcome to sbt 1.4.7 (Red Hat, Inc. Java 1.8.0_275)
[info] [info] loading settings for project sbt_9107fff6-build from plugins.sbt ...
[info] [info] loading project definition from /tmp/sbt_9107fff6/project
[info] [warn] There may be incompatibilities among your library dependencies; run 'evicted' to see detailed eviction warnings.
[info] [info] compiling 1 Scala source to /tmp/sbt_9107fff6/project/target/scala-2.12/sbt-1.0/classes ...
[info] [info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.12. Compiling...
[info] [info]   Compilation completed in 9.171s.
[info] [info] done compiling
[info] [info] loading settings for project root from build.sbt ...
[info] [info] set current project to root (in build file:/tmp/sbt_9107fff6/)
[info] [info] welcome to sbt 1.4.7 (Red Hat, Inc. Java 1.8.0_275)
[info] [info] loading settings for project sbt_9107fff6-build from plugins.sbt ...
[info] [info] loading project definition from /tmp/sbt_9107fff6/project
[info] [info] loading settings for project root from build.sbt ...
[info] [info] set current project to root (in build file:/tmp/sbt_9107fff6/)
[info] Generating code for project/schema.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
[info] Generating code for project/schema-to-check-name-uniqueness.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
[info] Generating code for project/gitlab-schema.graphql
[error] parsed config (v2.7.5): 
[info] Code generation done
[info] [info] compiling 3 Scala sources to /tmp/sbt_9107fff6/target/scala-2.12/classes ...
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:147:17: Generated class client.ClientGitLab$AlertManagementAlertSort$UPDATED_DESC$ differs only in case from client.ClientGitLab$AlertManagementAlertSort$updated_desc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `UPDATED_DESC` extends AlertManagementAlertSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:148:17: Generated class client.ClientGitLab$AlertManagementAlertSort$UPDATED_ASC$ differs only in case from client.ClientGitLab$AlertManagementAlertSort$updated_asc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `UPDATED_ASC` extends AlertManagementAlertSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:149:17: Generated class client.ClientGitLab$AlertManagementAlertSort$CREATED_DESC$ differs only in case from client.ClientGitLab$AlertManagementAlertSort$created_desc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `CREATED_DESC` extends AlertManagementAlertSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:150:17: Generated class client.ClientGitLab$AlertManagementAlertSort$CREATED_ASC$ differs only in case from client.ClientGitLab$AlertManagementAlertSort$created_asc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `CREATED_ASC` extends AlertManagementAlertSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:1069:17: Generated class client.ClientGitLab$IssueSort$UPDATED_DESC$ differs only in case from client.ClientGitLab$IssueSort$updated_desc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `UPDATED_DESC` extends IssueSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:1070:17: Generated class client.ClientGitLab$IssueSort$UPDATED_ASC$ differs only in case from client.ClientGitLab$IssueSort$updated_asc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `UPDATED_ASC` extends IssueSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:1071:17: Generated class client.ClientGitLab$IssueSort$CREATED_DESC$ differs only in case from client.ClientGitLab$IssueSort$created_desc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `CREATED_DESC` extends IssueSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:1072:17: Generated class client.ClientGitLab$IssueSort$CREATED_ASC$ differs only in case from client.ClientGitLab$IssueSort$created_asc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `CREATED_ASC` extends IssueSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:1372:17: Generated class client.ClientGitLab$MergeRequestSort$UPDATED_DESC$ differs only in case from client.ClientGitLab$MergeRequestSort$updated_desc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `UPDATED_DESC` extends MergeRequestSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:1373:17: Generated class client.ClientGitLab$MergeRequestSort$UPDATED_ASC$ differs only in case from client.ClientGitLab$MergeRequestSort$updated_asc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `UPDATED_ASC` extends MergeRequestSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:1374:17: Generated class client.ClientGitLab$MergeRequestSort$CREATED_DESC$ differs only in case from client.ClientGitLab$MergeRequestSort$created_desc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `CREATED_DESC` extends MergeRequestSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:1375:17: Generated class client.ClientGitLab$MergeRequestSort$CREATED_ASC$ differs only in case from client.ClientGitLab$MergeRequestSort$created_asc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `CREATED_ASC` extends MergeRequestSort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:2192:17: Generated class client.ClientGitLab$Sort$UPDATED_DESC$ differs only in case from client.ClientGitLab$Sort$updated_desc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `UPDATED_DESC` extends Sort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:2193:17: Generated class client.ClientGitLab$Sort$UPDATED_ASC$ differs only in case from client.ClientGitLab$Sort$updated_asc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `UPDATED_ASC` extends Sort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:2194:17: Generated class client.ClientGitLab$Sort$CREATED_DESC$ differs only in case from client.ClientGitLab$Sort$created_desc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `CREATED_DESC` extends Sort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientGitLab.scala:2195:17: Generated class client.ClientGitLab$Sort$CREATED_ASC$ differs only in case from client.ClientGitLab$Sort$created_asc$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `CREATED_ASC` extends Sort
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientNameUniqueness.scala:17:17: Generated class client.ClientNameUniqueness$Episode$jedi$ differs only in case from client.ClientNameUniqueness$Episode$JEDI$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]     case object `jedi` extends Episode
[info] [warn]                 ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientNameUniqueness.scala:44:10: Generated class client.ClientNameUniqueness$human$ differs only in case from client.ClientNameUniqueness$Human$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]   object `human` {
[info] [warn]          ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientNameUniqueness.scala:49:10: Generated class client.ClientNameUniqueness$humaN$ differs only in case from client.ClientNameUniqueness$Human$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]   object `humaN` {
[info] [warn]          ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientNameUniqueness.scala:88:14: Generated class client.ClientNameUniqueness$messageInput differs only in case from client.ClientNameUniqueness$MessageInput.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]   case class `messageInput`(
[info] [warn]              ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientNameUniqueness.scala:92:10: Generated class client.ClientNameUniqueness$messageInput$ differs only in case from client.ClientNameUniqueness$MessageInput$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]   object `messageInput` {
[info] [warn]          ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientNameUniqueness.scala:109:14: Generated class client.ClientNameUniqueness$MessageInpuT differs only in case from client.ClientNameUniqueness$MessageInput.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]   case class `MessageInpuT`(
[info] [warn]              ^
[info] [warn] /tmp/sbt_9107fff6/src/main/scala/client/ClientNameUniqueness.scala:113:10: Generated class client.ClientNameUniqueness$MessageInpuT$ differs only in case from client.ClientNameUniqueness$MessageInput$.
[info] [warn]   Such classes will overwrite one another on case-insensitive filesystems.
[info] [warn]   object `MessageInpuT` {
[info] [warn]          ^
[info] [warn] 23 warnings found
[info] [info] done compiling
[info] [success] Total time: 16 s, completed Mar 5, 2021 4:58:34 PM
[info] + codegen/test-compile 
[error] java.lang.RuntimeException: Failed tests:
[error]         codegen/gen-view-test-compile
[error] 
[error]         at scala.sys.package$.error(package.scala:30)
[error]         at sbt.scriptedtest.ScriptedRunner.reportErrors(ScriptedTests.scala:545)
[error]         at sbt.scriptedtest.ScriptedRunner.runAll(ScriptedTests.scala:548)
[error]         at sbt.scriptedtest.ScriptedRunner.run(ScriptedTests.scala:517)
[error]         at sbt.scriptedtest.ScriptedRunner.run(ScriptedTests.scala:417)
[error]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[error]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[error]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error]         at java.lang.reflect.Method.invoke(Method.java:498)
[error]         at sbt.ScriptedPlugin$.$anonfun$scriptedTask$3(ScriptedPlugin.scala:204)
[error]         at sbt.ScriptedPlugin$.$anonfun$scriptedTask$3$adapted(ScriptedPlugin.scala:189)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error]         at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error]         at sbt.std.Transform$$anon$4.work(Transform.scala:68)
[error]         at sbt.Execute.$anonfun$submit$2(Execute.scala:282)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:23)
[error]         at sbt.Execute.work(Execute.scala:291)
[error]         at sbt.Execute.$anonfun$submit$1(Execute.scala:282)
[error]         at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:265)
[error]         at sbt.CompletionService$$anon$2.call(CompletionService.scala:64)
[error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error]         at java.lang.Thread.run(Thread.java:748)
[error] (codegenSbt / scripted) Failed tests:
[error]         codegen/gen-view-test-compile
[error] Total time: 153 s (02:33), completed Mar 5, 2021 4:58:34 PM

@ghostdogpr
Copy link
Owner

It fails on this schema https://github.com/ghostdogpr/caliban/blob/master/codegen-sbt/src/sbt-test/codegen/test-compile/project/schema.graphql (it also fails on the gitlab one but this one is much smaller so easier to reproduce the problem). You can run a test on that schema so you can see the code that is generated.

@anotherhale
Copy link
Author

It fails on this schema https://github.com/ghostdogpr/caliban/blob/master/codegen-sbt/src/sbt-test/codegen/test-compile/project/schema.graphql (it also fails on the gitlab one but this one is much smaller so easier to reproduce the problem). You can run a test on that schema so you can see the code that is generated.

Ok. I won't get to it until next week or the week after.

@anotherhale
Copy link
Author

I have a lot of higher priority issues from work and so have not been able to get any time for this. I would like to resolve it and so I will work on it outside of my work hours. I only have a few hours a week so it may take some time to resolve this.

@ghostdogpr
Copy link
Owner

I did it in #1099

@ghostdogpr ghostdogpr closed this Oct 16, 2021
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

Successfully merging this pull request may close these issues.

2 participants