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

Issue 1373953002: Basic analyzer `main()` isolate bootloader. (Closed)

Created:
5 years, 2 months ago by pquitslund
Modified:
5 years, 2 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Base URL:
https://github.com/dart-lang/analyzer_cli.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Basic analyzer `main()` isolate bootloader. Plenty of refinement to come but this works. Setup looks like this: Image image = new BootLoader().createImage(args); image.load(); Obviously names are provisional and integration tests to come. R=brianwilkerson@google.com Committed: https://github.com/dart-lang/analyzer_cli/commit/fb6100af1361499feb9e973f01aa3a458c2f1cd1

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -1 line) Patch
A lib/src/bootloader.dart View 1 chunk +193 lines, -0 lines 6 comments Download
M test/data/plugin_options.yaml View 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 7 (1 generated)
pquitslund
5 years, 2 months ago (2015-09-28 17:34:44 UTC) #2
Brian Wilkerson
LGTM https://chromiumcodereview.appspot.com/1373953002/diff/1/lib/src/bootloader.dart File lib/src/bootloader.dart (right): https://chromiumcodereview.appspot.com/1373953002/diff/1/lib/src/bootloader.dart#newcode92 lib/src/bootloader.dart:92: /// Create a loadable analyzer image confifgured with ...
5 years, 2 months ago (2015-09-28 17:48:11 UTC) #3
pquitslund
https://chromiumcodereview.appspot.com/1373953002/diff/1/lib/src/bootloader.dart File lib/src/bootloader.dart (right): https://chromiumcodereview.appspot.com/1373953002/diff/1/lib/src/bootloader.dart#newcode92 lib/src/bootloader.dart:92: /// Create a loadable analyzer image confifgured with plugins ...
5 years, 2 months ago (2015-09-28 18:01:29 UTC) #4
pquitslund
Committed patchset #1 (id:1) manually as fb6100af1361499feb9e973f01aa3a458c2f1cd1 (presubmit successful).
5 years, 2 months ago (2015-09-28 18:08:49 UTC) #5
Brian Wilkerson
https://chromiumcodereview.appspot.com/1373953002/diff/1/lib/src/bootloader.dart File lib/src/bootloader.dart (right): https://chromiumcodereview.appspot.com/1373953002/diff/1/lib/src/bootloader.dart#newcode113 lib/src/bootloader.dart:113: List<OptionsProcessor> optionsProcessors = > Actually, that's exactly what our ...
5 years, 2 months ago (2015-09-28 18:29:20 UTC) #6
pquitslund
5 years, 2 months ago (2015-09-28 21:15:03 UTC) #7
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/1373953002/diff/1/lib/src/bootloader.dart
File lib/src/bootloader.dart (right):

https://chromiumcodereview.appspot.com/1373953002/diff/1/lib/src/bootloader.d...
lib/src/bootloader.dart:113: List<OptionsProcessor> optionsProcessors =
On 2015/09/28 18:29:20, Brian Wilkerson wrote:
> > Actually, that's exactly what our PluginConfigOptionsProcessor is. If we
> didn't
> > add options processors we wouldn't see the plugins configured in
> > `.analysis_options`.
> >
> > ...
> >
> > In this case PluginConfigOptionsProcessor should actually ONLY getting run
in
> the
> > bootstrapping and not in the bootstrapped isolate.  Something to think
> about...
> 
> So it's an explicitly installed "plugin" that can only be loaded during the
> bootloading process? Doesn't sound much like a plugin, but OK. (I'd probably
not
> treat it like a plugin just to avoid confusing myself.)

I agree.  Addressed here:

https://codereview.chromium.org/1373903004/
> 
> > Side note: if there end up being more plugins that want to
> > participate in bootstrapping we might want to make this explicit somehow.
> 
> They can't. Not unless we first write a pre-bootloader bootloader that could
> discover the plugins that want to run during the bootloading process. That's
> just a little too meta for my taste. :-)

Ha!  We're on the same page.  As much as I like to go meta, this is taking it a
little far. :)

Powered by Google App Engine
This is Rietveld 408576698