ubuntu-flutter-community / settings

:penguin: :orange_heart: :blue_heart: An Ubuntu Desktop system settings app made with Flutter.
GNU General Public License v3.0
273 stars 48 forks source link

Can't build (latest) #439

Closed danimesq closed 8 months ago

danimesq commented 9 months ago

@Feichtmeier

Any build command I use, I receive the same result output:

Launching lib/main.dart on Linux in debug mode...
ERROR: /home/daniella/.pub-cache/hosted/pub.dev/yaru_widgets-2.7.0/lib/src/widgets/yaru_toggle_button_layout.dart:34:10: Error: Expected 2 type arguments.
ERROR:     with SlottedMultiChildRenderObjectWidgetMixin<_YaruToggleButtonSlot> {
ERROR:          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: /home/daniella/.pub-cache/hosted/pub.dev/yaru_widgets-2.7.0/lib/src/widgets/yaru_toggle_button_layout.dart:85:10: Error: Expected 2 type arguments.
ERROR:     with SlottedContainerRenderObjectMixin<_YaruToggleButtonSlot> {
ERROR:          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: /home/daniella/.pub-cache/hosted/pub.dev/yaru_widgets-2.7.0/lib/src/widgets/yaru_toggle_button_layout.dart:33:7: Error: The type 'SlottedMultiChildRenderObjectWidgetMixin<_YaruToggleButtonSlot>' can't be mixed in.
ERROR: class _YaruToggleButtonLayout extends RenderObjectWidget
ERROR:       ^
ERROR: /home/daniella/.pub-cache/hosted/pub.dev/yaru_widgets-2.7.0/lib/src/widgets/yaru_toggle_button_layout.dart:84:7: Error: The type 'SlottedContainerRenderObjectMixin<_YaruToggleButtonSlot>' can't be mixed in.
ERROR: class _YaruRenderToggleButton extends RenderBox
ERROR:       ^
ERROR: /home/daniella/.pub-cache/hosted/pub.dev/yaru_widgets-2.7.0/lib/src/widgets/yaru_toggle_button_layout.dart:33:7: Error: The non-abstract class '_YaruToggleButtonLayout' is missing implementations for these members:
ERROR:  - RenderObjectWidget.createElement
ERROR:  - Widget.createElement
ERROR: Try to either
ERROR:  - provide an implementation,
ERROR:  - inherit an implementation from a superclass or mixin,
ERROR:  - mark the class as abstract, or
ERROR:  - provide a 'noSuchMethod' implementation.
ERROR: class _YaruToggleButtonLayout extends RenderObjectWidget
ERROR:       ^^^^^^^^^^^^^^^^^^^^^^^
ERROR: /home/daniella/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/framework.dart:1885:23: Context: 'RenderObjectWidget.createElement' is defined here.
ERROR:   RenderObjectElement createElement();
ERROR:                       ^^^^^^^^^^^^^
ERROR: /home/daniella/snap/flutter/common/flutter/packages/flutter/lib/src/widgets/framework.dart:347:11: Context: 'Widget.createElement' is defined here.
ERROR:   Element createElement();
ERROR:           ^^^^^^^^^^^^^
ERROR: /home/daniella/.pub-cache/hosted/pub.dev/yaru_widgets-2.7.0/lib/src/widgets/yaru_toggle_button_layout.dart:94:29: Error: The method 'childForSlot' isn't defined for the class '_YaruRenderToggleButton'.
ERROR:  - '_YaruRenderToggleButton' is from 'package:yaru_widgets/src/widgets/yaru_toggle_button.dart' ('/home/daniella/.pub-cache/hosted/pub.dev/yaru_widgets-2.7.0/lib/src/widgets/yaru_toggle_button.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'childForSlot'.
ERROR:   RenderBox? get leading => childForSlot(_YaruToggleButtonSlot.leading);
ERROR:                             ^^^^^^^^^^^^
ERROR: /home/daniella/.pub-cache/hosted/pub.dev/yaru_widgets-2.7.0/lib/src/widgets/yaru_toggle_button_layout.dart:95:27: Error: The method 'childForSlot' isn't defined for the class '_YaruRenderToggleButton'.
ERROR:  - '_YaruRenderToggleButton' is from 'package:yaru_widgets/src/widgets/ya
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'childForSlot'.
ERROR:   RenderBox? get title => childForSlot(_YaruToggleButtonSlot.title);
ERROR:                           ^^^^^^^^^^^^
ERROR: /home/daniella/.pub-cache/hosted/pub.dev/yaru_widgets-2.7.0/lib/src/widgets/yaru_toggle_button_layout.dart:96:30: Error: The method 'childForSlot' isn't defined for the class '_YaruRenderToggleButton'.
ERROR:  - '_YaruRenderToggleButton' is from 'package:yaru_widgets/src/widgets/yaru_toggle_button.dart' ('/home/daniella/.pub-cache/hosted/pub.dev/yaru_widgets-2.7.0/lib/src/widgets/yaru_toggle_button.dart').
ERROR: Try correcting the name to the name of an existing method, or defining a method named 'childForSlot'.
ERROR:   RenderBox? get subtitle => childForSlot(_YaruToggleButtonSlot.subtitle);
ERROR:                              ^^^^^^^^^^^^
ERROR: Target kernel_snapshot failed: Exception
Building Linux application...                                           
Exception: Build process failed

That's for your original repo. In my fork experiment, after running init.sh and fix-attempt.sh (files I made in my repo), the errors have decreased:

Launching lib/main.dart on Linux in debug mode...
/media/daniella/B/git/Floflis/Floflis/Flutter/ubuntu_settings/linux/flutter/ephemeral/.plugin_symlinks/handy_window/linux/libhandy/src/src/hdy-cairo-private.h:14:10: fatal error: 'cairo/cairo.h' file not found
/media/daniella/B/git/Floflis/Floflis/Flutter/ubuntu_settings/linux/flutter/ephemeral/.plugin_symlinks/handy_window/linux/libhandy/src/src/hdy-cairo-private.h:14:10: fatal error: 'cairo/cairo.h' file not found
/media/daniella/B/git/Floflis/Floflis/Flutter/ubuntu_settings/linux/flutter/ephemeral/.plugin_symlinks/handy_window/linux/libhandy/src/src/hdy-cairo-private.h:14:10: fatal error: 'cairo/cairo.h' file not found
Building Linux application...                                           
Exception: Build process failed

Possibly related to https://github.com/flutter/flutter-intellij/issues/4746?

Feichtmeier commented 9 months ago

Hello. I didn't touch this project since months but I guess deps are just outdated and I didn't pin all deps. I'll have a look in the next days

danimesq commented 8 months ago

Dunno how, but I was able to build recently: https://github.com/EdgyOS/settings/releases/tag/be23a1