Skip to content

java.configuration.runtimes in settings.json are ignored #2001

Closed
@william-mason

Description

@william-mason

[provide a description of the issue]

Environment
  • Operating System: Ubuntu linux 20.10
  • JDK version: several -- 1.8, 16
  • Visual Studio Code version: 1.52.1
  • Java extension version: v0.78.0
Steps To Reproduce
  1. Open VS Code
  2. Open settings preferences
  3. Enter/search for: java.configuration.runtimes
  4. Enter name and path for different JDK-s
  5. Nominate a default

There is no project yet -- I can't even establish a session with the JDK of choice. Also the plugin goes off and finds some Java JDK-s that are not the ones I wish to use. There does not seem to be any place were I can say what I need to use in the project.

Please attach logs

  • This gave me the following error:

    Command 'Java: Open Java Language Server Log File' resulted in an error (command 'java.open.serverLog' not found)
    
Current Result
  • JDK-s configured do not show in the 'Configure Java Runtime' on any tab.
Expected Result
  • I at least wanted to see the Java versions I entered show up as project JDK-s
  • I would also like them to show in the list of "instaled Java-s"
  • I would like a place where I can explicitly specify which Java versions I want the Java Plugin to recognise -- ALL those I want to use at a particular time and No Other JDK-s even if there are installed.
    • Not all the relevant JDK-s are available in "expected" locations
Additional Informations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions