-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support use of environment variables in vmArgs
#1277
Comments
Maybe I did not understand your request correct but I am using environment variables in vmArgs. The syntax is ${env:PWD} see the answer here: https://stackoverflow.com/questions/72118677/set-vs-code-launch-json-to-use-windows-environment-variables |
I am experiencing the same behavior. Version: 1.91.0 (Universal) Using graalvm-jdk-22.0.1+8.1 The launch configuration is:
While the actual values that WOULD be passed to Running this configuration produces the following command line:
As you can see the variables
... as you can see there are no values following the The same behavior is seen using the ADDENDUM: as a workaround I do not use environment variables in this context, but rather hardcode the values I need directly on the value of the |
VS Code itself already supports the predefined variables such as I believe the supported environment variable replacement should already exist in your machine's enviroment variable list, not the |
I am not able to use environment variables in
vmArgs
properties inlaunch.json
this does not work:
I get error:
this works:
Environment
Version: 1.74.2 (Universal)
Commit: e8a3071ea4344d9d48ef8a4df2c097372b0c5161
Date: 2022-12-20T10:26:09.430Z (3 days ago)
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
0.25.7 microsoft extension pack for Java
Steps To Reproduce
[attach a sample project reproducing the error]
attach logs
Current Result
Expected Result
Additional Informations
The text was updated successfully, but these errors were encountered: