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-10008] LLDB failed to inspect object type when grouped in a caseless enum declared in another framework #4606

Open
swift-ci opened this issue Feb 27, 2019 · 3 comments
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

Previous ID SR-10008
Radar None
Original Reporter danielemm (JIRA User)
Type Bug

Attachment: Download

Environment
  • Xcode Version 10.1 (10B61)

  • Swift 4.2 (stable release)

  • macOS 10.14.3 (18D109)

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

md5: b19ebf8bd19dd16ce0553492b7aebf67

Issue Description:

My project is composed by two frameworks, A and B.
Framework B is dependent from A and uses several functions/structures for its operations.

In framework A I've used caseless enum (but it's the same with a void non-instantiable structs) as like a namespace grouping.

public enum Models { }

Then

public extension Models {
  public class ModelInA { ... }
}

Everything works fine.
Now I would to replicate the same stuff in framework B with. So:

import FrameworkA
public extension Models {
  public class ModelInB { ... }
}

Now If I try to debug and inspect an instance of ModelInB I get this error: Could not resolve type. Even more the debugger inspector row its empty.

I've tried to declare a new caseless enum in Framework B and use it to group ModelInB: as expected it works fine.

Attached screenshots demostrate the results in both cases:

@belkadan
Copy link

cc @dcci

@dcci
Copy link
Mannequin

dcci mannequin commented Feb 28, 2019

I cannot reproduce on a recently built swift + lldb.
Do you have a test case you can share where this reproduces?

@swift-ci
Copy link
Author

swift-ci commented Mar 1, 2019

Comment by daniele margutti (JIRA)

Attached you can found an example project.

Try to run the demo app target inside frameworkB.

Here is the result, as you can see Car (framework B) is empty while I can see People (in framework A).

Test.zip

@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
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