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

code_utils.py powershell command bugfix in MacOS #1963

Merged
merged 21 commits into from
Mar 18, 2024

Conversation

abhaymathur21
Copy link
Contributor

Why are these changes needed?

Related issue number

Closes #1961

Checks

@abhaymathur21
Copy link
Contributor Author

@ekzhu could you take a look at this quickly? I'll add a PR description and fix the code formatting in the meanwhile

@ekzhu ekzhu requested review from LittleLittleCloud and BeibinLi and removed request for BeibinLi March 12, 2024 08:42
autogen/code_utils.py Outdated Show resolved Hide resolved
autogen/code_utils.py Outdated Show resolved Hide resolved
autogen/code_utils.py Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Mar 12, 2024

Codecov Report

Attention: Patch coverage is 62.50000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 48.25%. Comparing base (cc836de) to head (75414d7).

Files Patch % Lines
autogen/code_utils.py 62.50% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1963       +/-   ##
===========================================
+ Coverage   36.83%   48.25%   +11.42%     
===========================================
  Files          66       66               
  Lines        7058     7060        +2     
  Branches     1540     1669      +129     
===========================================
+ Hits         2600     3407      +807     
+ Misses       4232     3365      -867     
- Partials      226      288       +62     
Flag Coverage Δ
unittests 48.13% <62.50%> (+11.29%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abhaymathur21
Copy link
Contributor Author

@ekzhu @jackgerrits are these changes okay to merge or should I edit or add something else?

autogen/code_utils.py Outdated Show resolved Hide resolved
autogen/code_utils.py Outdated Show resolved Hide resolved
@ekzhu
Copy link
Collaborator

ekzhu commented Mar 14, 2024

@ekzhu @jackgerrits are these changes okay to merge or should I edit or add something else?

Need to fix the issues in the function. See my comments.

@ekzhu
Copy link
Collaborator

ekzhu commented Mar 16, 2024

Please fix the formatting issues.

fixed code format
@abhaymathur21
Copy link
Contributor Author

Please fix the formatting issues.

Done

@sonichi sonichi enabled auto-merge March 16, 2024 23:26
@sonichi sonichi disabled auto-merge March 18, 2024 02:59
@sonichi sonichi enabled auto-merge March 18, 2024 02:59
@sonichi
Copy link
Contributor

sonichi commented Mar 18, 2024

@jackgerrits this PR is blocked by your change request.

@sonichi sonichi added this pull request to the merge queue Mar 18, 2024
Merged via the queue into microsoft:main with commit 3a3d4cc Mar 18, 2024
53 of 65 checks passed
whiskyboy pushed a commit to whiskyboy/autogen that referenced this pull request Apr 17, 2024
* macos bugfix

* logs permissionerror warning only if lang is powershell command

* condensed the if statements down

* Update code_utils.py

* fixed formatting

* handled powershell_command = None case

* bugfix

* raising exceptions instead of logging warnings

* code formatting fixed

* removed return sh statement

* fixed code formatting

* update get_powershell_command

* Update code_utils.py

fixed code format

---------

Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Crash: PermissionDenied/"powershell" error on MacOS 14.3.1
5 participants