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] Resolver.getDeclarationsFromPackage() couldn't find Java declarations #1952

Closed
kuanyingchou opened this issue Jun 5, 2024 · 1 comment · Fixed by #2054 or #2100
Closed

[KSP2] Resolver.getDeclarationsFromPackage() couldn't find Java declarations #1952

kuanyingchou opened this issue Jun 5, 2024 · 1 comment · Fixed by #2054 or #2100
Assignees
Milestone

Comments

@kuanyingchou
Copy link
Collaborator

This started with 1.0.22 snapshot (1.0.21 was fine). When there is only Java sources in a package Resolver.getDeclarationsFromPackage() can't find the declarations in it. But after adding Kotlin source it works fine.

Repro: kuanyingchou@d150c00

@neetopia neetopia self-assigned this Jun 6, 2024
@neetopia neetopia added the bug Something isn't working label Jun 6, 2024
@neetopia neetopia added this to the 2.1 milestone Jun 6, 2024
@kuanyingchou kuanyingchou removed the bug Something isn't working label Aug 22, 2024
@kuanyingchou
Copy link
Collaborator Author

It now works for Java sources for packages of one level, but doesn't seem to work for nested packages. Similar to the original issue adding Kotlin sources to the same package and it works.

Here's a repro:
kuanyingchou@d01db69

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