-
Notifications
You must be signed in to change notification settings - Fork 446
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
Maven spring-boot:run slows down live hover hint significantly. #1743
Comments
See https://docs.microsoft.com/en-us/windows/wsl/compare-versions#exceptions-for-using-wsl-1-rather-than-wsl-2 BTW, Remote WSL is how VS Code recommends for WSL scenarios. |
Thank you for replying! I am aware of the issue with slow access in windows file system with wsl2. My project folders are all under linux file system. I open and run my projects under remote wsl extension as recommended already. I believe I have everything runs under wsl2, no cross platform of any kinds that I know of. So I don't think it's the issue with accessing windows file system under wsl2. This issue happened after I upgraded to the newest vscode version last Friday. Everything worked fine before that. I tried to install previous versions of redhat.java with no improvement. Any helps will be very much appreciated! |
I somehow managed to reproduce it in WSL. CPU: Xeon E5-1620 v4 @ 3.50GHz, 4 cores At first, it was WSL 1 (although I set default WSL version to 2, it turned out vscode launched version 1). Checking the LS log, I find:
Later I switched it to WSL 2 using below commands. C:\Users\username>wsl -l -v
NAME STATE VERSION
* Ubuntu-18.04 Running 1
C:\Users\username>wsl --set-version Ubuntu-18.04 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Conversion complete.
C:\Users\username>wsl -l -v
NAME STATE VERSION
* Ubuntu-18.04 Stopped 2 And I find it doesn't matter whether I run |
Hello @khe817, I'm experiencing something similar since Friday. I'm not sure if this is related to the Docker Desktop update or the VSCode/VSCode Extension update which also been around Friday. Do you experience slow code navigation and step debugging? |
@arguser, I experience slow code navigation and step debugging too. Basically, running Update: Running |
@khe817 I'm trying the previous VSCode version: 1.51.1, going to report back if this work better. UPDATE: It does definitely work better, go download https://code.visualstudio.com/updates/v1_51 |
I am running into the same issue with a spring app. This app is running in remote host using ssh. As soon as I start the debugger everything becomes super slow. Downgrading vscode solves the issue.
|
This might be caused by vscode's new automatic port forwarding feature which scans the remote OS for available ports in order to forward them locally (microsoft/vscode#112843) |
The issue has been fixed in the newest version of VSCode 1.53.0. |
Issue still happening for me. Unfortunately. |
When I open a Maven Spring Boot project, the Java language server starts up fine, live hover hint works fast (within 20ms - 30ms).
Then I start
$ mvn spring-boot:run
command in an bash command line window. The language server switches to being very slow with response time for live hover hint around 7000ms:Cleaning the Java language server workspace does not fix the issue.
Environment
Steps To Reproduce
$ mvn spring-boot:run
. Wait for Spring Boot to finish starting up.Additional Informations
While Spring Boot is up and running in the WSL bash command line window. I keep seeing this log recurring in Developer Tool console log window:
The text was updated successfully, but these errors were encountered: