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

Issue 3006483002: Remove check for scheme in source-loader. (Closed)

Created:
3 years, 4 months ago by Siggi Cherem (dart-lang)
Modified:
3 years, 3 months ago
Reviewers:
Johnni Winther, ahe
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove check for scheme in source-loader. Context: this prevents us from using other schemes in unit tests, and causes issues when processign a URI with no scheme, that happens to be supported by the underlying file-system (e.g. PhysicalFileSystem will make it a `file:*` URI if no scheme was present). This is necessary to fix dartbug.com/30141 R=ahe@google.com Committed: https://github.com/dart-lang/sdk/commit/d9ae60e14fdec52bda977ed114f6ad70dc2f0bc4 Committed: https://github.com/dart-lang/sdk/commit/1a2870f798a5daab46162171e33d01fe7dc0e2e3

Patch Set 1 #

Total comments: 4

Patch Set 2 : require a scheme #

Patch Set 3 : address bot failures #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -4 lines) Patch
M pkg/front_end/lib/physical_file_system.dart View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/fasta_codes_generated.dart View 1 2 1 chunk +21 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/source_loader.dart View 1 3 chunks +9 lines, -3 lines 1 comment Download
M pkg/front_end/messages.yaml View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
Siggi Cherem (dart-lang)
https://codereview.chromium.org/3006483002/diff/1/pkg/front_end/lib/src/fasta/source/source_loader.dart File pkg/front_end/lib/src/fasta/source/source_loader.dart (left): https://codereview.chromium.org/3006483002/diff/1/pkg/front_end/lib/src/fasta/source/source_loader.dart#oldcode101 pkg/front_end/lib/src/fasta/source/source_loader.dart:101: if (uri == null || uri.scheme != "file" && ...
3 years, 4 months ago (2017-08-23 20:38:33 UTC) #3
ahe
I think this should work: keep the if, but change the condition to be: if ...
3 years, 4 months ago (2017-08-24 10:08:53 UTC) #4
Siggi Cherem (dart-lang)
PTAL https://codereview.chromium.org/3006483002/diff/1/pkg/front_end/lib/src/fasta/source/source_loader.dart File pkg/front_end/lib/src/fasta/source/source_loader.dart (left): https://codereview.chromium.org/3006483002/diff/1/pkg/front_end/lib/src/fasta/source/source_loader.dart#oldcode101 pkg/front_end/lib/src/fasta/source/source_loader.dart:101: if (uri == null || uri.scheme != "file" ...
3 years, 4 months ago (2017-08-24 18:55:19 UTC) #5
Siggi Cherem (dart-lang)
(I may land this TBR to unblock Johnni and I'd be happy to address any ...
3 years, 4 months ago (2017-08-24 19:29:18 UTC) #6
Siggi Cherem (dart-lang)
Committed patchset #2 (id:20001) manually as d9ae60e14fdec52bda977ed114f6ad70dc2f0bc4 (presubmit successful).
3 years, 4 months ago (2017-08-24 23:24:38 UTC) #8
ahe
https://codereview.chromium.org/3006483002/diff/1/pkg/front_end/lib/src/fasta/source/source_loader.dart File pkg/front_end/lib/src/fasta/source/source_loader.dart (left): https://codereview.chromium.org/3006483002/diff/1/pkg/front_end/lib/src/fasta/source/source_loader.dart#oldcode101 pkg/front_end/lib/src/fasta/source/source_loader.dart:101: if (uri == null || uri.scheme != "file" && ...
3 years, 4 months ago (2017-08-25 08:52:31 UTC) #9
Siggi Cherem (dart-lang)
PTAL at the last patch set. We are seeing crashes because we are capturing FileSystemExceptions ...
3 years, 3 months ago (2017-08-25 15:06:25 UTC) #10
Siggi Cherem (dart-lang)
FYI Johnni - I'll wait for an lgtm from Peter, if you need this sooner, ...
3 years, 3 months ago (2017-08-25 18:31:23 UTC) #12
ahe
https://codereview.chromium.org/3006483002/diff/40001/pkg/front_end/lib/src/fasta/source/source_loader.dart File pkg/front_end/lib/src/fasta/source/source_loader.dart (right): https://codereview.chromium.org/3006483002/diff/40001/pkg/front_end/lib/src/fasta/source/source_loader.dart#newcode106 pkg/front_end/lib/src/fasta/source/source_loader.dart:106: return internalProblem( I'm not sure these checks belong here ...
3 years, 3 months ago (2017-08-28 12:54:39 UTC) #14
ahe
lgtm I can make my changes in a separate CL, so let's just land this ...
3 years, 3 months ago (2017-08-29 15:49:55 UTC) #15
Siggi Cherem (dart-lang)
3 years, 3 months ago (2017-08-29 18:35:21 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
1a2870f798a5daab46162171e33d01fe7dc0e2e3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698