Skip to content

[pigeon] Swift errors are unhandled in sync functions #112483

@tjarvstrand

Description

@tjarvstrand

When generating Swift code using Pigeon It seems that there is no way to return an error back to the Flutter/Dart layer. There is a function called wrapError being generated but it never gets used and it's impossible to throw errors from the generated methods because they are not declared as throws in the generated protocol.

@gaaclarke

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listfound in release: 3.3Found to occur in 3.3found in release: 3.4Found to occur in 3.4has reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions