redhat-developer / redhat-developer/vscode-java

support relative paths when configuring jdk

Open
#4,318 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

my project's jdk is located in a directory relative to the project root, but specifying a relative path does not seem to be supported:

{
    "java.jdt.ls.java.home": "./jdk"
    // also doesn't work:
    // "java.jdt.ls.java.home": "${workspaceFolder}/jdk"
}

it would be nice if i could do this because it would allow me to commit this in my workspace settings.json so that others working on my project don't have to configure the path to their jdk manually, since it's located in the same spot for everybody

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the extension's handling of the java.jdt.ls.java.home setting and how workspace paths are resolved. Check the behavior of both ./jdk and ${workspaceFolder}/jdk from a workspace settings.json, then verify that a project-relative JDK path works consistently for other contributors.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.