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-11226] [Expression parser] Can't materialize a variable: can't get size of type #4332

Open
an0 mannequin opened this issue Jul 29, 2019 · 4 comments
Open

[SR-11226] [Expression parser] Can't materialize a variable: can't get size of type #4332

an0 mannequin opened this issue Jul 29, 2019 · 4 comments
Labels
bug Something isn't working LLDB for Swift

Comments

@an0
Copy link
Mannequin

an0 mannequin commented Jul 29, 2019

Previous ID SR-11226
Radar None
Original Reporter @an0
Type Bug

Attachment: Download

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

md5: cef118f89415d4d55c9457308aa37a6f

Issue Description:

LLDB is often unusable:

error: Couldn't materialize: can't get size of type

error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression

Steps to reproduce the issue:

  1. Create a project using Master-Detail App template in Xcode 11.0 beta 4.
  2. Add a breakpoint in `MasterViewController.insertNewObject(_🙂`.
  3. Type `p tableView.indexPathForRow(at: .zero)` in LLDB when the breakpoint is hit.

I also attached the sample project for convenience.

@dcci
Copy link
Mannequin

dcci mannequin commented Jul 29, 2019

Looking.

@dcci
Copy link
Mannequin

dcci mannequin commented Jul 31, 2019

I have a local patch where `po` now does the right thing. Screenshot attached.

@dcci
Copy link
Mannequin

dcci mannequin commented Jul 31, 2019

`p` still needs some love, and it's more complicated to fix.

@dcci
Copy link
Mannequin

dcci mannequin commented Jul 31, 2019

apple/swift-lldb#1839

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

0 participants