Skip to content
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

no handler found for channel plugins.flutter.io/shared_preferences #594

Open
nmk0718 opened this issue May 20, 2021 · 2 comments
Open

no handler found for channel plugins.flutter.io/shared_preferences #594

nmk0718 opened this issue May 20, 2021 · 2 comments
Labels
plugin Issue about an existing or possible plugin question User questions

Comments

@nmk0718
Copy link

nmk0718 commented May 20, 2021

Flutter app run on MacOS
ERROR:
go-flutter: no handler found for channel plugins.flutter.io/shared_preferences

Hover doctor

➜hover doctor
hover: Hover version v0.46.3 running on darwin
hover: Sharing packaging tools
hover: darwin-bundle is supported
hover: darwin-dmg is supported
hover: darwin-pkg is supported
hover: 
hover: Sharing flutter version
Flutter 2.0.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 1d9032c7e1 (3 weeks ago) • 2021-04-29 17:37:58 -0700
Engine • revision 05e680e202
Tools • Dart 2.12.3
hover: Flutter engine commit: https://github.com/flutter/engine/commit/05e680e202af9a92461070cb2d9982acad46c83c
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel: `flutter channel beta`
hover: Finding out the C compiler version
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
hover: Sharing the content of go.mod
module github.com/nmk0718/memo/go

go 1.16

require (
        github.com/go-flutter-desktop/go-flutter v0.43.0
        github.com/pkg/errors v0.9.1
)
hover: Sharing the content of hover.yaml
application-name: ""
executable-name: ""
package-name: ""
organization-name: com.memos
license: ""
target: lib/main_desktop.dart
branch: ""
cache-path: ""
opengl: ""
engine-version: ""
hover: Sharing the content of go/cmd
go/cmd/main.go  go/cmd/options.go

Hover run log

➜ hover run                                                                                                  
hover: Using engine from cache
hover: Cleaning the build directory
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel: `flutter channel beta`
hover: Bundling flutter app

💪 Building with sound null safety 💪

hover: Compiling 'go-flutter' and plugins
hover: Successfully compiled executable binary for darwin
hover: Build finished, starting app...
hover: Running memos in debug_unopt mode
go-flutter: WARNING error creating the resource window: VersionUnavailable: NSGL: Failed to create OpenGL context
[ERROR:flutter/shell/platform/embedder/embedder_surface_gl.cc(102)] Could not create a resource context for async texture uploads. Expect degraded performance. Set a valid make_resource_current callback on FlutterOpenGLRendererConfig.
[ERROR:flutter/shell/platform/embedder/embedder_surface_gl.cc(102)] Could not create a resource context for async texture uploads. Expect degraded performance. Set a valid make_resource_current callback on FlutterOpenGLRendererConfig.
flutter: Observatory listening on http://127.0.0.1:50300/
hover: Connecting hover to 'memos' for hot reload
go-flutter: no handler found for channel plugins.flutter.io/shared_preferences

Running in windows and web is normal

Flutter pub upgrade

flutter  pub upgrade
Resolving dependencies...
  shared_preferences 2.0.5
  shared_preferences_linux 2.0.0
  shared_preferences_macos 2.0.0
  shared_preferences_platform_interface 2.0.0
  shared_preferences_web 2.0.0
  shared_preferences_windows 2.0.0

But the package containing the MacOS is not shown
image

I need help

@nmk0718
Copy link
Author

nmk0718 commented May 20, 2021

I see this link but I don't know what to do with it
#346

@pchampio
Copy link
Member

Can you try to import the go platform side of this plugin: https://github.com/go-flutter-desktop/plugins/tree/master/shared_preferences

You can import it manually or with hover plugins get (I don't know if it's compatible with flutter 2). Some doc: https://github.com/go-flutter-desktop/go-flutter/wiki/Plugin-info

@pchampio pchampio added plugin Issue about an existing or possible plugin question User questions labels May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin Issue about an existing or possible plugin question User questions
Development

No branches or pull requests

2 participants