Skip to content

Test gap tracking issue #1264

Closed
Closed

Activity

  1. spacebear21 commented on Apr 15, 2026

    @spacebear21
    Collaborator

    While investigating the remaining issues tracked here, I realized that none of the FFI error wrappers implement expose the string representations properly downstream. It looks like we just need to add #[uniffi::export(Display)] to all FFI error objects: https://mozilla.github.io/uniffi-rs/0.30/types/uniffi_traits.html. We should also export any other supported traits that are implemented, i.e. Debug, Display, Eq, Ord and Hash.

    I tried this with some existing error wrappers, before:

    toString():   EncapsulationExceptionSenderPersistedException(Instance of 'EncapsulationException')
    

    after:

    toString():   EncapsulationExceptionSenderPersistedException(Directory response error: Unexpected response size 10, expected 8192 bytes)
    

    This seems like low hanging fruit and a big easy win for implementers that should address these remaining issues at least partially.

  2. spacebear21 commented on Apr 15, 2026

    @spacebear21
    Collaborator

    This seems like low hanging fruit and a big easy win for implementers that should address these remaining issues at least partially.

    #1485 addresses this

  3. spacebear21 commented on Apr 23, 2026

    @spacebear21
    Collaborator

    I'm going to close the rest of these issues as wontfix: I think #1272 and #1275 have a grain of truth to them (implementers should be able to tell between transient vs fatal errors), but I don't think the described approaches make sense. Also, IMO we should prioritize demonstrating proper fallback handling in the core library first to inform what actually needs to be exposed at the FFI layer.

    @chavic The cognitive load of reviewing all of these bulk AI-generated submissions was quite high, next time I'd recommend focusing on one thing at a time and getting clarification before opening issues here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

trackingHigh-level tracking issues

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions