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

Issue 2988673002: Add support for creating a .packages file when the plugin is in a Bazel workspace (Closed)

Created:
3 years, 4 months ago by Brian Wilkerson
Modified:
3 years, 4 months ago
Reviewers:
scheglov, mfairhurst
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add support for creating a .packages file when the plugin is in a Bazel workspace R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/0f9707073daa6bb2342ca4b125d3d0bba9ee99f5

Patch Set 1 #

Total comments: 4

Patch Set 2 : address comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+231 lines, -78 lines) Patch
M pkg/analysis_server/lib/src/plugin/plugin_manager.dart View 1 7 chunks +157 lines, -78 lines 3 comments Download
M pkg/analysis_server/test/src/plugin/plugin_manager_test.dart View 1 1 chunk +74 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Brian Wilkerson
3 years, 4 months ago (2017-07-24 15:09:01 UTC) #2
scheglov
LGTM https://codereview.chromium.org/2988673002/diff/1/pkg/analysis_server/lib/src/plugin/plugin_manager.dart File pkg/analysis_server/lib/src/plugin/plugin_manager.dart (right): https://codereview.chromium.org/2988673002/diff/1/pkg/analysis_server/lib/src/plugin/plugin_manager.dart#newcode693 pkg/analysis_server/lib/src/plugin/plugin_manager.dart:693: YamlDocument document = loadYamlDocument(pubspecFile.readAsStringSync(), Maybe read in try/catch? ...
3 years, 4 months ago (2017-07-24 15:35:34 UTC) #3
Brian Wilkerson
ptal https://codereview.chromium.org/2988673002/diff/1/pkg/analysis_server/lib/src/plugin/plugin_manager.dart File pkg/analysis_server/lib/src/plugin/plugin_manager.dart (right): https://codereview.chromium.org/2988673002/diff/1/pkg/analysis_server/lib/src/plugin/plugin_manager.dart#newcode693 pkg/analysis_server/lib/src/plugin/plugin_manager.dart:693: YamlDocument document = loadYamlDocument(pubspecFile.readAsStringSync(), I had intended to ...
3 years, 4 months ago (2017-07-24 15:57:43 UTC) #4
scheglov
LGTM
3 years, 4 months ago (2017-07-24 16:08:00 UTC) #5
Brian Wilkerson
Committed patchset #2 (id:20001) manually as 0f9707073daa6bb2342ca4b125d3d0bba9ee99f5 (presubmit successful).
3 years, 4 months ago (2017-07-24 17:00:10 UTC) #7
mfairhurst
3 years, 4 months ago (2017-07-24 18:00:07 UTC) #8
Message was sent while issue was closed.
LGTM, some thoughts from the g3 perspective (which may already be on your mind
and just be too soon, but still worth syncing)

https://codereview.chromium.org/2988673002/diff/20001/pkg/analysis_server/lib...
File pkg/analysis_server/lib/src/plugin/plugin_manager.dart (right):

https://codereview.chromium.org/2988673002/diff/20001/pkg/analysis_server/lib...
pkg/analysis_server/lib/src/plugin/plugin_manager.dart:431: // because we won't
be running pub.
This will prevent the bazel support from working without a pubspec file, no?

Edit: I see, looks like bazel support requires pubspec files?

Any change we could do like, bazel queries instead?

https://codereview.chromium.org/2988673002/diff/20001/pkg/analysis_server/lib...
pkg/analysis_server/lib/src/plugin/plugin_manager.dart:676: return null;
should log the exception too though

https://codereview.chromium.org/2988673002/diff/20001/pkg/analysis_server/lib...
pkg/analysis_server/lib/src/plugin/plugin_manager.dart:703: YamlNode
dependencies = contents['dependencies'];
Is there any way we can get this info by running pub? This skips
dev_dependencies; would be nice if pub could encaspulate that behavior so it
doesn't have to be perfectly recreated here.

Powered by Google App Engine
This is Rietveld 408576698