Maven spring-boot:run slows down live hover hint significantly.
See original GitHub issueWhen 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:
[Trace - 11:51:59 AM] Sending request 'java/findLinks - (24)'.
Params: {
"type": "superImplementation",
"position": {
"textDocument": {
"uri": "file:///home/user/.../PublicationIndexController.java"
},
"position": {
"line": 31,
"character": 13
}
}
}
[Trace - 11:52:06 AM] Received response 'java/findLinks - (24)' in 6999ms.
Result: []
Cleaning the Java language server workspace does not fix the issue.
Environment
- Operating System: WSL v.2 (Window Subsystem in Linux version 2) version “4.19.128-microsoft-standard” inside “Windows_NT x64 10.0.18363”
- JDK version: 11.0.9.1
- Visual Studio Code version: 1.52.0
- Java extension version: 0.72.0
Steps To Reproduce
- Start up a Maven Spring Boot project in VSCode with redhat.java extension enabled. Wait for Java language server to finish starting up. Test live hover hint to see that it works normally.
- Open an independent bash command line window (does not matter if it’s a terminal inside VSCode or outside VSCode) in WSL. Run command
$ mvn spring-boot:run. Wait for Spring Boot to finish starting up. - Try live hover hint in VSCode again. This time, it’s very slow.
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:
Extension Host workbench.desktop.main.js:5009 Extension Host
Debugger attached. workbench.desktop.main.js:5009 Debugger attached.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
mvn spring-boot:run slow compared to java -jar xxx.jar
The app works, but it seems to be very slow when started with mvn spring-boot:run. It is not the app startup that is...
Read more >Running a Spring Boot App with Maven vs an Executable Jar
In this tutorial, we'll explore the differences between starting a Spring Boot web application via the mvn spring-boot:run command and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@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
Issue still happening for me. Unfortunately.