-
-
Notifications
You must be signed in to change notification settings - Fork 249
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
Partial union type query #446 #790
Conversation
""" | ||
|
||
def safeUnapplyName(name: String): String = | ||
if (reservedKeywords.contains(name) || name.endsWith("_")) s"$name$$" | ||
if (reservedKeywords.contains(name)) s"${name}_" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Found the merge conflicts and resolved them. Now need to resolve failing tests. I will look into that |
This last commit is failing to compile but I feel is closer to how it could work. Not sure how I munged up the
|
My bad - my Scala is a bit rusty. I did resolve the |
Tests now pass and it looks like the appropriate Client code is generated (for the Snippet:
Full Output:
|
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. |
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. |
I did it in #1099 |
#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:
Full output