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

Issue 1762363002: Fix path handling when creating summaries. (Closed)

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

Description

Fix path handling when creating summaries. The path passed to "--packageMode" must be converted to an absolute path because it is used to normalize file paths (which are automatically converted to absolute paths by the PhysicalResourceProvider. We should not call `resourceProvider.pathContext.absolute()`. This seems (by its name) like it would convert its argument to an absolute path. But in fact it simply prepends the path with `resourceProvider.pathContext.current`, which is `.`, and this causes Source objects to be created referring to non-canonical paths. R=scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/8219e27009bedab4a9acf0a4b4b0903a7b1148c9

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M pkg/analyzer_cli/lib/src/package_analyzer.dart View 2 chunks +2 lines, -2 lines 2 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
These fixes will be needed in order to integrate summary creation into Bazel, since Bazel ...
4 years, 9 months ago (2016-03-04 18:57:15 UTC) #2
scheglov
LGTM https://codereview.chromium.org/1762363002/diff/1/pkg/analyzer_cli/lib/src/package_analyzer.dart File pkg/analyzer_cli/lib/src/package_analyzer.dart (right): https://codereview.chromium.org/1762363002/diff/1/pkg/analyzer_cli/lib/src/package_analyzer.dart#newcode49 pkg/analyzer_cli/lib/src/package_analyzer.dart:49: .join(io.Directory.current.absolute.path, options.packageModePath); Should we use both absolute() and ...
4 years, 9 months ago (2016-03-04 19:15:22 UTC) #3
Paul Berry
https://codereview.chromium.org/1762363002/diff/1/pkg/analyzer_cli/lib/src/package_analyzer.dart File pkg/analyzer_cli/lib/src/package_analyzer.dart (right): https://codereview.chromium.org/1762363002/diff/1/pkg/analyzer_cli/lib/src/package_analyzer.dart#newcode49 pkg/analyzer_cli/lib/src/package_analyzer.dart:49: .join(io.Directory.current.absolute.path, options.packageModePath); On 2016/03/04 19:15:22, scheglov wrote: > Should ...
4 years, 9 months ago (2016-03-04 22:11:24 UTC) #4
Paul Berry
4 years, 9 months ago (2016-03-04 22:15:54 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
8219e27009bedab4a9acf0a4b4b0903a7b1148c9 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698