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

External Kotlin errors don't work #2392

Open
mhammond opened this issue Jan 9, 2025 · 0 comments
Open

External Kotlin errors don't work #2392

mhammond opened this issue Jan 9, 2025 · 0 comments

Comments

@mhammond
Copy link
Member

mhammond commented Jan 9, 2025

#2390 added better support for Swift and Python, but making Kotlin work was tricky enough to split out into its own issue.

The problem is, unsurprisingly, RustBuffers and how we lift the errors. We generate a UniffiRustCallStatusErrorHandler for each module which is used to lift errors in that module, but UniffiRustCallStatusErrorHandler has a reference to this module's RustBuffer. When an external error is involved, UniffiRustCallStatusErrorHandler fails to work because the RustBuffer is the one from the external module.

So somehow we need to rejig the generic code here such that a reference to the remote RustBuffer can be specified.

mhammond added a commit to mhammond/uniffi-rs that referenced this issue Jan 9, 2025
mhammond added a commit that referenced this issue Jan 10, 2025
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

1 participant