Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spec_cli pulls in breaking changes from riverpod #28

Closed
ufrshubham opened this issue Oct 1, 2022 · 3 comments · Fixed by #32
Closed

spec_cli pulls in breaking changes from riverpod #28

ufrshubham opened this issue Oct 1, 2022 · 3 comments · Fixed by #32

Comments

@ufrshubham
Copy link

Package spec_cli is failing due to breaking changes from riverpod 2.0.0. This seems to be causing Flame engine's github workflows to fail.
Here is a log: https://github.com/flame-engine/flame/actions/runs/3163297130/jobs/5150721652

@nilsreichardt
Copy link
Contributor

I have the same issue.

Logs
NilsMBP13M13:ios nils$ dart pub global activate spec_cli
+ _fe_analyzer_shared 49.0.0.4s)
+ analyzer 5.1.0
+ ansi_styles 0.3.2+1
+ args 2.3.1
+ async 2.9.0
+ boolean_selector 2.1.0
+ charcode 1.3.1
+ cli_util 0.3.5
+ collection 1.16.0
+ conventional_commit 0.4.3+1 (0.5.0 available)
+ convert 3.0.2
+ coverage 1.6.1
+ crypto 3.0.2
+ dart_test_adapter 0.2.0
+ duration 3.0.12
+ file 6.1.4
+ freezed_annotation 1.1.0 (2.1.0 available)
+ frontend_server_client 3.0.0
+ glob 2.1.0
+ graphs 2.1.0
+ http 0.13.5
+ http_multi_server 3.2.1
+ http_parser 4.0.1
+ io 1.0.3
+ js 0.6.4
+ json_annotation 4.7.0
+ logging 1.0.2
+ matcher 0.12.12
+ melos 1.5.2 (2.7.1 available)
+ meta 1.8.0
+ mime 1.0.2
+ mustache_template 2.0.0
+ node_preamble 2.0.1
+ package_config 2.1.0
+ path 1.8.2
+ platform 3.1.0
+ pool 1.5.1
+ pub_semver 2.1.1
+ pubspec 2.3.0
+ quiver 3.1.0
+ riverpod 2.0.0
+ shelf 1.4.0
+ shelf_packages_handler 3.0.1
+ shelf_static 1.1.1
+ shelf_web_socket 1.0.2
+ source_map_stack_trace 2.1.0
+ source_maps 0.10.10
+ source_span 1.9.1
+ spec_cli 0.1.2+2
+ stack_trace 1.10.0
+ state_notifier 0.7.2+1
+ stream_channel 2.1.1
+ string_scanner 1.1.1
+ term_glyph 1.2.1
+ test 1.21.6
+ test_api 0.4.14
+ test_core 0.4.18
+ typed_data 1.3.1
+ uri 1.0.0
+ vm_service 9.4.0
+ watcher 1.0.1
+ web_socket_channel 2.2.0
+ webkit_inspection_protocol 1.2.0
+ yaml 3.1.1
Building package executables... (1.4s)
Failed to build spec_cli:main:
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:148:31: Error: The argument type 'AlwaysAliveRefreshable<StateController<RegExp?>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'RegExp' is from 'dart:core'.
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
    ref.read($testNameFilters.notifier).state = options.testNameFilters.isEmpty
                              ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:153:31: Error: The argument type 'AlwaysAliveRefreshable<StateController<List<String>>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'List' is from 'dart:core'.
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
    ref.read($filePathFilters.notifier).state = options.fileFilters
                              ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:157:27: Error: The argument type 'AlwaysAliveRefreshable<StateController<bool>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
    ref.read($isWatchMode.notifier).state = options.watch;
                          ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:158:25: Error: The argument type 'AlwaysAliveRefreshable<StateController<DateTime>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'DateTime' is from 'dart:core'.
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
    ref.read($startTime.notifier).state = DateTime.now();
                        ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:177:57: Error: The argument type 'AlwaysAliveRefreshable<StateController<List<FailedTestLocation>>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'List' is from 'dart:core'.
 - 'FailedTestLocation' is from 'package:spec_cli/src/dart_test.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/dart_test.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
            data: (value) => ref.read(_$lastFailedTests.notifier).state = value,
                                                        ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:178:55: Error: The argument type 'AlwaysAliveRefreshable<StateController<List<FailedTestLocation>>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'List' is from 'dart:core'.
 - 'FailedTestLocation' is from 'package:spec_cli/src/dart_test.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/dart_test.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
            loading: () => ref.read(_$lastFailedTests.notifier).state = [],
                                                      ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:180:53: Warning: Operand of null-aware operation '!' has type 'StackTrace' which excludes null.
 - 'StackTrace' is from 'dart:core'.
              Zone.current.handleUncaughtError(err, stack!);
                                                    ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:209:53: Warning: Operand of null-aware operation '!' has type 'StackTrace' which excludes null.
 - 'StackTrace' is from 'dart:core'.
              Zone.current.handleUncaughtError(err, stack!);
                                                    ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:231:30: Error: The getter 'future' isn't defined for the class 'AutoDisposeProvider<AsyncValue<int>>'.
 - 'AutoDisposeProvider' is from 'package:riverpod/src/provider.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/provider.dart').
 - 'AsyncValue' is from 'package:riverpod/src/common.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/common.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'future'.
        ref.listen($exitCode.future, (previous, current) {});
                             ^^^^^^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:234:41: Error: The getter 'future' isn't defined for the class 'AutoDisposeProvider<AsyncValue<int>>'.
 - 'AutoDisposeProvider' is from 'package:riverpod/src/provider.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/provider.dart').
 - 'AsyncValue' is from 'package:riverpod/src/common.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/common.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'future'.
        return await ref.read($exitCode.future);
                                        ^^^^^^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:254:43: Error: The argument type 'Refreshable<StateController<bool>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'Refreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
        ref.read($isEditingTestNameFilter.notifier).state = false;
                                          ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:255:35: Error: The argument type 'AlwaysAliveRefreshable<StateController<RegExp?>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'RegExp' is from 'dart:core'.
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
        ref.read($testNameFilters.notifier).state =
                                  ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:263:43: Error: The argument type 'Refreshable<StateController<bool>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'Refreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
        ref.read($isEditingTestNameFilter.notifier).state = false;
                                          ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:267:44: Error: The argument type 'Refreshable<StateController<String>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'Refreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
        ref.read($editingTestNameTextField.notifier).update((state) {
                                           ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:272:44: Error: The argument type 'Refreshable<StateController<String>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'Refreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
        ref.read($editingTestNameTextField.notifier).state +=
                                           ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:283:29: Error: The argument type 'AlwaysAliveRefreshable<StateController<bool>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
        ref.read($didPressQ.notifier).state = true;
                            ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:288:34: Error: The argument type 'Refreshable<StateController<bool>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'Refreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
        ref.read($showWatchUsage.notifier).state = true;
                                 ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:293:45: Error: The argument type 'AlwaysAliveRefreshable<StateController<bool>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
        ref.read($isRunningOnlyFailingTests.notifier).update((state) => !state);
                                            ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:299:44: Error: The argument type 'Refreshable<StateController<String>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'Refreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
        ref.read($editingTestNameTextField.notifier).state =
                                           ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:301:43: Error: The argument type 'Refreshable<StateController<bool>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'Refreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
        ref.read($isEditingTestNameFilter.notifier).state = true;
                                          ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:312:28: Error: The argument type 'AlwaysAliveRefreshable<TestEventsNotifier>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'TestEventsNotifier' is from 'package:spec_cli/src/dart_test.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/dart_test.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
          ref.read($events.notifier).stop();
                           ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:324:23: Error: The argument type 'AlwaysAliveRefreshable<StateController<DateTime>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'DateTime' is from 'dart:core'.
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
  ref.read($startTime.notifier).state = DateTime.now();
                      ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/command_runner.dart:325:41: Error: The argument type 'AlwaysAliveRefreshable<StateController<List<FailedTestLocation>?>>' can't be assigned to the parameter type 'ProviderBase<dynamic>'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'StateController' is from 'package:riverpod/src/state_controller.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/state_controller.dart').
 - 'List' is from 'dart:core'.
 - 'FailedTestLocation' is from 'package:spec_cli/src/dart_test.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/dart_test.dart').
 - 'ProviderBase' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
  ref.read($failedTestLocationToExecute.notifier).state =
                                        ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/dart_test.dart:31:23: Error: A value of type 'AlwaysAliveRefreshable<Future<List<_Package>>>' can't be assigned to a variable of type 'ProviderOrFamily'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'Future' is from 'dart:async'.
 - 'List' is from 'dart:core'.
 - '_Package' is from 'package:spec_cli/src/dart_test.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/dart_test.dart').
 - 'ProviderOrFamily' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
    $filteredPackages.future,
                      ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/dart_test.dart:224:31: Error: A value of type 'AlwaysAliveRefreshable<Future<List<_Package>>>' can't be assigned to a variable of type 'ProviderOrFamily'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'Future' is from 'dart:async'.
 - 'List' is from 'dart:core'.
 - '_Package' is from 'package:spec_cli/src/dart_test.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/dart_test.dart').
 - 'ProviderOrFamily' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
  dependencies: [$allPackages.future, $filePathFilters],
                              ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/rendering.dart:405:27: Error: A value of type 'AlwaysAliveRefreshable<TestEventsNotifier>' can't be assigned to a variable of type 'ProviderOrFamily'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'TestEventsNotifier' is from 'package:spec_cli/src/dart_test.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/dart_test.dart').
 - 'ProviderOrFamily' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
}, dependencies: [$events.notifier]);
                          ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/rendering.dart:412:27: Error: A value of type 'AlwaysAliveRefreshable<TestEventsNotifier>' can't be assigned to a variable of type 'ProviderOrFamily'.
 - 'AlwaysAliveRefreshable' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
 - 'TestEventsNotifier' is from 'package:spec_cli/src/dart_test.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/dart_test.dart').
 - 'ProviderOrFamily' is from 'package:riverpod/src/framework.dart' ('../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/framework.dart').
}, dependencies: [$events.notifier]);
                          ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/provider_utils.dart:17:22: Error: Too few positional arguments: 2 required, 1 given.
    return AsyncError(e.error, stackTrace: e.stackTrace);
                     ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/common.dart:372:9: Context: Found this candidate, but the arguments don't match.
  const AsyncError(Object error, StackTrace stackTrace)
        ^^^^^^^^^^
../../../../../../.pub-cache/hosted/pub.dartlang.org/spec_cli-0.1.2+2/lib/src/provider_utils.dart:21:25: Error: Too few positional arguments: 2 required, 1 given.
    return AsyncError<T>(err, stackTrace: stack);
                        ^
../../../../../../.pub-cache/hosted/pub.dartlang.org/riverpod-2.0.0/lib/src/common.dart:372:9: Context: Found this candidate, but the arguments don't match.
  const AsyncError(Object error, StackTrace stackTrace)
        ^^^^^^^^^^
Dart SDK version: 2.18.2 (stable) (Tue Sep 27 13:24:11 2022 +0200) on "macos_arm64"

@nilsreichardt
Copy link
Contributor

I opened a PR to fix this: #30

@nilsreichardt
Copy link
Contributor

Running dart pub global activate spec_cli still fails because it uses v0.1.2+2:

dart pub global activate spec_cli
+ _fe_analyzer_shared 49.0.0.3s)
+ analyzer 5.1.0
+ ansi_styles 0.3.2+1
+ args 2.3.1
+ async 2.9.0
+ boolean_selector 2.1.0
+ charcode 1.3.1
+ cli_util 0.3.5
+ collection 1.16.0
+ conventional_commit 0.4.3+1 (0.5.0 available)
+ convert 3.0.2
+ coverage 1.6.1
+ crypto 3.0.2
+ dart_test_adapter 0.2.0
+ duration 3.0.12
+ file 6.1.4
+ freezed_annotation 1.1.0 (2.1.0 available)
+ frontend_server_client 3.0.0
+ glob 2.1.0
+ graphs 2.1.0
+ http 0.13.5
+ http_multi_server 3.2.1
+ http_parser 4.0.1
+ io 1.0.3
+ js 0.6.4
+ json_annotation 4.7.0
+ logging 1.0.2
+ matcher 0.12.12
+ melos 1.5.2 (2.7.1 available)
+ meta 1.8.0
+ mime 1.0.2
+ mustache_template 2.0.0
+ node_preamble 2.0.1
+ package_config 2.1.0
+ path 1.8.2
+ platform 3.1.0
+ pool 1.5.1
+ pub_semver 2.1.1
+ pubspec 2.3.0
+ quiver 3.1.0
+ riverpod 2.0.2
+ shelf 1.4.0
+ shelf_packages_handler 3.0.1
+ shelf_static 1.1.1
+ shelf_web_socket 1.0.2
+ source_map_stack_trace 2.1.0
+ source_maps 0.10.10
+ source_span 1.9.1
+ spec_cli 0.1.2+2 (0.1.3 available)
+ stack_trace 1.10.0
+ state_notifier 0.7.2+1
+ stream_channel 2.1.1
+ string_scanner 1.1.1
+ term_glyph 1.2.1
+ test 1.21.6
+ test_api 0.4.14
+ test_core 0.4.18
+ typed_data 1.3.1
+ uri 1.0.0
+ vm_service 9.4.0
+ watcher 1.0.1
+ web_socket_channel 2.2.0
+ webkit_inspection_protocol 1.2.0
+ yaml 3.1.1

How can I tell dart pub that it should use the new version? It also shows that there is a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants