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

SwiftPoet Status #87

Closed
oldergod opened this issue Oct 10, 2023 · 14 comments
Closed

SwiftPoet Status #87

oldergod opened this issue Oct 10, 2023 · 14 comments

Comments

@oldergod
Copy link
Collaborator

Hello!

At Wire https://github.com/square/wire we rely heavily on SwiftPoet and we’re a bit anxious about the project’s state and its future. Would you be open to add one or two of us to it so we can make changes, fix bugs, and make some releases? Is SwiftPoet still getting support from you or someone else?
Worst case scenario for us would be to fork the project. We'd love to hear back from you; we're totally up to helping the project is possible.
Let us know

@kdubb
Copy link
Contributor

kdubb commented Oct 10, 2023

Absolutely! Would love the help!

@dnkoutso
Copy link
Collaborator

@kdubb would love to start with this #86

also we identified more issues that are probably fixed in Kotlin Poet....seems like a large update required...I could give it a shot but was hoping for some help as well.

@kdubb
Copy link
Contributor

kdubb commented Oct 10, 2023

The biggest issue holding things back is when I switched to SonarCloud originally I didn't realize the issues with external PR's.

@kdubb
Copy link
Contributor

kdubb commented Oct 10, 2023

I have fixed workflows I can adapt from our other repositories.

@dnkoutso
Copy link
Collaborator

Thank you @kdubb ! We had identified another issue and we had fixed it at the Wire level...its possible this can be fixed to SwiftPoet as it seems some new logic was added into KotlinPoet to deal with this.

square/wire#2658

In particular I think we are missing logic like this https://github.com/square/kotlinpoet/blob/main/kotlinpoet/src/main/java/com/squareup/kotlinpoet/CodeWriter.kt#L432 within CodeWriter.kt...

It turns out in some cases if we can resolve the type name we do not store that as an import to keep for the second pass to actually write the correct imports...

I have started trying to accomplish that in SwiftPoet and the Wire PR above has a test case that verifies the issue...

@kdubb
Copy link
Contributor

kdubb commented Oct 11, 2023

@dnkoutso I'm unsure of exactly what you are wanting. Can you make a PR? Or at least a PR with a failing test case?

@kdubb
Copy link
Contributor

kdubb commented Oct 11, 2023

@oldergod Who should be added to the team?

@oldergod
Copy link
Collaborator Author

@dnkoutso and myself @oldergod would be great! Thank you

@kdubb
Copy link
Contributor

kdubb commented Oct 12, 2023

@oldergod I've invited you both to the team! Welcome! I'm happy to have help maintaining and updating the library!

I would only ask that you guys keep me in the loop via review requests as we begin working together.

@oldergod
Copy link
Collaborator Author

I would only ask that you guys keep me in the loop via review requests as we begin working together.

Of course!

@oldergod
Copy link
Collaborator Author

oldergod commented Dec 8, 2023

@kdubb Hey Kevin, we cannot merge PRs for we're not authorised to do so.

image

Did you mean to keep reviewing things and merging them yourself?

@kdubb
Copy link
Contributor

kdubb commented Dec 8, 2023

@oldergod Nope, I thought you were able to do so.

@dnkoutso
Copy link
Collaborator

I think we should close this?

@oldergod
Copy link
Collaborator Author

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants