-
Notifications
You must be signed in to change notification settings - Fork 442
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
There is no way to refresh the classpath after adding a library to gradle #3893
Comments
@zSynx94 I can't reproduce the issue. Could you attach a project example reproducing the error? |
i am having the same problem. @snjeza
What i found out while creating the example project: @zSynx94 are you also using "java.gradle.buildServer.enabled": "off"? |
@snjeza , are you and others able to confirm the problem also goes away when setting |
@rgrunber seems complicated.... i tried to reproduce your case and it didn't work... and then suddenly it worked i tried a bit more, if i understand it correctly, it behaves as following first case (starting with automatic):
second case (starting with interactive)
both times i also tried closing/reopening VS Code, but that did noch change anything for me so conclusion: |
@rgrunber Please see eclipse-jdtls/eclipse.jdt.ls#3349 (comment) |
@linuxhelf Could you try to set
to |
@snjeza auto.sync=true had no impact for me, only java.configuration.updateBuildConfiguration made a difference i tried both |
@snjeza I"m seeing the exact behaviour described in #3893 (comment). Looking into it, it seems to me like That probably would explain why changing from |
|
Right. When |
Ok, then I'll evaluate your PR while ignoring that bug. I'd also look back at old issues and see if this has ever been filed before. I'm surprised such an issue would have existed for so long, especially given |
The related PR - eclipse-jdtls/eclipse.jdt.ls#2224 |
I added a new library to my java project (org.lz4:lz4-java:1.8.0) but there is no way to get them indexed again.
I tried gradlew build and gradle --refresh-dependencies but it din't work.
Environment
Operating System: Windows 10 Enterprise LTSC 21H2
Visual Studio Code version: 1.85.2
Language Support for Java(TM) by Red Hat Version: 1.37.0
JDK: Amazon Corretto jdk1.8.0_432
Gradle Version: 4.7
Steps To Reproduce
Update/add dependencies to build.gradle file
Wait for it to update (nothing will happen)
Captures
The text was updated successfully, but these errors were encountered: