Skip to content

Maven spring-boot:run slows down Java and TS/JS language servers #112581

@khe817

Description

@khe817

When I start $ mvn spring-boot:run command in a bash command line window. The Java and TS/JS language servers switch to being very slow with response time for live hover hint around 7000ms (normally it's within 20ms - 30ms):

[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: []
  • VSCode Version: 1.52.0
  • OS Version: WSL v.2 (Window Subsystem in Linux version 2) version "4.19.128-microsoft-standard" inside "Windows_NT x64 10.0.18363"

Steps to Reproduce:

  1. Open a project in VScode with redhat.java (uses Java language server) and baeumer.vscode-eslint (uses TS/JS language server) extensions enabled. 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.

Related issue I opened in redhat.java repository: redhat-developer/vscode-java#1743

Metadata

Metadata

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions