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

Issue 1962403002: Fix CLI SDK option config timing (#26129). (Closed)

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

Description

Fix CLI SDK option config timing (#26129). Fixes: https://github.com/dart-lang/sdk/issues/26129 The issue was that we were creating the SDK and populating its options (notably `strong-mode`) *before* options processors were called. The result was that client code analysis contexts and SDK contexts were getting configured differently causing confusion when client code was getting analyzed with a non-strong-mode SDK. BUG= R=paulberry@google.com Committed: https://github.com/dart-lang/sdk/commit/79139687252e4b6edc7a01db24cf5f4e30b5469b

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -25 lines) Patch
M pkg/analyzer_cli/lib/src/analyzer_impl.dart View 2 chunks +0 lines, -3 lines 0 comments Download
M pkg/analyzer_cli/lib/src/driver.dart View 7 chunks +18 lines, -22 lines 2 comments Download
M pkg/analyzer_cli/test/data/options_tests_project/.analysis_options View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/analyzer_cli/test/driver_test.dart View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
pquitslund
Paul: I'd appreciate a sanity check. I *believe* this preserves your batch mode logic. Please ...
4 years, 7 months ago (2016-05-10 18:10:42 UTC) #2
Paul Berry
lgtm. Note: the acid test for whether the batch mode logic is preserved is to ...
4 years, 7 months ago (2016-05-10 18:33:24 UTC) #3
pquitslund
Committed patchset #1 (id:1) manually as 79139687252e4b6edc7a01db24cf5f4e30b5469b (presubmit successful).
4 years, 7 months ago (2016-05-10 20:35:47 UTC) #5
pquitslund
4 years, 7 months ago (2016-05-10 21:22:39 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/1962403002/diff/1/pkg/analyzer_cli/lib/src/dr...
File pkg/analyzer_cli/lib/src/driver.dart (right):

https://codereview.chromium.org/1962403002/diff/1/pkg/analyzer_cli/lib/src/dr...
pkg/analyzer_cli/lib/src/driver.dart:585: void _setupSdk({String path}) {
On 2016/05/10 18:33:24, Paul Berry wrote:
> Nit: it seems weird for [path] to be an optional parameter, when AFAICT the
only
> caller always passes a value for it.

Yeah.  I just really like named params! Would that I could make them required. 
After merging with master I did away with this anyway since I need the options
handy to scan source files to check whether to use summaries.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698