You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[quick_actions_ios] Xcode 16 beta 1: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable' #150448
"extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'; this will not behave correctly if the owners of 'Flutter' introduce this conformance in the future"
- WARN | xcodebuild: packages/quick_actions/quick_actions_ios/ios/quick_actions_ios/Sources/quick_actions_ios/messages.g.swift:17:1: warning: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'; this will not behave correctly if the owners of 'Flutter' introduce this conformance in the future
- NOTE | [iOS] xcodebuild: | |- warning: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'; this will not behave correctly if the owners of 'Flutter' introduce this conformance in the future
- NOTE | [iOS] xcodebuild: | `- note: add '@retroactive' to silence this warning
changed the title [-]quick_actions_ios has error with Xcode 16 beta 1: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'; this will not behave correctly if the owners of 'Flutter' introduce this conformance in the future[/-][+]quick_actions_ios has error with Xcode 16 beta 1: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'[/+]on Jun 18, 2024
changed the title [-]quick_actions_ios has error with Xcode 16 beta 1: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'[/-][+][quick_actions_ios] Xcode 16 beta 1: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'[/+]on Jun 18, 2024
It was never generated by Pigeon, it was something we recommended people do at the plugin level in Swift plugins in older versions of Pigeon. I can fix this in the plugin.
It was never generated by Pigeon, it was something we recommended people do at the plugin level in Swift plugins in older versions of Pigeon. I can fix this in the plugin.
So this wasn't "Autogenerated from Pigeon (v12.0.1), do not edit directly."? It was edited?
That extension was added manually, but we've since switched to using our own PigeonError instead. I'm not sure if that class needs the new code (probably does)
It should have been added in the code that used it rather than the generated file. We might have thought we were going to add it to the generator at that point?
But it turns out we aren't even using FlutterError in that plugin, so I'm not sure why it ended up in the PR at all 🤷🏻
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
jmagman commentedon Jun 18, 2024
@tarrinneal do you know how this
extensioncode is generated? I'm not spotting it in pigeonhttps://github.com/flutter/packages/blob/937038cd033d2c468f871a338ec893343a09ca04/packages/quick_actions/quick_actions_ios/ios/quick_actions_ios/Sources/quick_actions_ios/messages.g.swift#L17
In Xcode 16.0 beta 1 it seems to want this to be "fully qualified" :
The implication is that generated pigeon Swift files with this pattern will generate a compilation warning.
[-]quick_actions_ios has error with Xcode 16 beta 1: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'; this will not behave correctly if the owners of 'Flutter' introduce this conformance in the future[/-][+]quick_actions_ios has error with Xcode 16 beta 1: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'[/+][-]quick_actions_ios has error with Xcode 16 beta 1: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'[/-][+][quick_actions_ios] Xcode 16 beta 1: extension declares a conformance of imported type 'FlutterError' to imported protocols 'Error', 'Sendable'[/+]tarrinneal commentedon Jun 18, 2024
That line has changed, but the current version of it is here: https://github.com/flutter/packages/blob/937038cd033d2c468f871a338ec893343a09ca04/packages/pigeon/lib/swift_generator.dart#L842
LouiseHsu commentedon Jun 18, 2024
@hellohuanlin
jmagman commentedon Jun 20, 2024
You're saying the
extensioncode isn't generated any more by pigeon? Does that mean I should just regenerate the code for this particular plugin?stuartmorgan-g commentedon Jun 20, 2024
It was never generated by Pigeon, it was something we recommended people do at the plugin level in Swift plugins in older versions of Pigeon. I can fix this in the plugin.
jmagman commentedon Jun 20, 2024
So this wasn't "Autogenerated from Pigeon (v12.0.1), do not edit directly."? It was edited?
tarrinneal commentedon Jun 20, 2024
That extension was added manually, but we've since switched to using our own
PigeonErrorinstead. I'm not sure if that class needs the new code (probably does)tarrinneal commentedon Jun 20, 2024
you can see the old recommendations here packages/pigeon/example/README.md
(this is the pr that added the new error class)
jmagman commentedon Jun 20, 2024
I see, thanks for the clarification. I thought this code was autogenerated so required a pigeon update.
stuartmorgan-g commentedon Jun 20, 2024
It should have been added in the code that used it rather than the generated file. We might have thought we were going to add it to the generator at that point?
But it turns out we aren't even using
FlutterErrorin that plugin, so I'm not sure why it ended up in the PR at all 🤷🏻[quick_actions] Update to Pigeon 20 (#6961)
jmagman commentedon Jun 21, 2024
Thank you @stuartmorgan and @tarrinneal!
github-actions commentedon Jul 5, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[quick_actions] Update to Pigeon 20 (flutter#6961)
[quick_actions] Update to Pigeon 20 (flutter#6961)