Navigation Menu

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-10684] LLDB fails to get context or resolve identifier in protocol extensions and generic functions #4339

Closed
jpsim opened this issue May 14, 2019 · 2 comments
Labels
bug Something isn't working LLDB for Swift

Comments

@jpsim
Copy link

jpsim commented May 14, 2019

Previous ID SR-10684
Radar None
Original Reporter @jpsim
Type Bug
Status Resolved
Resolution Done

Attachment: Download

Environment

macOS Mojave 10.14.5 (18F132)
Xcode 10.2.1 (10E1001)
Apple Swift version 5.0.1 (swiftlang-1001.0.82.4 clang-1001.0.46.5)
Target: x86_64-apple-darwin18.6.0

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

md5: 84982b8a80323f0a719a6dcf7d77af5b

Issue Description:

It's very common to get errors such as

po thing
error: <EXPR>:3:1: error: use of unresolved identifier 'thing'
thing
^~~~~

or

po thing
error: <EXPR>:1:11: error: use of undeclared type '$__lldb_context'
extension $__lldb_context {
          ^~~~~~~~~~~~~~~

error: <EXPR>:19:5: error: use of unresolved identifier '$__lldb_injected_self'
    $__lldb_injected_self.$__lldb_wrapped_expr_75(
    ^~~~~~~~~~~~~~~~~~~~~

when using LLDB in scopes such as protocol extensions and generic functions.

I've attached a very minimal sample projects for both iOS and a command line Swift app that demonstrate these issues reliably. They both fail in slightly different ways.

There's also a screen recording demonstrating the steps I'm taking to trigger these issues.

@slavapestov
Copy link
Member

These were all fixed in the 5.1 branch.

@jpsim
Copy link
Author

jpsim commented May 14, 2019

Thanks for the quick reply and thanks to you and other contributors for fixing this!

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 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

2 participants