[GH-ISSUE #1583] [Bug] flood of compiler errors on MacOS. Is this a wrong dart version? #610

Closed
opened 2026-03-23 20:38:41 +00:00 by mirror · 1 comment
Owner

Originally created by @itinance on GitHub (Dec 18, 2022).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1583

Bug Description

I'm curious if another (outdated?) Dart Version has been used because I see a flood of compiler issues when I try to build this tool on latest flutter/dart on latest MacOS:

lib/plugins/grid/presentation/widgets/filter/choicechip/select_option/option_list.dart:69:38: Error: The getter 'visibleOptions' isn't defined for the class 'SelectOptionFilterListState'.
 - 'SelectOptionFilterListState' is from 'package:app_flowy/plugins/grid/application/filter/select_option_filter_list_bloc.dart'
 ('lib/plugins/grid/application/filter/select_option_filter_list_bloc.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'visibleOptions'.
                final option = state.visibleOptions[index];
                                     ^^^^^^^^^^^^^^
lib/plugins/grid/application/filter/text_filter_editor_bloc.dart:27:15: Error: The method 'when' isn't defined for the class 'TextFilterEditorEvent'.
 - 'TextFilterEditorEvent' is from 'package:app_flowy/plugins/grid/application/filter/text_filter_editor_bloc.dart' ('lib/plugins/grid/application/filter/text_filter_editor_bloc.dart').
Try correcting the name to the name of an existing method, or defining a method named 'when'.
        event.when(
              ^^^^
lib/plugins/grid/application/filter/text_filter_editor_bloc.dart:36:30: Error: The getter 'filter' isn't defined for the class 'TextFilterEditorState'.
 - 'TextFilterEditorState' is from 'package:app_flowy/plugins/grid/application/filter/text_filter_editor_bloc.dart' ('lib/plugins/grid/application/filter/text_filter_editor_bloc.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'filter'.
              content: state.filter.content,
                             ^^^^^^
lib/plugins/grid/application/filter/text_filter_editor_bloc.dart:43:32: Error: The getter 'filter' isn't defined for the class 'TextFilterEditorState'.
 - 'TextFilterEditorState' is from 'package:app_flowy/plugins/grid/application/filter/text_filter_editor_bloc.dart' ('lib/plugins/grid/application/filter/text_filter_editor_bloc.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'filter'.
              condition: state.filter.condition,
                               ^^^^^^

I could add approx. 3000 further messages here, which seem to have the same language-specific origin.

How to Reproduce

flutter pub get
flutter run

or

flutter pub get
flutter test

Expected Behavior

it compiles.

Operating System

MacOS Ventura 13.0.1

AppFlowy Version(s)

master

Screenshots

No response

Additional Context

Flutter 3.3.10 • channel stable • git@github.com:flutter/flutter.git
Framework • revision 135454af32 (3 days ago) • 2022-12-15 07:36:55 -0800
Engine • revision 3316dd8728
Tools • Dart 2.18.6 • DevTools 2.15.0

Originally created by @itinance on GitHub (Dec 18, 2022). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1583 ### Bug Description I'm curious if another (outdated?) Dart Version has been used because I see a flood of compiler issues when I try to build this tool on latest flutter/dart on latest MacOS: ``` lib/plugins/grid/presentation/widgets/filter/choicechip/select_option/option_list.dart:69:38: Error: The getter 'visibleOptions' isn't defined for the class 'SelectOptionFilterListState'. - 'SelectOptionFilterListState' is from 'package:app_flowy/plugins/grid/application/filter/select_option_filter_list_bloc.dart' ('lib/plugins/grid/application/filter/select_option_filter_list_bloc.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'visibleOptions'. final option = state.visibleOptions[index]; ^^^^^^^^^^^^^^ lib/plugins/grid/application/filter/text_filter_editor_bloc.dart:27:15: Error: The method 'when' isn't defined for the class 'TextFilterEditorEvent'. - 'TextFilterEditorEvent' is from 'package:app_flowy/plugins/grid/application/filter/text_filter_editor_bloc.dart' ('lib/plugins/grid/application/filter/text_filter_editor_bloc.dart'). Try correcting the name to the name of an existing method, or defining a method named 'when'. event.when( ^^^^ lib/plugins/grid/application/filter/text_filter_editor_bloc.dart:36:30: Error: The getter 'filter' isn't defined for the class 'TextFilterEditorState'. - 'TextFilterEditorState' is from 'package:app_flowy/plugins/grid/application/filter/text_filter_editor_bloc.dart' ('lib/plugins/grid/application/filter/text_filter_editor_bloc.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'filter'. content: state.filter.content, ^^^^^^ lib/plugins/grid/application/filter/text_filter_editor_bloc.dart:43:32: Error: The getter 'filter' isn't defined for the class 'TextFilterEditorState'. - 'TextFilterEditorState' is from 'package:app_flowy/plugins/grid/application/filter/text_filter_editor_bloc.dart' ('lib/plugins/grid/application/filter/text_filter_editor_bloc.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'filter'. condition: state.filter.condition, ^^^^^^ ``` I could add approx. 3000 further messages here, which seem to have the same language-specific origin. ### How to Reproduce ``` flutter pub get flutter run ``` or ``` flutter pub get flutter test ``` ### Expected Behavior it compiles. ### Operating System MacOS Ventura 13.0.1 ### AppFlowy Version(s) master ### Screenshots _No response_ ### Additional Context Flutter 3.3.10 • channel stable • git@github.com:flutter/flutter.git Framework • revision 135454af32 (3 days ago) • 2022-12-15 07:36:55 -0800 Engine • revision 3316dd8728 Tools • Dart 2.18.6 • DevTools 2.15.0
Author
Owner

@LucasXu0 commented on GitHub (Dec 19, 2022):

Duplicated. Follow up with #1582.

<!-- gh-comment-id:1357357417 --> @LucasXu0 commented on GitHub (Dec 19, 2022): Duplicated. Follow up with #1582.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#610
No description provided.