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

po doesn't work with kotlin.String object #114

Open
1 of 4 tasks
xiaobailong24 opened this issue Jul 22, 2024 · 5 comments
Open
1 of 4 tasks

po doesn't work with kotlin.String object #114

xiaobailong24 opened this issue Jul 22, 2024 · 5 comments

Comments

@xiaobailong24
Copy link

xiaobailong24 commented Jul 22, 2024

Summary

xcode-kotlin info

Installed plugin version:	2.0.0
Bundled plugin version:		2.0.0

Language spec installed: Yes
LLDB init installed: Yes
LLDB Xcode init sources main LLDB init: No

Installed Xcode versions:
✔	Xcode 15.2 (15C500b)	EB2858C6-D4A9-4096-9AA3-BB5872AE7EF9	/Applications/Xcode.app

✔ - plugin is compatible, x - plugin is not compatible
Run 'xcode-kotlin sync' to add compatibility for all listed Xcode versions.

There is a variable errorMsg of type kotlin.String in KmpApiException class. When debugging breakpoints, the correct value "系统异常" can be seen in the KmpApiException summaries, but the errorMsg detailed information cannot be displayed normally (instead of displaying "4 values"), and the same problem using lldb po

Expected result

po can print the correct value for kotlin.String

Screenshots

image

Issue Labels

  • has-reproduction
  • feature
  • blocking
  • good first issue
@TadeasKriz
Copy link
Contributor

This is interesting. Was this happening before you updated to xcode-kotlin 2.0.0? It seems like it chooses an array handler instead of a string one.

Could you share the code/structure of the result and cause classes? I'll try to reproduce it based on that.

@xiaobailong24
Copy link
Author

xiaobailong24 commented Jul 23, 2024

@TadeasKriz Thanks for your reply.

Was this happening before you updated to xcode-kotlin 2.0.0?

Yes.

I tried to provide a minimal demo to reproduce this problem, but failed. Currently only our production project can reproduce it, but I'm sorry I can't provide it. I will try to provide a minimal demo later.

@TadeasKriz
Copy link
Contributor

Hi @xiaobailong24, were you able to reproduce this issue since?

@xiaobailong24
Copy link
Author

@TadeasKriz Sorry I didn't reproduce that. Please close the issue.

@TadeasKriz
Copy link
Contributor

And is it still happening in your project?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants