Skip to content

Support use of environment variables in classPaths #1276

Open
@siddjain

Description

@siddjain

w.r.t. launch.json, this does not work:

"classPaths": [
                "$Auto",
                "$HOME/.m2/repository/com/oracle/database/jdbc/ojdbc10/19.15.0.0.1/ojdbc10-19.15.0.0.1.jar"
            ]

The classes pointed to by $HOME/.m2/repository/com/oracle/database/jdbc/ojdbc10/19.15.0.0.1/ojdbc10-19.15.0.0.1.jar are not available to the Java program.

if I replace $HOME with its actual value, it works e.g.:

"classPaths": [
                "$Auto",
                "/Users/me/.m2/repository/com/oracle/database/jdbc/ojdbc10/19.15.0.0.1/ojdbc10-19.15.0.0.1.jar"
            ]
Environment
  • Operating System: Mac OS Big Sur
  • JDK version: 17
  • Visual Studio Code version:

Version: 1.74.2 (Universal)
Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161
Date: 2022-12-20T10:26:09.430Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Darwin x64 20.6.0
Sandboxed: No

  • Java extension version:
  • Java Debugger extension version:
Steps To Reproduce
  1. [step 1]
  2. [step 2]

[attach a sample project reproducing the error]
attach logs

Current Result
Expected Result
Additional Informations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions