-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix #7973: Collect env vars lowercase on windows #8082
Conversation
@dschafhauser, I have added the two new env variables with I started the backend, I added the sample I can confirm, |
@kittaakos Do you need to restart Theia from a new terminal to pick up changes to env variables? I am not sure, maybe your Theia does not have it on startup. You could try to debug changed code and see whether process.env has them. |
Sorry, I don't have a WINDOW environment to test it, someone else will have to test it |
I think the following way should work more reliably. Starting with a fresh CMD:
Could you try this, @kittaakos ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have verified it on Windows; it worked. I did the followings:
C:\Users\kittaakos\dev\git\theia>yarn rebuild:electron
yarn run v1.21.1
$ theia rebuild:electron
Processing @theia/node-pty
Processing nsfw
Processing native-keymap
Processing find-git-repositories
√ Rebuild Complete
Done in 66.52s.
C:\Users\kittaakos\dev\git\theia>SET var_lower=VAR_LOWER_value
C:\Users\kittaakos\dev\git\theia>SET VAR_UPPER=VAR_UPPER_value
C:\Users\kittaakos\dev\git\theia>echo %var_lower%
VAR_LOWER_value
C:\Users\kittaakos\dev\git\theia>echo %VAR_UPPER%
VAR_UPPER_value
C:\Users\kittaakos\dev\git\theia>echo %VAR_LOWER%
VAR_LOWER_value
C:\Users\kittaakos\dev\git\theia>echo %var_upper%
VAR_UPPER_value
C:\Users\kittaakos\dev\git\theia>yarn --cwd examples\\electron start
yarn run v1.21.1
Does anyone want to check on macOS/Linux? |
- Populate local copy of environment variables with lowercase keys if on Windows platform - Fix #7973: Environment variables are not retrieved properly on Windows - Update changelog Signed-off-by: David Schafhauser <schafhauser.david@gmail.com>
Changes look good to me too, @kittaakos feel free to merge if the build is green. |
Thank you for the fix, @dschafhauser 👍 |
What it does
How to test
Output before fix:
Output after fix:
Review checklist
Reminder for reviewers