Environment variables are not retrieved properly on Windows #7973
Labels
bug
bugs found in the application
help wanted
issues meant to be picked up, require help
OS/Windows
issues related to the Windows OS
variable-resolver
issues related to the variable-resolver extension
Bug Description:
Only environment variables which are entirely lowercase will be resolved properly by
EnvVariablesServerImpl
.Steps to Reproduce:
Possible fix
Lookup of variables on Windows is always lowercase:
theia/packages/core/src/node/env-variables/env-variables-server.ts
Lines 45 to 50 in 751a3d7
However, the population of
envs
is with the actual names of the variables which might have arbitrary case:theia/packages/core/src/node/env-variables/env-variables-server.ts
Lines 30 to 35 in 751a3d7
See discussion on Spectrum:
https://spectrum.chat/theia/general/how-to-resolve-environment-variables-in-a-launch-json-configuration~59464670-cb02-4b9d-8f05-084ffe96753f?m=MTU5MTM2NjIxODMwOA==
Additional Information
The text was updated successfully, but these errors were encountered: