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

[KSP2] Getting packageName of Kotlin types returns empty String #1718

Closed
kuanyingchou opened this issue Feb 7, 2024 · 0 comments · Fixed by #1724
Closed

[KSP2] Getting packageName of Kotlin types returns empty String #1718

kuanyingchou opened this issue Feb 7, 2024 · 0 comments · Fixed by #1724
Assignees

Comments

@kuanyingchou
Copy link
Contributor

When getting the package name of Kotlin types like this:

resolver.getKotlinClassByName("kotlin.Any")!!.packageName.asString()

we got an empty String with KSP2 but "kotlin" with KSP1.

Tested with main at 42217b8 as well as 2.0.0-Beta3-1.0.18-20240207.110119-15.

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 a pull request may close this issue.

2 participants