go-flutter-desktop / go-flutter

Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.
https://hover.build/
BSD 3-Clause "New" or "Revised" License
5.86k stars 282 forks source link

no handler found for channel flutter/restoration #667

Closed bltavares closed 2 years ago

bltavares commented 2 years ago

Hover doctor

hover doctor ``` hover: Hover version v0.47.1 running on darwin hover: Sharing packaging tools hover: darwin-bundle is supported hover: darwin-dmg is supported hover: darwin-pkg is supported hover: Packaging linux-appimage is not supported on darwin hover: To still package linux-appimage on darwin you need to run hover with the `--docker` flag. hover: Packaging linux-deb is not supported on darwin hover: To still package linux-deb on darwin you need to run hover with the `--docker` flag. hover: Packaging linux-pkg is not supported on darwin hover: To still package linux-pkg on darwin you need to run hover with the `--docker` flag. hover: Packaging linux-rpm is not supported on darwin hover: To still package linux-rpm on darwin you need to run hover with the `--docker` flag. hover: Packaging linux-snap is not supported on darwin hover: To still package linux-snap on darwin you need to run hover with the `--docker` flag. hover: Packaging windows-msi is not supported on darwin hover: To still package windows-msi on darwin you need to run hover with the `--docker` flag. hover: hover: Sharing flutter version Flutter 3.3.0-0.0.pre • channel beta • https://github.com/flutter/flutter.git Framework • revision f90da9b167 (2 days ago) • 2022-07-18 18:59:23 -0700 Engine • revision 1388adb442 Tools • Dart 2.18.0 (build 2.18.0-271.2.beta) • DevTools 2.15.0 hover: Flutter engine commit: https://github.com/flutter/engine/commit/1388adb442192ce155630eeb6806b74db07dd15e hover: Finding out the C compiler version Apple clang version 13.0.0 (clang-1300.0.29.30) Target: x86_64-apple-darwin20.6.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin hover: Sharing the content of go.mod module gallery/go go 1.18 require ( github.com/go-flutter-desktop/go-flutter v0.52.1 github.com/go-flutter-desktop/plugins/path_provider v0.4.0 github.com/go-flutter-desktop/plugins/shared_preferences v0.4.3 github.com/go-flutter-desktop/plugins/url_launcher v0.1.3 github.com/pkg/errors v0.9.1 ) require ( github.com/Xuanwo/go-locale v1.1.0 // indirect github.com/adrg/xdg v0.4.0 // indirect github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect github.com/go-gl/glfw/v3.3/glfw v0.0.0-20220712193148-63cf1f4ef61f // indirect github.com/golang/snappy v0.0.4 // indirect github.com/syndtr/goleveldb v1.0.0 // indirect golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect golang.org/x/text v0.3.7 // indirect ) hover: Sharing the content of hover.yaml application-name: "" executable-name: "" package-name: "" organization-name: com.gallery license: "" target: lib/main_desktop.dart branch: "" cache-path: "" opengl: "" engine-version: "" hover: Sharing the content of go/cmd go/cmd/import-path_provider-plugin.go go/cmd/import-shared_preferences-plugin.go go/cmd/import-url_launcher-plugin.go go/cmd/main.go go/cmd/options.go ```

Error output

Using hover run to build my application, I get the following error:

hover: Using engine from cache
hover: Cleaning the build directory
hover: listing available plugins:
hover:        plugin: [path_provider] can be updated
hover:        plugin: [shared_preferences] can be updated
hover:        plugin: [url_launcher] can be updated
hover: Run `hover plugins get` to update plugins
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 gallery in debug_unopt mode
flutter: The Dart VM service is listening on http://127.0.0.1:50300/
hover: Connecting hover to 'gallery' for hot reload
go-flutter: no handler found for channel flutter/restoration

Steps to reproduce:

pchampio commented 2 years ago

The golang side of this plugin is not implemented.

Checkout our wiki to implement the golang plugin: https://github.com/go-flutter-desktop/go-flutter/wiki/Plugin-info https://github.com/go-flutter-desktop/go-flutter/wiki/Create-a-hover-compatible-plugin https://github.com/go-flutter-desktop/go-flutter/wiki/Implement-a-plugin