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

Issue 1931553003: Make file-paths absolute before providing them to the CustomUrlResolver (Closed)

Created:
4 years, 7 months ago by Siggi Cherem (dart-lang)
Modified:
4 years, 7 months ago
CC:
dev-compiler+reviews_dartlang.org
Base URL:
git@github.com:dart-lang/dev_compiler.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make file-paths absolute before providing them to the CustomUrlResolver R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/9d18982cd9a8237c425d41b35ec7740893e38d6a

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M lib/src/analyzer/context.dart View 2 chunks +2 lines, -1 line 0 comments Download
M test/codegen/expect/language-all.js View 1 Binary file 0 comments Download

Messages

Total messages: 12 (2 generated)
Siggi Cherem (dart-lang)
From an early experiment, using the CustomUrlResolver seems to be good enough for what we ...
4 years, 7 months ago (2016-04-27 23:46:03 UTC) #2
Siggi Cherem (dart-lang)
FYI - exposing ExplicitSourceMapping is pretty simple too. I already have the change available here: ...
4 years, 7 months ago (2016-04-27 23:50:08 UTC) #3
Jennifer Messerly
LGTM :)
4 years, 7 months ago (2016-04-28 00:02:48 UTC) #4
Siggi Cherem (dart-lang)
thanks - after running the tests I saw a change in the language-all.js file, mainly ...
4 years, 7 months ago (2016-04-28 15:56:46 UTC) #5
vsm
On 2016/04/28 15:56:46, Siggi Cherem (dart-lang) wrote: > thanks - after running the tests I ...
4 years, 7 months ago (2016-04-28 16:04:46 UTC) #6
Siggi Cherem (dart-lang)
On 2016/04/28 16:04:46, vsm wrote: > On 2016/04/28 15:56:46, Siggi Cherem (dart-lang) wrote: > > ...
4 years, 7 months ago (2016-04-28 16:07:19 UTC) #7
Siggi Cherem (dart-lang)
Committed patchset #2 (id:20001) manually as 9d18982cd9a8237c425d41b35ec7740893e38d6a (presubmit successful).
4 years, 7 months ago (2016-04-28 16:07:34 UTC) #9
Paul Berry
On 2016/04/27 23:46:03, Siggi Cherem (dart-lang) wrote: > From an early experiment, using the CustomUrlResolver ...
4 years, 7 months ago (2016-04-28 16:09:41 UTC) #10
Jennifer Messerly
On 2016/04/28 16:09:41, Paul Berry wrote: > On 2016/04/27 23:46:03, Siggi Cherem (dart-lang) wrote: > ...
4 years, 7 months ago (2016-04-28 20:05:46 UTC) #11
Jennifer Messerly
4 years, 7 months ago (2016-04-28 20:06:09 UTC) #12
Message was sent while issue was closed.
On 2016/04/28 20:05:46, John Messerly wrote:
> On 2016/04/28 16:09:41, Paul Berry wrote:
> > On 2016/04/27 23:46:03, Siggi Cherem (dart-lang) wrote:
> > > From an early experiment, using the CustomUrlResolver seems to be good
> enough
> > > for what we need in bazel - we just need to ensure the paths were
absolute.
> > > 
> > > Paul - if there is a reason I should be using the ExplicitSourceResolver
> > > instead, let me know and I'll expose it here instead. [I was just having a
> > hard
> > > time explaining the difference between `customUrlMapping` and
> > > `explicitUrlMapping` when documenting the flags, and that really prompt me
> to
> > > explore this direction more].
> > 
> > I see two minor reasons to prefer ExplicitSourceResolver over
> CustomUriResolver:
> > 
> > 1. ExplicitSourceResolver contains a correct implementation of
> > `restoreAbsolute`; CustomUriResolver does not.  I don't know whether DDC
will
> > run into trouble with this or not, but it might be better to be safe than
> sorry.
> > 
> > 2. ExplicitSourceResolver returns NonExistingSource if it is asked for a
> source
> > file that does not exist, which is more consistent with the behavior of
> > FileUriResolver and therefore less likely to trigger bugs elsewhere in
> analyzer.
> >  Again, I don't know whether DDC will run into trouble with this or not, but
> it
> > might be better to be safe.
> > 
> > Your call, though.  lgtm either way.
> 
> ExplicitSourceResolver sounds fine. Do you know why CustomUriResolver exists?
I
> don't even recall why we got it added in DDC, maybe something related to
Flutter
> "dart:sky"?

basically I don't want two almost identical things, one of which may or may not
be broken... :)

Powered by Google App Engine
This is Rietveld 408576698