-
Notifications
You must be signed in to change notification settings - Fork 175
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
Windows file URL
prepends "/" at beginning of path
property, breaking compatibility
#857
Comments
URL
prepends "/" at beginning of path
propertyURL
prepends "/" at beginning of path
property, breaking compatibility
@jrflat I believe this is the new behavior of |
Interesting! I guess my issue with I often use |
@jmschonfeld Yeah I think we were just discussing there could be merit in moving Windows path logic (replacing |
Any update on this? @ahoppen mentioned it breaks sourcekit-lsp on Windows. |
Yes, apologies for the delay! Opened a PR to resolve the leading slash issue. I think in the future it could also be a good idea for |
I’m still seeing this behavior in 6.0.2.
prints Was this fix not cherry-picked to 6.0.2 after all The issue does appear to be fixed on |
This was cherry-picked to 6.0.2 in #983, I'll try to find a recent 6.0.2 Windows toolchain to confirm. |
@ahoppen works with this 6.0.2 toolchain https://ci-external.swift.org/job/swift-6.0.2-windows-toolchain-arm64/12/artifact/build/artifacts/ |
Works for me on the Windows 6.0.2 x86_64 release toolchain available on https://swift.org/download |
Ah, I think I forgot that there was still #977. Sorry for the confusion. |
For example, initialize a simple file URL and print its path:
In Swift 5.10.1, you get:
C:/Test
In Swift 6.0 (August 7 snapshot) you get:
/C:/Test
Maybe this is intended, but it definitely breaks my usage of passing file URL paths as arguments into a spawned
Process
for my build tools.The text was updated successfully, but these errors were encountered: