Skip to content

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Apr 29, 2023

Should fix #14683
cc @jyn514

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 29, 2023
@jyn514
Copy link
Member

jyn514 commented Apr 29, 2023

Is there a way I can test this locally without having to wait for the weekly release?

@Veykril
Copy link
Member Author

Veykril commented Apr 29, 2023

I can kick off a nightly after this has been merged, then you can test it in an hour or two I think

@Veykril Veykril force-pushed the patch-vscode-paths branch from b261086 to 140e1d7 Compare April 29, 2023 17:36
@Veykril
Copy link
Member Author

Veykril commented Apr 29, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Apr 29, 2023

📌 Commit 140e1d7 has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 29, 2023

⌛ Testing commit 140e1d7 with merge fc8cfb2...

bors added a commit that referenced this pull request Apr 29, 2023
fix: Force InitializeParams windows path drives to uppercase

Should fix #14683
cc `@jyn514`
@bors
Copy link
Contributor

bors commented Apr 29, 2023

💔 Test failed - checks-actions

@Veykril Veykril force-pushed the patch-vscode-paths branch from 140e1d7 to 8f0c78b Compare April 29, 2023 17:45
@Veykril
Copy link
Member Author

Veykril commented Apr 29, 2023

@bors r+

@bors
Copy link
Contributor

bors commented Apr 29, 2023

📌 Commit 8f0c78b has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 29, 2023

⌛ Testing commit 8f0c78b with merge c18c562...

bors added a commit that referenced this pull request Apr 29, 2023
fix: Force InitializeParams windows path drives to uppercase

Should fix #14683
cc `@jyn514`
@bors
Copy link
Contributor

bors commented Apr 29, 2023

💔 Test failed - checks-actions

@Veykril
Copy link
Member Author

Veykril commented Apr 29, 2023

My god I hate the standard libraries path api so much

@bors r+

@Veykril Veykril force-pushed the patch-vscode-paths branch from 8f0c78b to 1edcefb Compare April 29, 2023 18:14
@bors
Copy link
Contributor

bors commented Apr 29, 2023

💡 This pull request was already approved, no need to approve it again.

  • This pull request previously failed. You should add more commits to fix the bug, or use retry to trigger a build again.

@bors
Copy link
Contributor

bors commented Apr 29, 2023

📌 Commit 8f0c78b has been approved by Veykril

It is now in the queue for this repository.

@Veykril
Copy link
Member Author

Veykril commented Apr 29, 2023

@bors r-
@bors r+

@bors
Copy link
Contributor

bors commented Apr 29, 2023

📌 Commit 1edcefb has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Apr 29, 2023

⌛ Testing commit 1edcefb with merge 7bcb4c2...

@bors
Copy link
Contributor

bors commented Apr 29, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 7bcb4c2 to master...

@bors bors merged commit 7bcb4c2 into rust-lang:master Apr 29, 2023
@Veykril Veykril deleted the patch-vscode-paths branch April 29, 2023 18:44
format!("{}:", d.to_ascii_uppercase() as char)
}
Prefix::VerbatimDisk(d) => {
format!(r"\\?\{}:\", d.to_ascii_uppercase() as char)
Copy link
Contributor

Choose a reason for hiding this comment

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

I apologize in advance for adding a comment in a PR long past, but should the trailing backslash be present in that UNC path prefix?

Asking because I'm fighting almost the exact same issue in my codebase and I'm not sure about this bit.

Copy link
Member Author

@Veykril Veykril May 13, 2023

Choose a reason for hiding this comment

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

Oh no, it should not I think. Though I don't think it makes a difference given how rust handles path appending

Copy link
Contributor

@mataha mataha May 13, 2023

Choose a reason for hiding this comment

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

Just checked - in this particular case it doesn't matter, though that's subject to change should the surrounding code get altered. I've opened #14799 to get it fixed.

bors added a commit that referenced this pull request May 13, 2023
Remove root component from patched Windows UNC path prefix

As it shouldn't be there to begin with (per discussion in #14689).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rust-analyzer uses lowercase letters for Windows drives
5 participants