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.87k stars 283 forks source link

hover build not working. Error: Type 'ui.Window' not found. #558

Closed darkshadow013 closed 3 years ago

darkshadow013 commented 3 years ago

Hover doctor

$ hover doctor
hover: Hover version v0.46.1 running on linux
hover: Sharing packaging tools
hover: darwin-bundle is supported
hover: darwin-dmg is supported
hover: To package darwin-pkg these tools are required: mkbom,xar
hover: Install bomutils from your package manager or from https://github.com/hogliux/bomutils
hover: Install xar from your package manager or from https://github.com/mackyle/xar
hover: To still package darwin-pkg without the required tools installed you need to run hover with the `--docker` flag.
hover: To package linux-appimage these tools are required: appimagetool
hover: Install appimagetool from your package manager or from https://github.com/AppImage/AppImageKit#appimagetool-usage
hover: To still package linux-appimage without the required tools installed you need to run hover with the `--docker` flag.
hover: To package linux-deb these tools are required: makepkg
hover: You need to be on Debian, Ubuntu or another distro that uses apt/dpkg as package manager to use this. Installing dpkg on other distros is hard and dangerous.
hover: To still package linux-deb without the required tools installed you need to run hover with the `--docker` flag.
hover: To package linux-pkg these tools are required: makepkg
hover: You need to be on Arch Linux or another distro that uses pacman as package manager to use this. Installing makepkg on other distros is hard and dangerous.
hover: To still package linux-pkg without the required tools installed you need to run hover with the `--docker` flag.
hover: To package linux-rpm these tools are required: rpmbuild
hover: You need to be on Red Hat Linux or another distro that uses rpm as package manager to use this. Installing rpmbuild on other distros is hard and dangerous.
hover: To still package linux-rpm without the required tools installed you need to run hover with the `--docker` flag.
hover: linux-snap is supported
hover: To package windows-msi these tools are required: wixl
hover: Install msitools from your package manager or from https://wiki.gnome.org/msitools/
hover: To still package windows-msi without the required tools installed you need to run hover with the `--docker` flag.
hover: 
hover: Sharing flutter version
Flutter 1.26.0-8.0.pre • channel unknown • unknown source
Framework • revision b9d06fffb2 (8 days ago) • 2021-01-07 18:36:48 -0800
Engine • revision 42a8d4c681
Tools • Dart 2.12.0 (build 2.12.0-179.0.dev)
hover: Flutter engine commit: https://github.com/flutter/engine/commit/42a8d4c681baf87d2f2829ed3728eee4fe2bc3fe
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
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

hover: Sharing the content of go.mod
module passbook/go

go 1.15

require (
    github.com/Xuanwo/go-locale v1.0.0 // indirect
    github.com/go-flutter-desktop/go-flutter v0.42.0
    github.com/go-gl/glfw/v3.3/glfw v0.0.0-20201108214237-06ea97f0c265 // indirect
    github.com/go-ole/go-ole v1.2.5 // indirect
    github.com/miguelpruivo/flutter_file_picker/go v0.0.0-20210108225058-9500baac976b
    github.com/pkg/errors v0.9.1
    golang.org/x/sys v0.0.0-20210113181707-4bcb84eeeb78 // indirect
    golang.org/x/text v0.3.5 // indirect
)
hover: Sharing the content of hover.yaml
application-name: ""
executable-name: ""
package-name: ""
license: ""
target: lib/main.dart
branch: ""
cache-path: ""
opengl: ""
engine-version: ""
hover: Sharing the content of go/cmd
go/cmd/main.go  go/cmd/options.go

Error output

Using hover build linux-deb --docker to build my application, I get the following error:

hover: Using engine from cache
hover: Building using docker container
Running this docker command: /usr/bin/docker run --rm --mount type=bind,source=/home/himanshu/Downloads/Flutter_Projects/passbook,target=/app --mount type=bind,source=/home/himanshu/.cache/hover/engine,target=/root/.cache/hover/engine --mount type=bind,source=/home/himanshu/.cache/hover/docker-go-cache,target=/go-cache --env GOCACHE=/go-cache --env HOVER_SAFE_CHOWN_UID=1000 --env HOVER_SAFE_CHOWN_GID=1000 --env GOPROXY=https://proxy.golang.org,direct
 --env GOPRIVATE=
 goflutter/hover:v0.46.1 hover-safe.sh build linux-deb --skip-engine-download --version-number 1.0.0+1
docker container: hover: Cleaning the build directory
docker container: hover: listing available plugins:
docker container: hover: Bundling flutter app
docker container:   ╔════════════════════════════════════════════════════════════════════════════╗
docker container:   ║ A new version of Flutter is available!                                     ║
docker container:   ║                                                                            ║
docker container:   ║ To update to the latest version, run "flutter upgrade".                    ║
docker container:   ╚════════════════════════════════════════════════════════════════════════════╝
docker container: 
docker container: Running "flutter pub get" in flutter_tools...                      49.5s
docker container: Running "flutter pub get" in app...                                73.8s
docker container: Font subsetting is not supported in debug mode. The --tree-shake-icons flag will be ignored.
docker container: hover: Generating kernel snapshot
docker container: result 34b067ee-3e27-41cc-bf03-dc52cce49ef3
docker container: lib/main.dart: Warning: Interpreting this as package URI, 'package:passbook/main.dart'.
docker container: /opt/flutter/packages/flutter/lib/src/foundation/binding.dart:87:3: Error: Type 'ui.Window' not found.
docker container:   ui.Window get window => ui.window;
docker container:   ^^^^^^^^^
docker container: /opt/flutter/packages/flutter/lib/src/widgets/media_query.dart:128:29: Error: Type 'ui.Window' not found.
docker container:   MediaQueryData.fromWindow(ui.Window window)
docker container:                             ^^^^^^^^^
docker container: /opt/flutter/packages/flutter/lib/src/rendering/view.dart:60:14: Error: Type 'ui.Window' not found.
docker container:     required ui.Window window,
docker container:              ^^^^^^^^^
docker container: /opt/flutter/packages/flutter/lib/src/rendering/view.dart:88:9: Error: Type 'ui.Window' not found.
docker container:   final ui.Window _window;
docker container:         ^^^^^^^^^
docker container: /opt/flutter/packages/flutter/lib/src/widgets/media_query.dart:128:32: Error: 'Window' isn't a type.
docker container:   MediaQueryData.fromWindow(ui.Window window)
docker container:                                ^^^^^^
docker container: /opt/flutter/packages/flutter/lib/src/rendering/view.dart:60:17: Error: 'Window' isn't a type.
docker container:     required ui.Window window,
docker container:                 ^^^^^^
docker container: /opt/flutter/packages/flutter/lib/src/rendering/view.dart:88:12: Error: 'Window' isn't a type.
docker container:   final ui.Window _window;
docker container:            ^^^^^^
docker container: 34b067ee-3e27-41cc-bf03-dc52cce49ef3
docker container: +file:///app/lib/main.dart
docker container: +file:///app/lib/plugin/desktop/io.dart
docker container: +file:///app/lib/src/moorDatabase.dart
docker container: +file:///opt/flutter/packages/flutter/lib/material.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/provider-4.3.2+4/lib/provider.dart
docker container: +file:///app/lib/passwordLayout.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/open.dart
docker container: +file:///opt/flutter/packages/flutter/lib/foundation.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/moor.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/ffi.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path_provider-1.6.27/lib/path_provider.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety.3/lib/path.dart
docker container: +file:///app/lib/src/Database/shared.dart
docker container: +file:///app/lib/src/moorDatabase.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/about.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/app.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/app_bar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/app_bar_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/arc.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/back_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/banner.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/banner_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/bottom_app_bar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/bottom_app_bar_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/bottom_navigation_bar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/bottom_navigation_bar_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/bottom_sheet.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/bottom_sheet_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/button_bar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/button_bar_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/button_style.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/button_style_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/button_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/card.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/card_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/checkbox.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/checkbox_list_tile.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/chip.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/chip_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/circle_avatar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/color_scheme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/colors.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/constants.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/curves.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/data_table.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/data_table_source.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/data_table_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/debug.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/dialog.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/dialog_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/divider.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/divider_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/drawer.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/drawer_header.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/dropdown.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/elevated_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/elevated_button_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/elevation_overlay.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/expand_icon.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/expansion_panel.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/expansion_tile.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/feedback.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/flat_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/flexible_space_bar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/floating_action_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/floating_action_button_location.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/floating_action_button_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/flutter_logo.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/grid_tile.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/grid_tile_bar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/icon_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/icons.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/ink_decoration.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/ink_highlight.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/ink_ripple.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/ink_splash.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/ink_well.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/input_border.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/input_decorator.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/list_tile.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/material.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/material_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/material_localizations.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/material_state.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/mergeable_material.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/navigation_rail.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/navigation_rail_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/outline_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/outlined_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/outlined_button_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/page.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/page_transitions_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/paginated_data_table.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/pickers/pickers.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/popup_menu.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/popup_menu_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/progress_indicator.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/radio.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/radio_list_tile.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/raised_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/range_slider.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/refresh_indicator.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/reorderable_list.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/scaffold.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/scrollbar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/search.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/selectable_text.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/shadows.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/slider.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/slider_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/snack_bar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/snack_bar_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/stepper.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/switch.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/switch_list_tile.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/tab_controller.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/tab_indicator.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/tabs.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/text_button.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/text_button_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/text_field.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/text_form_field.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/text_selection.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/text_selection_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/text_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/theme_data.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/time.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/time_picker.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/time_picker_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/toggle_buttons.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/toggle_buttons_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/toggleable.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/tooltip.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/tooltip_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/typography.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/user_accounts_drawer_header.dart
docker container: +file:///opt/flutter/packages/flutter/lib/widgets.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/provider-4.3.2+4/lib/src/async_provider.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/provider-4.3.2+4/lib/src/change_notifier_provider.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/provider-4.3.2+4/lib/src/consumer.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/provider-4.3.2+4/lib/src/listenable_provider.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/provider-4.3.2+4/lib/src/provider.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/provider-4.3.2+4/lib/src/proxy_provider.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/provider-4.3.2+4/lib/src/reassemble_handler.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/provider-4.3.2+4/lib/src/selector.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/provider-4.3.2+4/lib/src/value_listenable_provider.dart
docker container: +file:///app/lib/Support/passwordManagerFolderPath.dart
docker container: +file:///app/lib/Support/permissions_service.dart
docker container: +file:///app/lib/addPasswordPage.dart
docker container: +file:///app/lib/customAppBar.dart
docker container: +file:///app/lib/customDrawer.dart
docker container: +file:///app/lib/passwordsListView.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/src/load_library.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/meta-1.3.0-nullsafety.6/lib/meta.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/annotations.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/assertions.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/basic_types.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/binding.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/bitfield.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/change_notifier.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/collections.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/consolidate_response.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/constants.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/debug.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/diagnostics.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/isolates.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/key.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/licenses.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/node.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/object.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/observer_list.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/platform.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/print.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/serialization.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/stack_frame.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/synchronous_future.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/foundation/unicode.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/dsl/dsl.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/runtime/query_builder/query_builder.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/runtime/executor/connection_pool.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/runtime/executor/executor.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/runtime/executor/transactions.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/runtime/custom_result_set.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/runtime/data_verification.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/runtime/data_class.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/runtime/api/runtime_api.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/runtime/types/sql_types.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/runtime/exceptions.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/utils/expand_variables.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/utils/hash.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/utils/lazy_database.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/moor-3.4.0/lib/src/ffi/vm_database.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/sqlite3-0.1.8/lib/sqlite3.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path_provider_linux-0.0.1+2/lib/path_provider_linux.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path_provider_windows-0.0.4+3/lib/path_provider_windows.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-1.0.4/lib/path_provider_platform_interface.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path_provider_platform_interface-1.0.4/lib/src/method_channel_path_provider.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety.3/lib/src/context.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety.3/lib/src/style.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety.3/lib/src/path_exception.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety.3/lib/src/path_map.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/path-1.8.0-nullsafety.3/lib/src/path_set.dart
docker container: +file:///app/lib/src/Database/mobile.dart
docker container: +file:///opt/flutter/packages/flutter/lib/scheduler.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/animated_icons.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/add_event.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/arrow_menu.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/close_menu.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/ellipsis_search.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/event_add.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/home_menu.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/list_view.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/menu_arrow.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/menu_close.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/menu_home.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/pause_play.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/play_pause.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/search_ellipsis.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/animated_icons/data/view_list.g.dart
docker container: +file:///opt/flutter/packages/flutter/lib/cupertino.dart
docker container: +file:///opt/flutter/packages/flutter/lib/rendering.dart
docker container: +file:///opt/flutter/packages/flutter/lib/services.dart
docker container: +file:///opt/flutter/packages/flutter/lib/animation.dart
docker container: +file:///opt/flutter/packages/flutter/lib/painting.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/vector_math-2.1.0-nullsafety.5/lib/vector_math_64.dart
docker container: +file:///opt/flutter/packages/flutter/lib/gestures.dart
docker container: +file:///opt/flutter/packages/flutter/lib/semantics.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/pickers/calendar_date_picker.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/pickers/date_picker_common.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/pickers/date_picker_deprecated.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/pickers/date_picker_dialog.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/pickers/date_range_picker_dialog.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/material/pickers/input_date_picker.dart
docker container: +file:///root/.pub-cache/hosted/pub.dartlang.org/characters-1.1.0-nullsafety.5/lib/characters.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/actions.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/animated_cross_fade.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/animated_list.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/animated_size.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/animated_switcher.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/annotated_region.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/app.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/async.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/autocomplete.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/autofill.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/automatic_keep_alive.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/banner.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/basic.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/binding.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/bottom_navigation_bar_item.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/color_filter.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/container.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/debug.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/dismissible.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/disposable_build_context.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/drag_target.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/draggable_scrollable_sheet.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/dual_transition_builder.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/editable_text.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/fade_in_image.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/focus_manager.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/focus_scope.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/focus_traversal.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/form.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/framework.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/gesture_detector.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/grid_paper.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/heroes.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/icon.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/icon_data.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/icon_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/icon_theme_data.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/image.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/image_filter.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/image_icon.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/implicit_animations.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/inherited_model.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/inherited_notifier.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/inherited_theme.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/interactive_viewer.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/layout_builder.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/list_wheel_scroll_view.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/localizations.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/media_query.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/modal_barrier.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/navigation_toolbar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/navigator.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/nested_scroll_view.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/notification_listener.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/orientation_builder.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/overflow_bar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/overlay.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/overscroll_indicator.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/page_storage.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/page_view.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/pages.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/performance_overlay.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/placeholder.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/platform_view.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/preferred_size.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/primary_scroll_controller.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/raw_keyboard_listener.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/restoration.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/restoration_properties.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/router.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/routes.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/safe_area.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_activity.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_aware_image_provider.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_configuration.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_context.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_controller.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_metrics.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_notification.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_physics.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_position.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_position_with_single_context.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_simulation.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scroll_view.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scrollable.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/scrollbar.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/semantics_debugger.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/shortcuts.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/single_child_scroll_view.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/size_changed_layout_notifier.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/sliver.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/sliver_fill.dart
docker container: +file:///opt/flutter/packages/flutter/lib/src/widgets/sliver_layout_builder.dart
[...]
raveltan commented 3 years ago

I'm also facing the same issue, this seems to only occur on builds using docker

provokateurin commented 3 years ago

I think it might happen because the docker image contains an too old flutter version.

raveltan commented 3 years ago

I'm not very familiar with docker. but can we run the flutter upgrade manually, or we can only wait for the maintainers to update the docker image? @jld3103

provokateurin commented 3 years ago

If you clone the repo and build the Docker image locally this would be fixed. I think @GeertJohan once proposed to also add the flutter version to the tag so we have a combination of hover version and flutter version for the docker image tag. That would fix the problem forever.

raveltan commented 3 years ago

Okay, thanks for the clarification

darkshadow013 commented 3 years ago

@jld3103 can you please tell me how to do this?

Thanks!!

provokateurin commented 3 years ago

On linux and mac:

git clone https://github.com/go-flutter-desktop/hover.git
cd hover
./install-with-docker-image.sh

On windows do the same, but run the commands in install-with-docker-image.sh manually (not tested, but should work as far as I know):

go install .
set DOCKER_BUILDKIT=1
docker build . -t goflutter/hover:latest
darkshadow013 commented 3 years ago

Thanks for the answer,

when i run command :- hover build linux-deb --target "lib/main.dart It worked.

But, when i tried running command to build .snap :- hover build linux-snap --target "lib/main.dart

The output is :-

himanshu@himanshu-Latitude-3560:~/Downloads/Flutter_Projects/passbook$ hover build linux-snap --target "lib/main.dart" 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 hover: Generating kernel snapshot result 645cac56-ecd6-418d-b004-e3f187344633 lib/main.dart: Warning: Interpreting this as package URI, 'package:passbook/main.dart'. 645cac56-ecd6-418d-b004-e3f187344633 +file:///home/himanshu/Downloads/Flutter_Projects/passbook/lib/main.dart +file:///home/himanshu/Downloads/Flutter_Projects/passbook/lib/plugin/desktop/io.dart +file:///home/himanshu/Downloads/Flutter_Projects/passbook/lib/src/moorDatabase.dart +file:///home/himanshu/snap/flutter/common/flutter/packages/flutter/lib/material.dart [....] +file:///home/himanshu/snap/flutter/common/flutter/.pub-cache/hosted/pub.dartlang.org/file-5.2.1/lib/src/backends/local/local_file_system_entity.dart 645cac56-ecd6-418d-b004-e3f187344633 /home/himanshu/Downloads/Flutter_Projects/passbook/go/build/outputs/linux-release/kernel_snapshot.dill 0 hover: Generating ELF snapshot Warning: Generating ELF library without DWARF debugging information. hover: Compiling 'go-flutter' and plugins hover: Successfully compiled executable binary for linux hover: Packaging app for linux-snap hover: Missing/Empty author field in pubspec.yaml. Please add it or otherwise you may publish your app with a wrong author. Continuing with himanshu as a placeholder author. hover: Missing/Empty license field in go/hover.yaml. Please add it or otherwise you may publish your app with a wrong license. Continuing with NOASSERTION as a placeholder license. hover: Packaging snap in /tmp/hover-build-passbook-linux-snap012990494 hover: Cleaning the build directory Launching a VM. mesg: ttyname failed: Inappropriate ioctl for device
mesg: ttyname failed: Inappropriate ioctl for device Source path "/tmp/hover-build-passbook-linux-snap012990494" does not exist An error occurred with the instance when trying to mount with 'multipass': returned exit code 1. Ensure that 'multipass' is setup correctly and try again. hover: exit status 2 hover: Packaging is very experimental and has mostly been tested on Linux. hover: Please open an issue at https://github.com/go-flutter-desktop/go-flutter/issues/new?template=BUG.md hover: with the log and a reproducible example if possible. You may also zip your app code hover: if you are comfortable with it (closed source etc.) and attach it to the issue.

Can you please help me resolving the error in case of packaging in snap.

provokateurin commented 3 years ago

Snap is pretty much broken and unmaintained. It shouldn't be used and I will remove it (at some point). If someone manages to get it working we can add it again.

darkshadow013 commented 3 years ago

Okay, thanks for resolving the issue.

kokocooler2020 commented 3 years ago

On linux and mac:

git clone https://github.com/go-flutter-desktop/hover.git
cd hover
./install-with-docker-image.sh

On windows do the same, but run the commands in install-with-docker-image.sh manually (not tested, but should work as far as I know):

go install .
set DOCKER_BUILDKIT=1
docker build . -t goflutter/hover:latest

Thanks!! I fixed the same issue on mac when build windows-exe.