Skip to content

VSCode Spring boot tools 1.30.0 error trying to find JVM #726

Closed

Description

@RohacRichard

Describe the bug
This morning there was a new version of Spring boot tools installed to my VS code instance. I was unable to start any Spring projects from dashboard. I managed to resolve the problem by downgrading to previous version. Maybe there is problem with something on my side. Just throwing this out in case anybody else has this problem.

To Reproduce
Install Spring boot tools 1.30.0 and restart java workspace. Throws this error:
Screenshot 2022-02-02 134256

Activity

  1. BoykoAlex commented on Feb 2, 2022

    @BoykoAlex
    Contributor

    Looks like the issue is:

    ChildProcess.execSync(javaExecutable + ' --list-modules', {windowsHide: true, encoding: 'utf8'});
    

    command string doesn't like spaces in paths./ Need to wrap javaExecutable in double quotes.

    The workaround would be to have Java somewhere under the path not having spaces :-/

  2. BoykoAlex commented on Feb 2, 2022

    @BoykoAlex
    Contributor

    Feel free to remove java home setting value in your VSCode settings. New Java extension for vscode comes with embedded java. If your vscode is located under the path without space then everything should start working if you remove java home setting from VSCode settings.

  3. BoykoAlex commented on Feb 2, 2022

    @BoykoAlex
    Contributor

    Fixed with 1980919. Should be available in 1.31

  4. added
    for: vscode
    and removed on Feb 3, 2022
  5. added this to the 4.14.0.RELEASE milestone on Feb 3, 2022
  6. martinlippert commented on Feb 3, 2022

    @martinlippert
    Member

    We are in the process of pushing out another update release to get this into the hands of our users quickly. Stay tuned.

  7. martinlippert commented on Feb 4, 2022

    @martinlippert
    Member

    Update releases with a fix for this published on the VSCode marketplace.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: vscodetype: bugtype: install-issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions