[CP][stable channel] Fix an analyze crash when analyzing against package:meta v1.4.0 #46210
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-stable
commit(s) to merge: COMMIT-HASH
merge instructions: clean merge or patch CL
What is the issue: Brief description of the problem
The analyzer in stable was built against package:meta 1.3.0. A value was added to a package:meta enum in meta 1.4.0; if the current stable analyzer analyzes code (that uses the 'targetkind' annotation), and the user code is using meta 1.4.0, the analyzer will crash.
What is the fix: Brief description of the fix
This fix improves the enum lookup for this situation to be based on the name of the enum and not the index of the enum.
Why cherrypick: Describe the reasons, like many users impacted, or serious functional issues, for example
This is a small fix, and many people using analyzer stable, but resolving their code against the recently released package:meta 1.4.0, will see analyzer crashes.
Risk:
Link to original issue(s):
/cc @kevmoo @mit-mit @whesse @athomas @vsmenon @franklinyow
The text was updated successfully, but these errors were encountered: