microsoft / vscode-gradle

Manage Gradle Projects, run Gradle tasks and provide better Gradle file authoring experience in VS Code
https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-gradle
MIT License
124 stars 51 forks source link

VSCode LSP is not able to resolve the imports #1469

Open Jap8nted opened 9 months ago

Jap8nted commented 9 months ago

Extension Name: vscode-gradle Extension Version: 3.13.5 OS Version: MacOS 13.2.1 VSCode version: Version: 1.85.1 Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2

I was trying to work a project (https://github.com/spatialx-project/geolake) which is built using grade, I installed the extension. When gradle starts, seem to load successfully, however, many of the imports are not found.

To Reproduce Download the project from github Install gradle extension Wait for project to load, dependencies are downloaded and appear listed on gradle pane. However, they are not available to LSP

Screenshots image

Output from "Gradle for Java" `[info] [gradle-server] Server started, listening on 52522 [info] Gradle client connected to server [info] Java Home: /Users/jonatanaponte/Library/Java/JavaVirtualMachines/corretto-11.0.16.1/Contents/Home [info] JVM Args: --add-opens=java.base/java.util=ALL-UNNAMED,--add-opens=java.base/java.lang=ALL-UNNAMED,--add-opens=java.base/java.lang.invoke=ALL-UNNAMED,--add-opens=java.prefs/java.util.prefs=ALL-UNNAMED,--add-opens=java.base/java.nio.charset=ALL-UNNAMED,--add-opens=java.base/java.net=ALL-UNNAMED,--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx1024m,-Dfile.encoding=UTF-8,-Duser.country=DE,-Duser.language=en,-Duser.variant [info] Gradle User Home: /Users/jonatanaponte/.gradle [info] Gradle Version: 8.0.2 [info] Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/8.0.2/userguide/command_line_interface.html#sec:command_line_warnings

CONFIGURE SUCCESSFUL in 32s [info] Found 1794 tasks `

Does the bug still exist if you disable all other extensions? Yes/No