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

[CI] Drop SearchAnchor #424

Closed
lyskouski opened this issue Nov 22, 2023 · 0 comments · Fixed by #425
Closed

[CI] Drop SearchAnchor #424

lyskouski opened this issue Nov 22, 2023 · 0 comments · Fixed by #425
Assignees
Labels
bug Something isn't working

Comments

@lyskouski
Copy link
Owner

lyskouski commented Nov 22, 2023

After upgrade to 5.16

Bad state: Too many elements
main.dart.js:70288     at Object.wrapException (https://lyskouski.github.io/app-finance/main.dart.js:10474:43)
main.dart.js:70288     at JavaScriptObject.get$single (https://lyskouski.github.io/app-finance/main.dart.js:96520:15)
main.dart.js:70288     at ScrollAction.invoke$2 (https://lyskouski.github.io/app-finance/main.dart.js:225956:32)
main.dart.js:70288     at _OverridableContextAction.invokeDefaultAction$3 (https://lyskouski.github.io/app-finance/main.dart.js:202090:19)
main.dart.js:70288     at _OverridableContextAction.invoke$2 (https://lyskouski.github.io/app-finance/main.dart.js:202020:39)
main.dart.js:70288     at _OverridableContextAction._invoke$2 (https://lyskouski.github.io/app-finance/main.dart.js:201594:22)
main.dart.js:70288     at PrioritizedAction.invoke$2 (https://lyskouski.github.io/app-finance/main.dart.js:202003:10)
main.dart.js:70288     at PrioritizedAction._invoke$2 (https://lyskouski.github.io/app-finance/main.dart.js:201594:22)
main.dart.js:70288     at ActionDispatcher.invokeActionIfEnabled$3 (https://lyskouski.github.io/app-finance/main.dart.js:201632:45)
main.dart.js:70288     at ShortcutManager.handleKeypress$2 (https://lyskouski.github.io/app-finance/main.dart.js:228198:23)

1: wrapException(ex) {
      return A.initializeExceptionWrapper(new Error(), ex); // !
    },

2: get$single(receiver) {
      var t1 = receiver.length;
      if (t1 === 1)
        return receiver[0];
      if (t1 === 0)
        throw A.wrapException(A.IterableElementError_noElement());
      throw A.wrapException(A.IterableElementError_tooMany()); // !
    },

3: invoke$2(intent, context) {
      var state, t1, t2, increment;
      context.toString;
      state = A.Scrollable_maybeOf(context);
      if (state == null) {
        t1 = A.PrimaryScrollController_maybeOf(context)._positions;
        t2 = B.JSArray_methods.get$single(t1); // !

4: invokeDefaultAction$3(intent, fromAction, context) {
      var t1 = this.defaultAction;
      if (fromAction == null)
        return t1.invoke$2(intent, context); // !

5: _invoke$2(intent, context) {
      var _this = this;
      if (A._instanceType(_this)._eval$1("ContextAction<Action.T>")._is(_this))
        return _this.invoke$2(intent, context); // !

...

end: handleKeypress$2(context, $event) {
      var t1, primaryContext, action, _0_0, _0_1, _0_2, enabled, invokeResult, _null = null,
        matchedIntent = this._find$2($event, $.$get$RawKeyboard_instance());
      if (matchedIntent != null) {
        t1 = $.WidgetsBinding__instance.WidgetsBinding__buildOwner.focusManager._primaryFocus;
        primaryContext = t1 == null ? _null : t1._context;
        if (primaryContext != null) {
          action = A.Actions_maybeFind(primaryContext, matchedIntent, type$.Intent);
          if (action != null) {
            primaryContext.dependOnInheritedWidgetOfExactType$1$0(type$._ActionsScope);
            t1 = A.Actions__findDispatcher(primaryContext);
            _0_0 = t1.invokeActionIfEnabled$3(action, matchedIntent, primaryContext); // !

Remark:

@lyskouski lyskouski self-assigned this Nov 22, 2023
@lyskouski lyskouski added the bug Something isn't working label Nov 22, 2023
@lyskouski lyskouski added this to the v5.5.0 - User Feedback milestone Nov 22, 2023
@lyskouski lyskouski linked a pull request Nov 23, 2023 that will close this issue
@lyskouski lyskouski pinned this issue Nov 23, 2023
@lyskouski lyskouski changed the title [CI] Too many elements [CI] Drop SearchAnchor Nov 23, 2023
lyskouski added a commit that referenced this issue Dec 13, 2023
@lyskouski lyskouski unpinned this issue Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant