Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Issue 2527423002: Filter out AnalysisErrors with null 'errorCode'. (Closed)

Created:
4 years ago by scheglov
Modified:
4 years ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Filter out AnalysisErrors with null 'errorCode'. We have an error report: My guess is that `errorCodeByUniqueName` returned `null`. It might be either a bug in `errorCodeByUniqueName`, or a shortcoming or our current data version mechanism (which we know about - it should be a hash of sources or something like this). Either way, a missing error is better than a crash. R=paulberry@google.com, brianwilkerson@google.com BUG= Committed: https://github.com/dart-lang/sdk/commit/5ff8db3a5f75b699ead93a9ffdb8998b9608c505

Patch Set 1 #

Patch Set 2 : Throw an exception if cannot find ErrorCode by its uniqueName. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -9 lines) Patch
M pkg/analyzer/lib/src/dart/analysis/driver.dart View 1 1 chunk +9 lines, -9 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
scheglov
4 years ago (2016-11-25 18:02:29 UTC) #1
Paul Berry
I'm concerned because the only explanation I can think of for this error occurring is ...
4 years ago (2016-11-26 15:19:39 UTC) #2
scheglov
PTAL
4 years ago (2016-11-27 18:13:18 UTC) #3
Paul Berry
lgtm
4 years ago (2016-11-27 23:17:19 UTC) #4
scheglov
Committed patchset #2 (id:20001) manually as 5ff8db3a5f75b699ead93a9ffdb8998b9608c505 (presubmit successful).
4 years ago (2016-11-28 16:43:25 UTC) #6
Brian Wilkerson
4 years ago (2016-11-28 18:20:39 UTC) #7
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698