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

Issue 1753083003: Fix issue where errors aren't reported for a new overlay (Closed)

Created:
4 years, 9 months ago by skybrian
Modified:
4 years, 9 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix issue where errors aren't reported for a new overlay A new overlay was not being marked as an explicitly added source, even if it's within the directory of an analysis context. As a result, errors were not being reported. I believe this only happens if there's no underlying file. Therefore it seems difficult to reproduce in an IDE, but it comes up in a stress test. BUG= R=brianwilkerson@google.com Committed: https://github.com/dart-lang/sdk/commit/5831cfb1bb2e5360cea6dd1850126515a8f3f7ce

Patch Set 1 #

Total comments: 1

Patch Set 2 : rewritten, with a test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -1 line) Patch
M pkg/analysis_server/lib/src/analysis_server.dart View 1 2 chunks +13 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/analysis/update_content_test.dart View 1 2 chunks +25 lines, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
skybrian
I haven't written the tests yet, but I'd be interested in what you think of ...
4 years, 9 months ago (2016-03-02 03:55:19 UTC) #2
skybrian
https://codereview.chromium.org/1753083003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/1753083003/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode1267 pkg/analysis_server/lib/src/analysis_server.dart:1267: explicit: contextSource.contained)) { Oops, this check should probably be ...
4 years, 9 months ago (2016-03-02 06:35:34 UTC) #3
Brian Wilkerson
I think it makes perfect sense for server to consider overlays for files that do ...
4 years, 9 months ago (2016-03-02 18:09:58 UTC) #4
skybrian
Could you take another look?
4 years, 9 months ago (2016-03-03 02:26:06 UTC) #5
Brian Wilkerson
LGTM, although we need to remember to come back and remove the source if the ...
4 years, 9 months ago (2016-03-03 14:53:05 UTC) #6
skybrian
Committed patchset #2 (id:20001) manually as 5831cfb1bb2e5360cea6dd1850126515a8f3f7ce (presubmit successful).
4 years, 9 months ago (2016-03-03 18:43:07 UTC) #8
skybrian
On 2016/03/03 14:53:05, Brian Wilkerson wrote: > LGTM, although we need to remember to come ...
4 years, 9 months ago (2016-03-03 18:45:40 UTC) #9
Brian Wilkerson
Good. Then it would be useful to add an explicit test to avoid regressions.
4 years, 9 months ago (2016-03-03 19:02:59 UTC) #10
skybrian
4 years, 9 months ago (2016-03-03 19:43:04 UTC) #11
Message was sent while issue was closed.
On 2016/03/03 19:02:59, Brian Wilkerson wrote:
> Good. Then it would be useful to add an explicit test to avoid regressions.

It looks like deletion is tested at the end of test_overlayOnly.

Powered by Google App Engine
This is Rietveld 408576698