vscode-java icon indicating copy to clipboard operation
vscode-java copied to clipboard

Relative Path for java.home

Open hannah23280 opened this issue 4 years ago • 4 comments

Hi, From the description of java.home, it stated "absolute path....". Is there any possibility to support relative path? A good use case is that when we configure as relative path, we can check in our setting file to source control to share with rest of other co-developer, who would have the jdk in the same relative path (but not necessarily same absolute path)

hannah23280 avatar Apr 02 '20 11:04 hannah23280

Alternatively, we can find a way to allow the use of variable such as ${workspaceFolder}/java1.8.0_77 in java.home.

hannah23280 avatar Apr 21 '20 09:04 hannah23280

Hi, In case anyone might not be aware, Quoted from a post in vscode forum

"In VS Code 1.42 we will introduce a new hook resolveDebugConfigurationWithSubstitutedVariables in the extension API that receives the debug configuration with all variables resolved."

Not sure if this hook will help to support variable expansion

hannah23280 avatar Apr 25 '20 03:04 hannah23280

Any intention/plan to cater relative path for java.home or involve the use of variable expansion method?

hannah23280 avatar Jun 20 '20 04:06 hannah23280

Has this issue ever been considered? It would help with other build tools that manage the toolchain, like Bazel.

rrmcguinness avatar Sep 12 '22 17:09 rrmcguinness