Flutter_file_picker: When I use getDirectoryPath, it crashes

Created on 16 Jul 2020  Â·  13Comments  Â·  Source: miguelpruivo/flutter_file_picker

Issue details

  1. pc
  2. Linux colatea-manjaro 5.6.16-1-MANJARO #1 SMP PREEMPT Wed Jun 3 14:26:28 UTC 2020 x86_64 GNU/Linux
  3. go version go1.14.2 linux/amd64
  4. onPressed: () async {
    FilePicker.getDirectoryPath().then((value) {
    print("------------------ filepick $value");
    });
    }

Error Log
go-flutter: recovered from panic while handling call for method 'dir' on channel 'miguelruivo.flutter.plugins.filepicker': interface conversion: interface {} is nil, not map[interface {}]interface {}
goroutine 8 [running]:
runtime/debug.Stack(0xc8, 0x0, 0x0)
/data/soft/go/src/runtime/debug/stack.go:24 +0x9d
runtime/debug.PrintStack()
/data/soft/go/src/runtime/debug/stack.go:16 +0x22
github.com/go-flutter-desktop/go-flutter/plugin.(MethodChannel).handleMethodCall.func1(0xc00001a7e6, 0x3, 0xc0001303c0)
/data/golib/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-channel.go:219 +0x158
panic(0x603e80, 0xc00009b7d0)
/data/soft/go/src/runtime/panic.go:969 +0x166
github.com/miguelpruivo/flutter_file_picker/go.(
FilePickerPlugin).handleFilePicker(0x820d90, 0x60ddc0, 0xc00000e140, 0xc000040628, 0x431db6, 0xc00006c060, 0x60)
/data/golib/pkg/mod/github.com/miguelpruivo/flutter_file_picker/[email protected]/plugin.go:24 +0x7cc
github.com/go-flutter-desktop/go-flutter/plugin.MethodHandlerFunc.HandleMethod(0xc0001131d0, 0x60ddc0, 0xc00000e140, 0x0, 0x0, 0x0, 0xc000040658)
/data/golib/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-handler.go:17 +0x3a
github.com/go-flutter-desktop/go-flutter/plugin.(MethodChannel).handleMethodCall(0xc0001303c0, 0x673b00, 0xc0001131d0, 0xc00001a7e6, 0x3, 0x60ddc0, 0xc00000e140, 0x673a80, 0xc00000e120)
/data/golib/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-channel.go:223 +0xc2
created by github.com/go-flutter-desktop/go-flutter/plugin.(
MethodChannel).handleChannelMessage
/data/golib/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-channel.go:195 +0x359

awaiting response

All 13 comments

Hi @colatea have you found any way to solve this?

Closing due to inactivity. Feel free to reopen it if you still experience the same issue. Thanks!


name: bug report
about: ?
title: getDirectoryPath() throws an exception in Flutter on Windows Desktop

labels: windows, desktop, go

Describe the bug
I'm developing a Flutter app for Windows desktop and I experience the exact same exception. The function FilePicker.getDirectoryPath() throws an exception and no file picker dialog is shown. A simple flutter clean and flutter build, as described in the issue template, with the latest file_picker version ^1.13.3 doesn't help.

var filePath = await FilePicker.getDirectoryPath();

Error Log

go-flutter: no method handler registered for method 'routeUpdated' on channel 'flutter/navigation'
go-flutter: recovered from panic while handling call for method 'dir' on channel 'miguelruivo.flutter.plugins.filepicker': interface conversion: interface {} is nil, not map[interface {}]interface {}
goroutine 55 [running]:
runtime/debug.Stack(0xc8, 0x0, 0x0)
        C:/bin/Go/src/runtime/debug/stack.go:24 +0xa5
runtime/debug.PrintStack()
        C:/bin/Go/src/runtime/debug/stack.go:16 +0x29
github.com/go-flutter-desktop/go-flutter/plugin.(*MethodChannel).handleMethodCall.func1(0xc000208100, 0x3, 0xc00009c060)
        C:/Users/phil/go/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-channel.go:219 +0x15f
panic(0x1424e60, 0xc00008ef90)
        C:/bin/Go/src/runtime/panic.go:969 +0x176
github.com/miguelpruivo/flutter_file_picker/go.(*FilePickerPlugin).handleFilePicker(0x15ca740, 0x142d820, 0xc00020c1a0, 0xc0001d9e28, 0x124ed30, 0xc0002240c0, 0x60)
        C:/Users/phil/go/pkg/mod/github.com/miguelpruivo/flutter_file_picker/[email protected]/plugin.go:24 +0x819
github.com/go-flutter-desktop/go-flutter/plugin.MethodHandlerFunc.HandleMethod(0xc0000896a0, 0x142d820, 0xc00020c1a0, 0x64, 0x0, 0x2000, 0xc0001d9e58)
        C:/Users/phil/go/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-handler.go:17 +0x42
github.com/go-flutter-desktop/go-flutter/plugin.(*MethodChannel).handleMethodCall(0xc00009c060, 0x148ce40, 0xc0000896a0, 0xc000208100, 0x3, 0x142d820, 0xc00020c1a0, 0x148cdc0, 0xc00020c180)
        C:/Users/phil/go/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-channel.go:223 +0xd1
created by github.com/go-flutter-desktop/go-flutter/plugin.(*MethodChannel).handleChannelMessage
        C:/Users/phil/go/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-channel.go:195 +0x373

Whereas the function getFilePath() works as expected and opens Window's file picker dialog (awesome :thumbsup:):

var filePath = await FilePicker.getDirectoryPath();

grafik

Issue details

  1. Platform: Windows 10
  2. Platform OS version: version 1809 (OS Build 17763.1217)
  3. File type (filter): :x: not applicable
  4. Detailed steps to reproduce:

    1. Configure Flutter:

      bash flutter channel master flutter upgrade flutter doctor flutter create myapp cd myapp/ flutter create --platforms=windows . flutter config --enable-windows-desktop

    2. Install Go, hover, Cygwin, gcc.

    3. Add dependency file_picker: ^1.13.3 to pubspec.yml.

    4. Initialize hover:

      bash hover init

    5. Edit ./go/cmd/options.go:

      go package main import ( "github.com/go-flutter-desktop/go-flutter" file_picker "github.com/miguelpruivo/flutter_file_picker/go" ) var options = []flutter.Option{ flutter.WindowInitialDimensions(800, 1280), flutter.AddPlugin(&file_picker.FilePickerPlugin{}), }

    6. Edit ./lib/main.dart:

      ```dart

      import 'package:file_picker/file_picker.dart';

      import 'package:flutter/material.dart';

     void main() {
       runApp(MyApp());
     }

     class MyApp extends StatelessWidget {
       @override
       Widget build(BuildContext context) {
         return MaterialApp(
           title: 'Flutter Demo',
           home: MyHomePage(),
         );
       }
     }

     class MyHomePage extends StatefulWidget {
       MyHomePage({Key key}) : super(key: key);
       @override
       _MyHomePageState createState() => _MyHomePageState();
     }

     class _MyHomePageState extends State<MyHomePage> {
       @override
       Widget build(BuildContext context) {
         return Scaffold(
           floatingActionButton: FloatingActionButton.extended(
             icon: Icon(Icons.create_new_folder),
             label: Text('Browse'),
             onPressed: () async {
               var directory = await FilePicker.getDirectoryPath();
               debugPrint(directory);
             },
           ),
         );
       }
     }
     ```
7. Run:
     ```bash
     hover run
     ```

Flutter Version Details
I'm on the latest master channel of Flutter.

$ flutter doctor -v
[√] Flutter (Channel master, 1.21.0-10.0.pre.200, on Microsoft Windows [Version 10.0.17763.1217], locale en-DE)
    • Flutter version 1.21.0-10.0.pre.200 at C:\bin\flutter1.20.0-dev\flutter
    • Framework revision a2e5e074ab (27 hours ago), 2020-08-20 11:06:32 -0700
    • Engine revision 4dc866283d
    • Dart version 2.10.0 (build 2.10.0-45.0.dev)

[X] Android toolchain - develop for Android devices
    X Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, set ANDROID_SDK_ROOT to that location.
      You may also want to add it to your PATH environment variable.


[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.3)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.6.30225.117
    • Windows 10 SDK version 10.0.18362.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[√] VS Code (version 1.48.1)
    • VS Code at C:\Users\phili\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.13.2

[√] Connected device (1 available)
    • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.17763.1217]

! Doctor found issues in 2 categories.

I’m sorry, picking directories isn’t fully supported on Desktop versions.

Oh, I'm sorry, I kind of missed that. Thank you for your quick response.

@philenius no problem! Feel free to add it If you had the time, and issue a PR with it.

Alright, I cloned your repository and executed the example Flutter app located in ./file_picker/example. I enabled Windows desktop support in Flutter like this:

flutter create --platforms=windows .

Surprisingly, FilePicker.getFilePath() and FilePicker.getDirectoryPath() both worked on Windows. Obviously, there's no need to implement the feature of picking a directory.

On the other side, in my own Flutter app I would still get an exception when calling the latter function. So, I changed the dependencies of my own Flutter application to reference your repository which I cloned to my local disk (master branch, latest commit fa80ef6132510b90b77d2b812f4a4b2d2fcef64b).

  1. My pubspec.yaml now looks like this:

    dependencies:
     file_picker:
       path: ../go/src/flutter_file_picker/file_picker
    
  2. I figured out that I need to delete the ./go directory of my Flutter app:

    rm -r ./go/
    
  3. Then initialize hover again:

    $ hover init
    go: creating new go.mod: module myapp/go
    hover: You can add the 'C:\Users\phil\workspace\myapp\go' directory to git.
    go: finding module for package github.com/pkg/errors
    go: finding module for package github.com/go-flutter-desktop/go-flutter
    go: found github.com/go-flutter-desktop/go-flutter in github.com/go-flutter-desktop/go-flutter v0.41.2
    go: found github.com/pkg/errors in github.com/pkg/errors v0.9.1
    hover: Available plugin for this project:
    hover:      - file_picker
    hover:          version:   1.13.3
    hover:          platforms: [android, ios, go]
    hover:          import:    [Missing] The plugin can be imported by hover.
    hover:          dev:       Plugin replaced in go.mod to path: '../go/src/flutter_file_picker/file_picker'
    hover: run `hover plugins get` to import the missing plugins!
    
  4. Hover than advises to call hover plugins get.

  5. Finally, execute hover run:

    $ hover run
    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: Building flutter bundle
    Font subetting is not supported in debug mode. The --tree-shake-icons flag will be ignored.
    hover: Using engine from cache
    hover: Compiling 'go-flutter' and plugins
    go: found github.com/miguelpruivo/plugins_flutter_file_picker/go in github.com/miguelpruivo/plugins_flutter_file_picker/go v0.0.0-00010101000000-000000000000
    hover: Successfully compiled executable binary for windows
    hover: Build finished, starting app...
    hover: Running myapp in debug mode
    flutter: Observatory listening on http://127.0.0.1:50300/
    hover: Connecting hover to 'myapp' for hot reload
    go-flutter: calculated pixelRatio limited to a minimum of 1.0. metrics: {"dpi":81.55183946488295,"monitorWidthMm":598,"monitorWidthSc":1920,"mscpi":81.55183946488295,"pixelRatio":0.5096989966555184,"ppsc":1,"windowWidthPx":800,"windowWidthSc":800}
    go-flutter: no method handler registered for method 'routeUpdated' on channel 'flutter/navigation'
    Waiting for Flutter test device to report its views...               7ms
    Syncing files to device Flutter test device...                  go-flutter: no method handler registered for method 'routeUpdated' on channel 'flutter/navigation'
    5,904ms (!)
    
    Flutter run key commands.
    r Hot reload.
    R Hot restart.
    h Repeat this help message.
    d Detach (terminate "flutter run" but leave application running).
    c Clear the screen
    q Quit (terminate the application on the device).
    An Observatory debugger and profiler on Flutter test device is available at: http://127.0.0.1:50300/
    
  6. It works! I can select a directory.
    grafik

Conclusion: I can't get it working with file_picker version 1.13.3 that has been published to pub.dev. But, it works when I clone your repository to my computer and reference it in pubspec.yaml.
I don't understand what's happening but I suspect a version mismatch or anything alike. I can see some differences in the local ./go directory that is created by hover:

  • The statement for importing file_picker in ./go/options.go is different.
  • The referenced version of file_picker in ./go/mod.go is different.

Working version with dependency on locally cloned file_picker repository

pubspec.yaml:

dependencies:
  file_picker:
    path: ../go/src/flutter_file_picker/file_picker

./go/options.go:

package main

import (
    "github.com/go-flutter-desktop/go-flutter"
    file_picker "github.com/miguelpruivo/plugins_flutter_file_picker/go"
)

var options = []flutter.Option{
    flutter.WindowInitialDimensions(800, 800),
    flutter.AddPlugin(&file_picker.FilePickerPlugin{}),
}

./go/go.mod:

module myapp/go

go 1.15

require (
    github.com/go-flutter-desktop/go-flutter v0.41.2
    github.com/miguelpruivo/plugins_flutter_file_picker/go v0.0.0-00010101000000-000000000000
    github.com/pkg/errors v0.9.1
)

replace github.com/miguelpruivo/plugins_flutter_file_picker/go => C:\Users\phil\workspace\go\src\flutter_file_picker\file_picker\go

Not working version with dependency on package that has been published to pub.dev

pubspec.yaml:

dependencies:
  file_picker: ^1.13.3

./go/options.go:

package main

import (
    "github.com/go-flutter-desktop/go-flutter"
    file_picker "github.com/miguelpruivo/flutter_file_picker/go"
)

var options = []flutter.Option{
    flutter.WindowInitialDimensions(800, 800),
    flutter.AddPlugin(&file_picker.FilePickerPlugin{}),
}

./go/go.mod:

module myapp/go

go 1.15

require (
    github.com/go-flutter-desktop/go-flutter v0.41.2
    github.com/miguelpruivo/flutter_file_picker/go v0.0.0-20200604215027-87ee48b7f3f6
    github.com/pkg/errors v0.9.1
)

@philenius thank you for your detailed information on this. That’s really weird actually, since you are using the same version anyway. May be some caching issue, but I’ll definitely see if I can do anything about it.

@philenius I've been looking into this and I actually don't get why would go.mod change for a different tag and also why you need to reference plugins_flutter_file_picker instead. This repo was once called plugins_flutter_file_picker but it's been a while (months if not more than a year!) that it was renamed to just flutter_file_picker.

Also, as some others use go for their own projects and never complained about this, leads me to think that in fact there could be a caching issue on your end. Do you have the chance to try it on a different machine?

Thanks!

@miguelpruivo thank you for looking into this. I have set up a virtual machine with a fresh Windows installation and repeated all steps. Unfortunately, I cannot execute hover run due to the missing support of OpenGL in VirtualBox:

$ hover run
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: Building flutter bundle
hover: Using engine from cache
hover: Compiling 'go-flutter' and plugins
hover: Successfully compiled executable binary for windows
hover: Build finished, starting app...
hover: Running myapp in debug mode
creating glfw window: APIUnavailable: WGL: The driver does not appear to support OpenGL
hover: App 'myapp' exited with error: exit status 1

Tomorrow, I'll retry on a different computer, this time without virtualization. I'll keep you posted!

Okay, I tested it on a second Windows 10 computer (physically different computer than the last one that I tried it on). I went through all installations, created the demo app, and ran the app. I even repeated the whole process on my Ubuntu and I got the exact same results.

From the console output, I can see that the referenced versions of miguelpruivo/flutter_file_picker/go are different. Version v0.0.0-20200604215027-87ee48b7f3f6 throws an exception. Version v0.0.0-00010101000000-000000000000 does not throw an exception when calling FilePicker.getDirectoryPath(). Are these versions actually different because they both start with v0.0.0?

If I replace the dependency in pubspec.yaml with a local reference to the cloned repository and re-initialize hover like so, then I can use the FilePicker.getDirectoryPath() without an exception:

rm -rf ./go
hover init

Hover automatically creates the file ./go/cmd/import-file_picker-plugin.go and automatically selects the following version for flutter_file_picker:

...
require (
    ...
    github.com/miguelpruivo/plugins_flutter_file_picker/go v0.0.0-00010101000000-000000000000
    ...
)
...

In this case, hover advises me to execute hover plugins get separately. Console output:

phil@DESKTOP-QNEFKC2 MINGW64 ~/workspace/myapp
$ hover init
go: creating new go.mod: module myapp/go
hover: You can add the 'C:\Users\phil\workspace\myapp\go' directory to git.
go: finding module for package github.com/pkg/errors
go: finding module for package github.com/go-flutter-desktop/go-flutter
go: found github.com/go-flutter-desktop/go-flutter in github.com/go-flutter-desktop/go-flutter v0.41.2
go: found github.com/pkg/errors in github.com/pkg/errors v0.9.1
hover: Available plugin for this project:
hover:      - file_picker
hover:          version:   1.13.3
hover:          platforms: [android, ios, go]
hover:          import:    [Missing] The plugin can be imported by hover.
hover:          dev:       Plugin replaced in go.mod to path: '../flutter_file_picker/file_picker'
hover: run `hover plugins get` to import the missing plugins!

phil@DESKTOP-QNEFKC2 MINGW64 ~/workspace/myapp
$ hover plugins get
hover:        plugin: [file_picker] imported

phil@DESKTOP-QNEFKC2 MINGW64 ~/workspace/myapp
$ hover run
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: Building flutter bundle
Font subetting is not supported in debug mode. The --tree-shake-icons flag will be ignored.
hover: Using engine from cache
hover: Compiling 'go-flutter' and plugins
go: found github.com/miguelpruivo/plugins_flutter_file_picker/go in github.com/miguelpruivo/plugins_flutter_file_picker/go v0.0.0-00010101000000-000000000000
github.com/miguelpruivo/plugins_flutter_file_picker/go
myapp/go/cmd
hover: Successfully compiled executable binary for windows
hover: Build finished, starting app...
hover: Running myapp in debug mode
flutter: Observatory listening on http://127.0.0.1:50300/
hover: Connecting hover to 'myapp' for hot reload
go-flutter: calculated pixelRatio limited to a minimum of 1.0. metrics: {"dpi":95.62352941176471,"monitorWidthMm":510,"monitorWidthSc":1920,"mscpi":95.62352941176471,"pixelRatio":0.5976470588235294,"ppsc":1,"windowWidthPx":800,"windowWidthSc":800}
go-flutter: no method handler registered for method 'routeUpdated' on channel 'flutter/navigation'
Waiting for Flutter test device to report its views...               7ms
Syncing files to device Flutter test device...                   4,893ms (!)

Flutter run key commands.
r Hot reload.
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on Flutter test device is available at: http://127.0.0.1:50300/

In contrast to this, if I reference file_picker: ^1.13.3 in pubspec.yaml, then hover automatically selects version v0.0.0-20200604215027-87ee48b7f3f6 and I'll get the exception interface conversion: interface {} is nil, not map[interface {}]interface {}. Console output:

$ hover run
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: Building flutter bundle
Font subetting is not supported in debug mode. The --tree-shake-icons flag will be ignored.
hover: Using engine from cache
hover: Compiling 'go-flutter' and plugins
go: finding module for package github.com/miguelpruivo/flutter_file_picker/go
go: downloading github.com/miguelpruivo/flutter_file_picker/go v0.0.0-20200604215027-87ee48b7f3f6
go: downloading github.com/miguelpruivo/flutter_file_picker v1.4.3
go: found github.com/miguelpruivo/flutter_file_picker/go in github.com/miguelpruivo/flutter_file_picker/go v0.0.0-20200604215027-87ee48b7f3f6
go: downloading github.com/gen2brain/dlgs v0.0.0-20190708095831-3854608588f7
go: downloading github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1
github.com/gen2brain/dlgs
github.com/miguelpruivo/flutter_file_picker/go
myapp/go/cmd
hover: Successfully compiled executable binary for windows
hover: Build finished, starting app...
hover: Running myapp in debug mode
flutter: Observatory listening on http://127.0.0.1:50300/
hover: Connecting hover to 'myapp' for hot reload
go-flutter: calculated pixelRatio limited to a minimum of 1.0. metrics: {"dpi":95.62352941176471,"monitorWidthMm":510,"monitorWidthSc":1920,"mscpi":95.62352941176471,"pixelRatio":0.5976470588235294,"ppsc":1,"windowWidthPx":800,"windowWidthSc":800}
go-flutter: no method handler registered for method 'routeUpdated' on channel 'flutter/navigation'
Waiting for Flutter test device to report its views...               7ms
Syncing files to device Flutter test device...                   4,798ms (!)

Flutter run key commands.
r Hot reload.
R Hot restart.
h Repeat this help message.
d Detach (terminate "flutter run" but leave application running).
c Clear the screen
q Quit (terminate the application on the device).
An Observatory debugger and profiler on Flutter test device is available at: http://127.0.0.1:50300/
go-flutter: recovered from panic while handling call for method 'dir' on channel 'miguelruivo.flutter.plugins.filepicker': interface conversion: interface {} is nil, not map[interface {}]interface {}
goroutine 39 [running]:
runtime/debug.Stack(0xc8, 0x0, 0x0)
        C:/bin/Go/src/runtime/debug/stack.go:24 +0xa5
runtime/debug.PrintStack()
        C:/bin/Go/src/runtime/debug/stack.go:16 +0x29
github.com/go-flutter-desktop/go-flutter/plugin.(*MethodChannel).handleMethodCall.func1(0xc0000889a6, 0x3, 0xc0000a6120)
        C:/Users/phil/workspace/go/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-channel.go:219 +0x15f
panic(0x9e4e60, 0xc000208390)
        C:/bin/Go/src/runtime/panic.go:969 +0x176
github.com/miguelpruivo/flutter_file_picker/go.(*FilePickerPlugin).handleFilePicker(0xb8a740, 0x9ed820, 0xc0000a0340, 0x0, 0x0, 0x0, 0x0)
        C:/Users/phil/workspace/go/pkg/mod/github.com/miguelpruivo/flutter_file_picker/[email protected]/plugin.go:24 +0x819
github.com/go-flutter-desktop/go-flutter/plugin.MethodHandlerFunc.HandleMethod(0xc0000ac9d0, 0x9ed820, 0xc0000a0340, 0x0, 0x0, 0x0, 0x0)
        C:/Users/phil/workspace/go/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-handler.go:17 +0x42
github.com/go-flutter-desktop/go-flutter/plugin.(*MethodChannel).handleMethodCall(0xc0000a6120, 0xa4ce40, 0xc0000ac9d0, 0xc0000889a6, 0x3, 0x9ed820, 0xc0000a0340, 0xa4cdc0, 0xc0000a0320)
        C:/Users/phil/workspace/go/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-channel.go:223 +0xd1
created by github.com/go-flutter-desktop/go-flutter/plugin.(*MethodChannel).handleChannelMessage
        C:/Users/phil/workspace/go/pkg/mod/github.com/go-flutter-desktop/[email protected]/plugin/method-channel.go:195 +0x373

Maybe I'm doing something wrong? I shall be fine, if you're not going to investigate this topic any further. I can build and run the Flutter app. I just need to apply this workaround where I clone your repository and reference it in pubspec.yaml. Unfortunately, I do not know enough about the interaction of Flutter, Go, and hover in combination. Otherwise, I'd help to further investigating this issue.

Update is now live with 2.0.0 please, see the changelog for details of what have changed.

Let me know if it fixes the issue for you!

Warning: it has breaking changes so you'll have to update your code.

@miguelpruivo thank you very much for taking the effort to investigate this issue and releasing a new major version!

I updated my dependency to file_picker: ^2.0.0 and tested it on Windows 10 and on Ubuntu 19, too. On both platforms it works like a charm :+1: You might close this issue.

Was this page helpful?
0 / 5 - 0 ratings