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

Update x.ps1 #116590

Closed
wants to merge 1 commit into from
Closed

Update x.ps1 #116590

wants to merge 1 commit into from

Conversation

Aksh-Raizada
Copy link

-Used a more descriptive variable name for $xpy_args ($xpyArgs or $pythonScriptArgs is more descriptive.)
-Added a comment to the Invoke-Application() function to explain why the $handle variable is cached.
-Used a more descriptive error message in the msg\ variable.
-Added a link to the Python documentation in the help: section of the error message.

-Used a more descriptive variable name for $xpy_args ($xpyArgs or $pythonScriptArgs is more descriptive.)
-Added a comment to the Invoke-Application() function to explain why the $handle variable is cached.
-Used a more descriptive error message in the <span class="math-inline">msg\ variable.
-Added a link to the Python documentation in the help: section of the error message.
@rustbot
Copy link
Collaborator

rustbot commented Oct 10, 2023

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @Mark-Simulacrum (or someone else) soon.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Oct 10, 2023
Copy link
Contributor

@kadiwa4 kadiwa4 left a comment

Choose a reason for hiding this comment

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

The comment in Invoke-Application and the Python link were already there.

# Start-Process for some reason splits arguments on spaces. (Isn't powershell supposed to be simpler than bash?)
# Double-quote all the arguments so it doesn't do that.
$xpy_args = @("""$xpy""")
$pythonScriptArgs = @("$($PSScriptRoot)\x.py")
Copy link
Contributor

Choose a reason for hiding this comment

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

Does that work when there's a space in the value of $PSScriptRoot?
And why did you remove the comment?

@ChrisDenton
Copy link
Member

Why change the number of spaces to indent by? This seems like unnecessary churn and obscures the actual changes.

Comment on lines -60 to +61
$msg = "${PSCommandPath}: error: did not find python installed`n"
$msg = "${PSCommandPath}: error: could not find a compatible Python installation`n"
Copy link
Member

Choose a reason for hiding this comment

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

This just seems like a longer way to say the exact same thing, no? Personally I'd prefer to keep the succinct version unless there's something more actionable to add.

@ChrisDenton ChrisDenton added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 15, 2023
@bors
Copy link
Contributor

bors commented Oct 23, 2023

☔ The latest upstream changes (presumably #117071) made this pull request unmergeable. Please resolve the merge conflicts.

@ChrisDenton
Copy link
Member

Closing due to lack of activity. If you'd like to continue working on this please reopen before pushing any new commits.

@ChrisDenton ChrisDenton closed this Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants