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

[SR-5994] Off by one error in URL description (swift REPL only) #4505

Closed
swift-ci opened this issue Sep 26, 2017 · 3 comments
Closed

[SR-5994] Off by one error in URL description (swift REPL only) #4505

swift-ci opened this issue Sep 26, 2017 · 3 comments
Assignees
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

Previous ID SR-5994
Radar rdar://problem/29795062
Original Reporter gwk (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

$ uname -v

Darwin Kernel Version 17.0.0: Thu Aug 24 22:01:05 PDT 2017; root:xnu-4570.1.46~3/RELEASE_X86_64

Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Bug
Assignee @poya
Priority Medium

md5: 2225b8215e13188ecbfd4009ead22a97

Issue Description:

URL description and debugDescription appear fine, but the "f" in "file" is missing in the object description in the REPL.

$ swift

Welcome to Apple Swift version 4.0 (swiftlang-900.0.63 clang-900.0.37). Type :help for assistance.

1> import Foundation

2> URL(fileURLWithPath: "a")

$R0: URL = "a – ile:///Users/gwk/"

3> URL(fileURLWithPath: "a").description

$R1: String = "a – file:///Users/gwk/"

4> URL(fileURLWithPath: "a").debugDescription

$R2: String = "a – file:///Users/gwk/"

@belkadan
Copy link

@swift-ci create

@keith
Copy link

keith commented Dec 30, 2017

You can also see this in lldb with just `p URL(fileURLWithPath: "a")`

@poya
Copy link

poya commented Nov 23, 2019

Fixed with #378

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 7, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

4 participants