Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Dependency Resolution Failed #17

Closed
eeickmeyer opened this issue May 27, 2023 · 3 comments
Closed

Dependency Resolution Failed #17

eeickmeyer opened this issue May 27, 2023 · 3 comments

Comments

@eeickmeyer
Copy link

eeickmeyer commented May 27, 2023

Attempting to at least get to a starting point, I'm running into this issue:

Because every version of ubuntu_wizard from git depends on flutter_localizations from sdk which depends on intl 0.18.0, every version of ubuntu_wizard from git requires intl 0.18.0.
And because every version of ubuntu_desktop_installer from git depends on intl ^0.17.0, ubuntu_desktop_installer from git is incompatible with ubuntu_wizard from git.
So, because ubuntu_flavor_installer depends on both ubuntu_desktop_installer from git and ubuntu_wizard from git, version solving failed.

Seems as though something needs to be updated.

@eeickmeyer
Copy link
Author

Still encountering a similar problem, though not the same.

Because every version of ubuntu_desktop_installer from git depends on ubuntu_widgets from git which depends on yaru
  ^0.9.0, every version of ubuntu_desktop_installer from git requires yaru ^0.9.0.
So, because ubuntu_flavor_installer depends on both yaru ^0.5.0 and ubuntu_desktop_installer from git, version solving
  failed.

Every time I try to get this to work, I keep encountering issues, and so far, no response to these issues.

@eeickmeyer
Copy link
Author

I was able to get this somewhat working by cloning ubuntu-desktop-installer into packages, checking out the correct commit, and then updating the required versions every time I hit a dependency error, but this is less than ideal and less than helpful.

Even less helpful is when I finally got it to run flutter run -d linux, I discovered that, on my KDE Plasma based system, I was missing libcairo2-dev. When finally installed, the entire thing threw errors:

ERROR: packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/select_guided_storage/select_guided_storage_page.dart:75:24: Error: The method 'DropdownBuilder' isn't defined for the class '_SelectGuidedStoragePageState'.
ERROR:  - '_SelectGuidedStoragePageState' is from 'package:ubuntu_desktop_installer/pages/select_guided_storage/select_guided_storage_page.dart' ('packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/select_guided_storage/select_guided_storage_page.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'DropdownBuilder'.
ERROR:                 child: DropdownBuilder<int>(
ERROR:                        ^^^^^^^^^^^^^^^
ERROR: packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/install_alongside/install_alongside_widgets.dart:37:18: Error: The method 'DropdownBuilder' isn't defined for the class '_StorageSelector'.
ERROR:  - '_StorageSelector' is from 'package:ubuntu_desktop_installer/pages/install_alongside/install_alongside_page.dart' ('packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/install_alongside/install_alongside_page.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'DropdownBuilder'.
ERROR:           child: DropdownBuilder<int>(
ERROR:                  ^^^^^^^^^^^^^^^
ERROR: packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/widgets/storage_size_box.dart:65:18: Error: The method 'DropdownBuilder' isn't defined for the class 'StorageSizeBox'.
ERROR:  - 'StorageSizeBox' is from 'package:ubuntu_desktop_installer/widgets/storage_size_box.dart' ('packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/widgets/storage_size_box.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'DropdownBuilder'.
ERROR:           child: DropdownBuilder<DataUnit>(
ERROR:                  ^^^^^^^^^^^^^^^
ERROR: packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/connect_to_internet/hidden_wifi_view.dart:107:17: Error: 'ValidatedFormField' is imported from both 'package:ubuntu_widgets/src/validated_form_field.dart' and 'package:ubuntu_wizard/src/widgets/validated_form_field.dart'.
ERROR:                 ValidatedFormField(
ERROR:                 ^^^^^^^^^^^^^^^^^^
ERROR: packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/connect_to_internet/hidden_wifi_view.dart:84:12: Error: 'AnimatedExpanded' is imported from both 'package:ubuntu_widgets/src/animated_expanded.dart' and 'package:ubuntu_wizard/src/widgets/animated_expanded.dart'.
ERROR:     return AnimatedExpanded(
ERROR:            ^^^^^^^^^^^^^^^^
ERROR: packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/connect_to_internet/hidden_wifi_view.dart:97:19: Error: The method 'DropdownBuilder' isn't defined for the class '_HiddenWifiViewState'.
ERROR:  - '_HiddenWifiViewState' is from 'package:ubuntu_desktop_installer/pages/connect_to_internet/hidden_wifi_view.dart' ('packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/connect_to_internet/hidden_wifi_view.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'DropdownBuilder'.
ERROR:                   DropdownBuilder<WifiDevice>(
ERROR:                   ^^^^^^^^^^^^^^^
ERROR: packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/allocate_disk_space/storage_selector.dart:34:9: Error: The method 'DropdownBuilder' isn't defined for the class 'StorageSelector'.
ERROR:  - 'StorageSelector' is from 'package:ubuntu_desktop_installer/pages/allocate_disk_space/storage_selector.dart' ('packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/allocate_disk_space/storage_selector.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'DropdownBuilder'.
ERROR:         DropdownBuilder<int>(
ERROR:         ^^^^^^^^^^^^^^^
ERROR: packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/allocate_disk_space/allocate_disk_space_dialogs.dart:358:16: Error: The method 'DropdownBuilder' isn't defined for the class '_PartitionFormatSelector'.
ERROR:  - '_PartitionFormatSelector' is from 'package:ubuntu_desktop_installer/pages/allocate_disk_space/allocate_disk_space_dialogs.dart' ('packages/ubuntu-desktop-installer/packages/ubuntu_desktop_installer/lib/pages/allocate_disk_space/allocate_disk_space_dialogs.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'DropdownBuilder'.
ERROR:         return DropdownBuilder<PartitionFormat?>(
ERROR:                ^^^^^^^^^^^^^^^
ERROR: packages/ubuntu-desktop-installer/packages/ubuntu_wizard/lib/app.dart:58:9: Error: Method not found: 'setupAppLocalizations'.
ERROR:   await setupAppLocalizations();
ERROR:         ^^^^^^^^^^^^^^^^^^^^^
ERROR: Target kernel_snapshot failed: Exception

To say I, as a flavor lead, am displeased with the lack of communication about implementing this installer and the lack of keeping this repository up-to-date would be an understatement at this time, especially seeing as we are one week out from feature freeze.

@jpnurmi
Copy link
Contributor

jpnurmi commented Aug 11, 2023

My apologies for not having had a chance to give flavors the support they would've deserved. The whole structure has been revamped, hopefully resulting in less painful updates:

@jpnurmi jpnurmi closed this as completed Aug 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants