question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maven spring-boot:run slows down live hover hint significantly.

See original GitHub issue

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:

[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
  1. 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.
  2. 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.
  3. 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:closed
  • Created 3 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
argusercommented, Dec 15, 2020

@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

0reactions
shanewaz-abbascommented, Feb 5, 2021

Issue still happening for me. Unfortunately.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found