-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Description
Environment
- System: Linux
- Java Version: 21
- Gradle Version: 8.9
- Project Type: Android project
Description
I'm working on an Android project, but I'm experiencing issues with code navigation:
- Cannot navigate to classes within the project - Jump to definition doesn't work for project classes
- Cannot navigate to JAR dependencies - Jump to definition doesn't work for external libraries
- No libraries are being loaded - Although
GradleWorkspaceImporteris being used, it always shows "There are 0 libraries to load"
Kotlin LSP Logs
2026-01-08 16:54:09,845 [ 1658] INFO - #c.j.l.s. a.i.c.LSServerAnalyzerImplKt - Indices storage path: /home/hmy/.config/JetBrains/analyzer/workspaces/6936bf7e5abfd598ef24ffe4c67eba0e.mv.db
2026-01-08 16:54:09,919 [ 72] INFO - #c.j. l.s. a.i.c.MVSKt - Opened MVStore /home/hmy/. config/JetBrains/analyzer/workspaces/6936bf7e5abfd598ef24ffe4c67eba0e. mv.db
2026-01-08 16:54:09,924 [ 307] INFO - initialize - Trying to import using JsonWorkspaceImporter
[Info - 16:54:09] 2026-01-08 16:54:09,924 [ 307] INFO - initialize - Trying to import using JsonWorkspaceImporter
2026-01-08 16:54:09,926 [ 309] INFO - initialize - Trying to import using GradleWorkspaceImporter
[Info - 16:54:09] 2026-01-08 16:54:09,926 [ 309] INFO - initialize - Trying to import using GradleWorkspaceImporter
2026-01-08 16:54:10,941 [ 1326] INFO - #c.j.l.i. g.GradleWorkspaceImporter - Importing Gradle project using JDK /home/hmy/.local/share/mise/installs/java/zulu-21
[Info - 16:54:10] 2026-01-08 16:54:10,941 [ 1326] INFO - #c. j.l.i.g. GradleWorkspaceImporter - Importing Gradle project using JDK /home/hmy/. local/share/mise/installs/java/zulu-21
2026-01-08 16:54:15,851 [ 11] INFO - #c.i.w. i.i.GlobalWorkspaceModel - Project analyzer project is added to the list of initializing and open projects
[Info - 16:54:15] 2026-01-08 16:54:15,851 [ 11] INFO - #c.i.w.i.i.GlobalWorkspaceModel - Project analyzer project is added to the list of initializing and open projects
2026-01-08 16:54:15,855 [ 0] INFO - #c.i. w.i.i.l. m.ModuleBridgeLoaderService - Workspace model loaded from cache.
[Info - 16:54:15] 2026-01-08 16:54:15,855 [ 0] INFO - #c. i.w.i.i. l.m.ModuleBridgeLoaderService - Workspace model loaded from cache.
Key observation: The LSP uses GradleWorkspaceImporter but always reports "There are 0 libraries to load", which seems to be the root cause of the navigation issues.
Expected Behavior
- GradleWorkspaceImporter should detect and load project dependencies
- Should be able to navigate to project classes using "Go to Definition"
- Should be able to navigate to JAR dependency sources
Actual Behavior
- GradleWorkspaceImporter reports 0 libraries loaded
- Navigation doesn't work for both project classes and external dependencies
- The LSP server appears to start successfully but navigation features are not functional
Additional Context
This appears to be related to Android project support as discussed in #26, #97, #103, and #116. The issue seems specific to how the Gradle importer handles Android projects and their dependencies.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels