Skip to content

printEnvVariablesToFile.py overwrites itself if invoked without arguments - #24487

Merged
Karthik Nadig (karthiknadig) merged 3 commits into
microsoft:mainfrom
joar:patch-1
Nov 26, 2024
Merged

Karthik Nadig (karthiknadig) merged 3 commits into
microsoft:mainfrom
joar:patch-1

Conversation

@joar

Copy link
Copy Markdown

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.

@vs-code-engineering vs-code-engineering Bot added this to the November 2024 milestone Nov 25, 2024
@karthiknadig Karthik Nadig (karthiknadig) added the bug Issue identified by VS Code Team member as probable bug label Nov 25, 2024
@joar

Copy link
Copy Markdown
Author

Lint fails disproportionately to my contributions.

@joar

Joar Wandborg (joar) commented Nov 25, 2024 •

Copy link
Copy Markdown
Author

Opened #24488 to fix ruff 0.8.0 issues.

Edit: I also saw that #24484 is WIP

@karthiknadig

Copy link
Copy Markdown
Member

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

…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
Copy Markdown
Author

Lint issues have been

@luabud Luciana Abud (luabud) left a comment

Copy link
Copy Markdown
Member

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
Karthik Nadig (karthiknadig) merged commit 3f58831 into microsoft:main Nov 26, 2024
@joar
Joar Wandborg (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

3 participants