Skip to content
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

printEnvVariablesToFile.py overwrites itself if invoked without arguments #24487

Merged
merged 3 commits into from
Nov 26, 2024

Conversation

joar
Copy link

@joar joar commented Nov 25, 2024

I saw the command in my terminal when launching the editor, was curious to see what it did, so I ran it again without arguments, expecting to get a --help-like message, instead it ended up overwriting itself.

This change changes the script's default behavior (default being the invocation without arguments) from overwriting itself to throwing an exception about a missing output file argument.

karthiknadig
karthiknadig previously approved these changes Nov 25, 2024
@karthiknadig karthiknadig self-assigned this Nov 25, 2024
@vs-code-engineering vs-code-engineering bot added this to the November 2024 milestone Nov 25, 2024
@karthiknadig karthiknadig added the bug Issue identified by VS Code Team member as probable bug label Nov 25, 2024
@joar
Copy link
Author

joar commented Nov 25, 2024

Lint fails disproportionately to my contributions.

@joar
Copy link
Author

joar commented Nov 25, 2024

Opened #24488 to fix ruff 0.8.0 issues.

Edit: I also saw that #24484 is WIP

@karthiknadig
Copy link
Member

Thanks for the PR fixing the bug and all the linting fixes. This is awesome.

joar added 2 commits November 26, 2024 11:46
…ents

I was the command in my terminal when launching the editor, was curious to see what it did, so I ran it again without arguments, expecting to get a `--help`-like message, instead it ended up overwriting itself.

This change changes the script's default behavior (default being the invocation without arguments) from overwriting itself to throwing an exception about a missing output file argument.
@joar
Copy link
Author

joar commented Nov 26, 2024

Lint issues have been

Copy link
Member

@luabud luabud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for the contribution! :)

@karthiknadig karthiknadig merged commit 3f58831 into microsoft:main Nov 26, 2024
46 checks passed
@joar joar deleted the patch-1 branch November 27, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants