google / flutter-desktop-embedding

Experimental plugins for Flutter for Desktop
Apache License 2.0
7.1k stars 604 forks source link

Linux on ARM: window_size causes "pub get" to hang #900

Closed 12people closed 2 years ago

12people commented 2 years ago

Is this a bug in one of the plugins in this project?

Which plugin is this bug report about?

window_size

Describe the bug

When building an app that uses window_size on Linux on ARM, pub get hangs indefinitely. (Using Linux on a 2020 M1 Mac inside of a UTM virtual machine.)

Flutter doctor

[✓] Flutter (Channel stable, 3.0.2, on Ubuntu 22.04 LTS 5.15.0-39-generic, locale C.UTF-8)
    • Flutter version 3.0.2 at /home/m/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision cd41fdd495 (8 days ago), 2022-06-08 09:52:13 -0700
    • Engine revision f15f824b57
    • Dart version 2.17.3
    • DevTools version 2.12.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 14.0.0-1ubuntu1
    • cmake version 3.22.1
    • ninja version 1.10.1
    • pkg-config version 0.29.2

[!] Flutter IDE Support (No supported IDEs installed)
    • IntelliJ - https://www.jetbrains.com/idea/
    • Android Studio - https://developer.android.com/studio/
    • VS Code - https://code.visualstudio.com/

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-arm64 • Ubuntu 22.04 LTS 5.15.0-39-generic

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.
stuartmorgan commented 2 years ago

Git references are a supported feature of pub, so if it's not working for you you'll need to report it to pub.

jpv123 commented 2 years ago

Did you solve this? I'm getting the same error. Flutter pub get never finishes, and when I remove the library from the pubspec it works

window_size:
    git:
      url: git://github.com/google/flutter-desktop-embedding.git
      path: plugins/window_size

Error:

Running "flutter pub get" in app_name...                      
Git error. Command: `git fetch`
stdout: 
stderr: fatal: unable to connect to github.com:
github.com[0: 140.82.112.3]: errno=Operation timed out
stuartmorgan commented 2 years ago

Again, issues with pub need to be reported to pub, not here.

Note that you are using a git URL, which isn't what this repository describes in its documentation.