sdk icon indicating copy to clipboard operation
sdk copied to clipboard

[analysis server] Methods with generic type are unable to resolve arguments

Open AlexV525 opened this issue 1 year ago • 3 comments

A C
image image

[√] Flutter (Channel stable, 3.0.5, on Microsoft Windows [版本 10.0.22000.795], locale zh-CN)
    • Flutter version 3.0.5 at X:\SDK\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision f1875d570e (3 weeks ago), 2022-07-13 11:24:16 -0700
    • Engine revision e85ea0e79c
    • Dart version 2.17.6
    • DevTools version 2.12.2

[√] IntelliJ IDEA Ultimate Edition (version 2022.2)
    • IntelliJ at X:\IDEs\apps\IDEA-U\ch-0\222.3345.118
    • Flutter plugin version 69.0.5
    • Dart plugin version 222.3345.108

AlexV525 avatar Aug 04 '22 06:08 AlexV525

Previously we have #45972, but now the inspection is more broken.

AlexV525 avatar Aug 04 '22 06:08 AlexV525

/cc @scheglov

keertip avatar Aug 04 '22 15:08 keertip

This feature actually touches quite a few places in the analyzer, and how we resolve generic invocations, with quite large historical baggage, so cannot be done quickly. I don't have time to work on it. But anyone interesting is welcome to do it.

scheglov avatar Aug 04 '22 16:08 scheglov

Knocking down the priority to P2 (might be P3), as I don't think this is affecting a lot of users.

srawlins avatar Aug 10 '22 19:08 srawlins

I don't think this is affecting a lot of users.

@srawlins The inspection might be, but other linter rules applying to the method cannot take effect. For example, avoid_redundant_argument_values is useless here. image

AlexV525 avatar Aug 11 '22 08:08 AlexV525