-
Notifications
You must be signed in to change notification settings - Fork 16
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
Bug: Imports are not added to generated code when referencing a class in the parent package #90
Comments
I think it may be due to this line here
Everything is passed in as a string instead of a template. I don't have much experience with Kotlin Poet but based off the documentation it seems like you need to use the template format in order to get the correct imports. |
I took a stab at this but I'm running into some very strange errors. Stacktrace
|
Will there be a new release fixing this bug? Cannot yet update to Kotlin 2.0 so still need to use this plugin |
Hi! I ran into an issue where if a class references a class that is in the parent package, imports are not added.
For example:
The generated code for inner will look like this:
And fail with the error:
In order to fix this the following imports need to be added to the inner generated file:
I created a reproducer at https://github.com/dronda-t/kopy-kt-missing-import if you want to try for yourself.
The text was updated successfully, but these errors were encountered: