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

bug - changes are not propagated to java language server #1633

Open
mamilic opened this issue Nov 23, 2024 · 1 comment
Open

bug - changes are not propagated to java language server #1633

mamilic opened this issue Nov 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mamilic
Copy link
Contributor

mamilic commented Nov 23, 2024

Extension Name: vscode-gradle
Extension Version: 3.16.4
OS Version: Arch Linux
VSCode version: 1.95.3

Describe the bug
With multimodule gradle project, changing dependency version is not synchronized to the Java Lnaguage Server.

To Reproduce
Open this project, multimodule.zip

  1. Go to services/module-a/src/main/java/com/one/demo/DemoApplication.java, navigate to SpringApplication and open the class file and check the version of the library where the file comes from, it will be shown it is 3.4.0
  2. Go to buildSrc/build.gradle -> line 10 and change implementation 'org.springframework.boot:spring-boot-gradle-plugin:3.3.0
  3. Repeat step one to check the version, it will still show the previous version

Another way of reproducing

  1. Go to services/module-a/build.gradle, add some dependency, you can add, implementation 'io.micrometer:micrometer-registry-prometheus:1.11.3'
  2. Go to services/module-a/src/main/java/com/one/demo/DemoApplication.java, and try to import PrometheusMeterRegistry, which comes from that package, https://github.com/micrometer-metrics/micrometer/blob/main/implementations/micrometer-registry-prometheus/src/main/java/io/micrometer/prometheusmetrics/PrometheusMeterRegistry.java

Expected behavior
When dependencies are changed, or any gradle configuration the JDT should be updated as well to reflect the changes applied

@mamilic mamilic added the bug Something isn't working label Nov 23, 2024
@dailytabs
Copy link

Removing a dependency also doesn't remove it from VS Code Gradle plugin tree list. Likely same core issue - not updating properly on changes to build.gradle file. Restarting seems to be only thing that works. Been sketchy for a while, now.

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