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: KSAnnotation packageName is an empty String for a type from a different module #1721

Closed
eygraber opened this issue Feb 8, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@eygraber
Copy link

eygraber commented Feb 8, 2024

Updating to KSP2 results in the following code returning an empty String, whereas before it returned the package name correctly:

// KSAnnotation type here is an annotation that
// comes from a library that the module running KSP depends on
fun test(a: KSAnnotation) {
  a.annotationType.resolve().declaration.packageName
}

declaration.qualifiedName is correctly populated.

eygraber added a commit to eygraber/kotlin-inject that referenced this issue Feb 8, 2024
@neetopia neetopia self-assigned this Feb 8, 2024
@neetopia
Copy link
Collaborator

neetopia commented Feb 9, 2024

this should be fixed by #1724

@neetopia neetopia added the bug Something isn't working label Feb 9, 2024
@neetopia neetopia closed this as completed Feb 9, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue Feb 15, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue Mar 8, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue Mar 8, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue Mar 25, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue Apr 9, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue Apr 9, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue Apr 11, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue Apr 11, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue May 1, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue May 3, 2024
eygraber added a commit to eygraber/kotlin-inject that referenced this issue May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants