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

"Java: Update Project" does not refresh dependencies in multi project Gradle #1745

Closed
nyonson opened this issue Dec 16, 2020 · 2 comments
Closed

Comments

@nyonson
Copy link

nyonson commented Dec 16, 2020

Removing a dependency from a project's build.gradle dependency list is not reflected in Code Lens after updating the project.

Environment
  • Operating System: Linux
  • JDK version: java.home is on 11, the project is on 8
  • Visual Studio Code version:

Version: 1.52.0
Commit: 940b5f4bb5fa47866a54529ed759d95d09ee80be
Date: 2020-12-14T01:03:33.963Z
Electron: 9.4.0
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.9.14-arch1-1

  • Java extension version: v0.72.0
Steps To Reproduce
  1. Remove a dependency from the compile configuration in a project's build.gradle
  2. Run "Update Project"
  3. View code of class which references removed dependency

Sample project which shows issue: https://git.sr.ht/~yonson/multiproject

Can test by removing the Joda dependency.

Current Result

Code lens keeps suggesting classes from removed dependency and the existing imports are not marked as errors.

Expected Result

Existing imports are marked as errors and no longer suggested.

@snjeza
Copy link
Contributor

snjeza commented Dec 16, 2020

A duplicate of #1714
See #1617 and #1558 (comment)

@snjeza snjeza closed this as completed Dec 16, 2020
@nyonson
Copy link
Author

nyonson commented Dec 16, 2020

Sorry about the dupe, I'll follow the upstream PR

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

No branches or pull requests

2 participants