-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
Code Generation v4.0.0 sytax error #93
Comments
Update: I've managed to get past the above error by copying over the executable from the swift
Re downloaded Xcode 13.4.1 (https://developer.apple.com/download/all/?q=xcode%2013.4). Recopied the |
@wambambizzle @maticzav hopefully this can be resolved |
@wambambizzle what do you mean by recopied, could you please be more specific? thanks! |
Sorry, I just meant "copied" ! |
@wambambizzle you've mentioned that you copied Then appeared So both for the sorry for confusion, but I still can't get it working |
IIRC I copied it from the Do you have the code gen cli installed locally via something like homebrew? And version of Xcode are you currently building against ? No need to apologize, I understand completely. |
@wambambizzle I've built it manually using make. At the moment I have Xcode14, which is released officially |
Do you still have Xcode 13.x installed by chance? I think part of the issue (besides needing to copy that lib into the other folders), is that Xcode 13.x is associated to Swift 5.5 while Xcode 14 is Swift 5.6/7. What is the current error(s) that you are seeing? |
You can't run it or you can't download/install it at all? If not, think you might have try and find a way to manually install Swift 5.5 |
to be explicit, it's
|
@wambambizzle as per that screenshot, I've built library locally using latest @maticzav this might be a viable solution, maybe you'd like me to create pull request? |
@wambambizzle, @nrudnyk , @maticzav:
the described and reproducible issue reported by @nrudnyk regarding code generation seems to be caused by the hard swift-format dependency within the Package.swift
As the dev team from Current workaroundTherefore my current workaround which does the trick has been the following so far:
@maticzav: any chance to create a PR regarding the pointed version of swift-format as dependency used by the SwiftGraphQLCodegen library which is a dependency of the SwiftGraphQLCLI executable? An additional comment on this topicRelated to the note in the contribution guidelines Due to a major improvement in swift-format Source:
makes the described requirement and the currently used fix version of swift-format obsolete. |
hi everyone excuse my silence, I see that you've made quite a bit of progress investigating the issue. I'd love to approve a PR if anyone has the capacity or pair program or even just chat with someone from this thread. Let me know if anyone wants to help with this, I have capacity for the next two weeks 🙂 |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
swift-graphql --help
orswift-graphql <url>
for code generationExpected behavior
Expected to see the help menu or to generate the code based on the url.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Latest update seems (4.0.0) to have broken code generation
Down grading the swift package to 3.0.1 in Xcode 14.0 allows the project to still build. But as you can see above the code generator version is at 4.0.0 and has the above issues. I no longer have any of the older installations available to switch back to see if they still work, but I was seeing a similar syntax issue before upgrading to the latest code gen
The text was updated successfully, but these errors were encountered: