Skip to content

[pigeon] missing error message when missing return type #92639

@Foorack

Description

@Foorack

@gaaclarke

When running pigeon on a class containing a function without named return type, it throws the mysterious error:

Null check operator used on a null value

This is due to https://github.com/flutter/packages/blob/db9d8c247b77f6c7ad072e09a5fe705a184f8bb2/packages/pigeon/lib/pigeon_lib.dart#L744
Especially as this does not seem to be documented anywhere, it would be critical for user-friendliness to print a proper error message, saying unnamed return types is not supported. rather than throwing an null exception.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listd: api docsIssues with https://api.flutter.dev/p: pigeonrelated to pigeon messaging codegen toolpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions