-
Notifications
You must be signed in to change notification settings - Fork 159
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
URL.path returns forward slashes instead of backslashes on Windows #973
Comments
ahoppen
added a commit
to ahoppen/sourcekit-lsp
that referenced
this issue
Oct 21, 2024
…disk `URL.path` returns forward slashes in the path on Windows (swiftlang/swift-foundation#973) where we expect backslashes. Work around that by defining our own `filePath` property that is backed by `withUnsafeFileSystemRepresentation`, which produces backslashes. rdar://137963660
ahoppen
added a commit
to ahoppen/sourcekit-lsp
that referenced
this issue
Oct 21, 2024
…disk `URL.path` returns forward slashes in the path on Windows (swiftlang/swift-foundation#973) where we expect backslashes. Work around that by defining our own `filePath` property that is backed by `withUnsafeFileSystemRepresentation`, which produces backslashes. rdar://137963660
ahoppen
added a commit
to ahoppen/sourcekit-lsp
that referenced
this issue
Oct 21, 2024
…disk `URL.path` returns forward slashes in the path on Windows (swiftlang/swift-foundation#973) where we expect backslashes. Work around that by defining our own `filePath` property that is backed by `withUnsafeFileSystemRepresentation`, which produces backslashes. rdar://137963660
ahoppen
added a commit
to ahoppen/sourcekit-lsp
that referenced
this issue
Oct 21, 2024
…disk `URL.path` returns forward slashes in the path on Windows (swiftlang/swift-foundation#973) where we expect backslashes. Work around that by defining our own `filePath` property that is backed by `withUnsafeFileSystemRepresentation`, which produces backslashes. rdar://137963660
ahoppen
added a commit
to ahoppen/sourcekit-lsp
that referenced
this issue
Oct 21, 2024
…disk `URL.path` returns forward slashes in the path on Windows (swiftlang/swift-foundation#973) where we expect backslashes. Work around that by defining our own `filePath` property that is backed by `withUnsafeFileSystemRepresentation`, which produces backslashes. rdar://137963660
ahoppen
added a commit
to ahoppen/sourcekit-lsp
that referenced
this issue
Oct 21, 2024
…disk `URL.path` returns forward slashes in the path on Windows (swiftlang/swift-foundation#973) where we expect backslashes. Work around that by defining our own `filePath` property that is backed by `withUnsafeFileSystemRepresentation`, which produces backslashes. rdar://137963660
ahoppen
added a commit
to ahoppen/sourcekit-lsp
that referenced
this issue
Oct 21, 2024
…disk `URL.path` returns forward slashes in the path on Windows (swiftlang/swift-foundation#973) where we expect backslashes. Work around that by defining our own `filePath` property that is backed by `withUnsafeFileSystemRepresentation`, which produces backslashes. rdar://137963660
ahoppen
added a commit
to ahoppen/sourcekit-lsp
that referenced
this issue
Oct 21, 2024
…disk `URL.path` returns forward slashes in the path on Windows (swiftlang/swift-foundation#973) where we expect backslashes. Work around that by defining our own `filePath` property that is backed by `withUnsafeFileSystemRepresentation`, which produces backslashes. rdar://137963660
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both print statements above print
C:/Users/alex
. I think they should printC:\Users\alex
.Maybe worth noting: Using
withUnsafeFileSystemRepresentation
returns backslashes. Should that be exposed throughURL.path
?The text was updated successfully, but these errors were encountered: