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

Adapt paths and line breaks for Windows #5471

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

ahmedyarub
Copy link
Contributor

@ahmedyarub ahmedyarub commented Oct 13, 2023

Fix typos

Checklist

  • I have filed an issue about this change and discussed potential changes with the maintainers.
  • I have received the approval from the maintainers to make this change.
  • This is not a stylistic, refactoring, or cleanup change.

Please note that the maintainers will not be reviewing this change until all checkboxes are ticked. See
the Contributions section in the README for more
details.

Discussion thread for this change

Issue number: 5470

Description of this change

Fix directory separators and line-breaks on Windows, and fix some typos.

Closes #5470

@google-cla
Copy link

google-cla bot commented Oct 13, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@github-actions github-actions bot added product: CLion CLion plugin product: IntelliJ IntelliJ plugin product: GoLand GoLand plugin awaiting-review Awaiting review from Bazel team on PRs labels Oct 13, 2023
@sgowroji sgowroji added awaiting-user-response Awaiting response from author on PRs and removed awaiting-review Awaiting review from Bazel team on PRs labels Oct 13, 2023
@sgowroji
Copy link
Member

Hi @ahmedyarub, Could you please sign the CLA?

@tpasternak
Copy link
Collaborator

I would run both replacements conditionally, only for non-WSL WIndows. In unix systems you can have backslash in a filename (try mkdir a\\b).

Same story for \r, just because it's not required outside Windows

@agluszak
Copy link
Collaborator

I would run both replacements conditionally, only for non-WSL WIndows. In unix systems you can have backslash in a filename (try mkdir a\\b).

Same story for \r, just because it's not required outside Windows

Good catch

@ahmedyarub
Copy link
Contributor Author

I would run both replacements conditionally, only for non-WSL WIndows. In unix systems you can have backslash in a filename (try mkdir a\\b).

Same story for \r, just because it's not required outside Windows

Made the changes by copying the checks from other parts of the code. I couldn't find a specific check for WSL. It seems to me that SystemInfo.isWindows is enough.

@mai93 mai93 removed their assignment Oct 13, 2023
@ahmedyarub
Copy link
Contributor Author

Do I need to add anything here?

Copy link
Collaborator

@blorente blorente left a comment

Choose a reason for hiding this comment

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

Thanks for adding the changes!
Please note that CI doesn't run on Windows, so it might break in the future.

@blorente blorente merged commit 9aeb741 into bazelbuild:master Oct 18, 2023
6 checks passed
@ahmedyarub ahmedyarub deleted the ay/windows_fixes branch October 18, 2023 22:53
@ahmedyarub
Copy link
Contributor Author

Thanks for adding the changes! Please note that CI doesn't run on Windows, so it might break in the future.

Just tag me anytime a bug is reported and I'll make sure to fix it ASAP. I appreciate this great project really!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-user-response Awaiting response from author on PRs product: CLion CLion plugin product: GoLand GoLand plugin product: IntelliJ IntelliJ plugin
Projects
Development

Successfully merging this pull request may close these issues.

Loading workspaces fails on Windows
6 participants