You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51)
Target: x86_64-apple-darwin19.4.0
macOS 10.15.4 (19E287)
Additional Detail from JIRA
Votes
4
Component/s
LLDB for Swift
Labels
Bug
Assignee
None
Priority
Medium
md5: c4a66f09eae9eed18c3196bcb495e01b
Issue Description:
Given the following program:
import AppKit
letpanel=NSOpenPanel()
panel.canChooseDirectories = true
guard panel.runModal()==.OK else{fatalError()}leturl= panel.url
// breakpoint #​1: v urlprint(String(describing: url))
if let nonOptionalURL:URL= url {// breakpoint #​2: v nonOptionalURLprint(nonOptionalURL)letoptionalURL:URL?= url
// breakpoint #​3: v optionalURLprint(String(describing: optionalURL))}
At breakpoint #1, lldb's frame variable reports that url is nil, even when it is not.
At breakpoint #2, frame variable reports that nonOptionalURL is {}, whatever that even means.
At breakpoint #3, frame variable cannot find optionalURL at all; however, from my testing the problem also remains when using nonOptionalURL as an argument to a function taking a URL?.
Please consult the attached output for specifics.
The text was updated successfully, but these errors were encountered:
Attachment: Download
Environment
Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51)
Target: x86_64-apple-darwin19.4.0
macOS 10.15.4 (19E287)
Additional Detail from JIRA
md5: c4a66f09eae9eed18c3196bcb495e01b
Issue Description:
Given the following program:
At breakpoint #1,
lldb
'sframe variable
reports thaturl
isnil
, even when it is not.At breakpoint #2,
frame variable
reports thatnonOptionalURL
is {}, whatever that even means.At breakpoint #3,
frame variable
cannot findoptionalURL
at all; however, from my testing the problem also remains when usingnonOptionalURL
as an argument to a function taking aURL?
.Please consult the attached output for specifics.
The text was updated successfully, but these errors were encountered: