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

Issue 1080323002: Prevent analysis exceptions from crashing the completion engine. (Closed)

Created:
5 years, 8 months ago by Paul Berry
Modified:
5 years, 8 months ago
Reviewers:
danrubel
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Prevent analysis exceptions from crashing the completion engine. Prevent CompletionDomainHandler.priorityChanged() from crashing if the future returned by DartCompletionManager.computeCache() completes with an error (which can happen in the event that an exception occurred while analyzing the file in question). BUG=dartbug.com/23176 R=danrubel@google.com Committed: https://code.google.com/p/dart/source/detail?r=45142

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M pkg/analysis_server/lib/src/domain_completion.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
Paul Berry
5 years, 8 months ago (2015-04-14 13:20:46 UTC) #2
danrubel
lgtm
5 years, 8 months ago (2015-04-14 13:55:54 UTC) #3
Paul Berry
Committed patchset #1 (id:1) manually as 45142 (presubmit successful).
5 years, 8 months ago (2015-04-14 16:30:49 UTC) #4
kevmoo
On 2015/04/14 16:30:49, Paul Berry wrote: > Committed patchset #1 (id:1) manually as 45142 (presubmit ...
5 years, 8 months ago (2015-04-14 19:21:16 UTC) #5
Paul Berry
5 years, 8 months ago (2015-04-14 19:32:59 UTC) #6
Message was sent while issue was closed.
On 2015/04/14 19:21:16, kevmoo wrote:
> On 2015/04/14 16:30:49, Paul Berry wrote:
> > Committed patchset #1 (id:1) manually as 45142 (presubmit successful).
> 
> DBC: if errors are swallowed, should they be logged?

At the time the error is detected (during analysis) it is already logged, but I
suspect it is not logged in a sufficiently visible way, and it is on my list to
investigate that further.

In principle we could also log the error here in
CompletionDomainHandler.priorityChanged(), but I suspect that wouldn't gain us
very much more signal-to-noise over the existing logging.

Powered by Google App Engine
This is Rietveld 408576698