-
Notifications
You must be signed in to change notification settings - Fork 333
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-155] REPL: Summary string not being displayed for all struct names #4552
Comments
Comment by Matthias M. Schneider (JIRA) If you rename |
Comment by Enrico Granata (JIRA) Hi, I can reproduce the issue you're presenting and it is an issue with the LLDB data formatters subsystem We have a set of builtin data formatters that help us pretty print different data types (for instance, the elements in a Swift array, or the contents of an NSString, ...) In your example, the Point type you defined has neither a ".v" nor a ".h" member, so the LLDB formatter gets confused, and emits a print error instead of just falling back to normal printing The workaround is to - before defining your Point structure - type at the REPL prompt: :type summary delete -l objc Point I can see a few ways to improve this experience here, and I am going to hold on to this issue so that I can actively track these possible avenues Thanks for your report! |
Comment by Matthias M. Schneider (JIRA) Hi Enrico, thanks for looking into this and the workaround. I would never have thought along those lines given that a newly started REPL session explicitly tells me that Your explanation is clear to me and I hope you and the team can fix this issue in the near future. Cheers, Mati |
Comment by Matthias M. Schneider (JIRA) The issue seems to be solved in snapshot 2016-01-11-a on Ubuntu 15.10. |
Comment by Matthias M. Schneider (JIRA) The issue seems to be fixed in current builds of Swift 2.2 and Swift 3.0. |
Environment
Linux 4.2.0-18-generic #22-Ubuntu SMP Fri Nov 6 18:25:50 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Additional Detail from JIRA
md5: 8bd91f558571b08051eea978d5766f67
Issue Description:
While in the Swift REPL defining a struct and creating a new value the evaluation of the value results in an error.
The text was updated successfully, but these errors were encountered: