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: Clean Java Language Server Workspace" fails on Debian #2385

Closed
Nightenom opened this issue Apr 1, 2022 · 5 comments
Closed

"Java: Clean Java Language Server Workspace" fails on Debian #2385

Nightenom opened this issue Apr 1, 2022 · 5 comments

Comments

@Nightenom
Copy link

Nightenom commented Apr 1, 2022

Calling command "Java: Clean Java Language Server Workspace" results in error after window reload. The extension then looks like it did not clean itself up. Reproducibility 99% - the 1% stands for when the extension itself crash before, then I can clean without error.

Environment
  • Operating System: Debian GNU/Linux 11 (bullseye)
  • uname -a: Linux user 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
  • JDK version: Java: 17.0.2 JVM: 17.0.2+8(Eclipse Adoptium) Arch: amd64
  • Visual Studio Code version: 1.65.2
  • Java extension version: v1.4.0
Steps To Reproduce

My app is not some kind of special setup. Just simple gradle project on J17 without modules. Publishing-stripped build.gradle attached with logs. Wrapper/Gradle version 7.4.1-all

  1. Press F1 and select "Java: Clean Java Language Server Workspace"
  2. Watch the vscode window reload
  3. Error message appears

logs
The logs probably also contains errors when I try to rename variable in lambda with code-block.

Current Result

Error message https://gist.github.com/Nightenom/ad852ae779e185e8b5d140e0a96199eb#file-error-message

Expected Result

No error message

Additional Informations

Possibly does not happen on Windows with same project, but have not try yet

@rgrunber
Copy link
Member

rgrunber commented May 28, 2022

What happens if you remove /media/user/progs/apps/linux64/vscode/data/user-data/User/workspaceStorage/cde71673b983c4eb779005d3a8ee6a2e/ and try the same thing again (ie. loading the project, maybe cleaning the workspace, etc.) ? Does the problem still occur ?

The failure to delete in your logs might be related to java.configuration.workspaceCacheLimit. By default it is set to 90 (days), so it attemps to remove the Java language server directories under that workspace that haven't been modified in that time period. It should remove the folder recursively though so not sure why it failed due to a non-empty directory.

@snjeza
Copy link
Contributor

snjeza commented May 28, 2022

Related issue - #2471

@Nightenom
Copy link
Author

What happens if you remove /media/user/progs/apps/linux64/vscode/data/user-data/User/workspaceStorage/cde71673b983c4eb779005d3a8ee6a2e/ and try the same thing again (ie. loading the project, maybe cleaning the workspace, etc.) ? Does the problem still occur ?

Obviously I can achieve cleaning by removing that directory, although the issue remains even on fresh new setup.

Related issue - #2471

Seems true, will wait for update

@snjeza
Copy link
Contributor

snjeza commented May 28, 2022

@Nightenom
Copy link
Author

Nightenom commented Jun 3, 2022

Seems to be fixed in 1.7.0 which contains previously mentioned fix

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

No branches or pull requests

3 participants