-
-
Notifications
You must be signed in to change notification settings - Fork 940
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
[Bug]: No implementation found for method getAll on channel dev.fluttercommunity.plus/package_info #1270
Comments
I have the same problem. Platform Plugin Version Flutter SDK |
I cannot reproduce the error. Steps:
|
I am also got a similar error with
Platform Plugin Version Flutter SDK |
@CodeDoctorDE @san-smith can you please share the whole file where it crashes, or at least the imports? Thanks! |
Can you confirm that you have done a proper flutter clean and pub upgrade? |
I did. |
@CodeDoctorDE |
i did it already. |
The Linux implementation of the plugin is in the The pubspec.yml is configured to use this class as the Linux implementation:
For some reason, it seems that something is not being generated correctly for some users, and so Flutter/Dart is not linking to the correct implementation class. |
I see that on this branch, the package_info_plus is still at v2.0.0 Do you have an up-to-date branch of the project using 3.0.0? |
I pushed the I wanted to test it on my machine before pushing the upgrade. |
I will check your code if you don't mind. Can you specify the step by step to run the app and reproduce the issue? Currently trying to run your app but it fails as it tries to write to |
Thanks. The error happens in the settings dialog in the update card. The write is a common problem in flutter. A simple |
yep, that helps! I am able to reproduce the error |
My only finding is that inside While it does exist on my project I created from scratch. The call to register PackageInfoPlus plugins is for Windows. But the Linux one is missing 🤔 |
I am completely lost and can't understand why the It does work for me when I create a project from scratch, or as you say, when you run the example in this repo. But in your project the call to The only action I can think of is to submit an issue on the flutter/flutter project explaining this. And meanwhile to use the (or call to |
Could this be due to the fact that my project does not have full null safety support? File |
Here's a fun thing: If I add Doing more research.... |
It's curious. |
We changed the architecture from federated packages to a one where all the implementations are in the same package. That may be causing an issue. However, the packages work fine standalone but not together. My only explanation is that there's something weird in how the Flutter/Dart compiler works. This issue may be affecting other packages outside the plus_plugins ecosystem, as @nohli for example today told me that he had a similar error with |
Feel free to thumbs up and add any relevant comments to flutter/flutter#113720 |
This comment was marked as off-topic.
This comment was marked as off-topic.
Releases fixing the registration code generation are published now, please let me know if that fixes the issue. |
It works, thanks! |
Platform
Linux (Fedora 36)
Plugin
package_info_plus
Version
3.0.0
Flutter SDK
3.3.4
Steps to reproduce
await PackageInfo.fromPlatform()
After downgrading to 2.0.0, everything works.
I cloned the example from the
main
branch and everything works there.Code Sample
Logs
Flutter Doctor
Checklist before submitting a bug
flutter pub upgrade
flutter clean
The text was updated successfully, but these errors were encountered: