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

Issue 8898001: Convert "library unit" File path into "absolute unit path", issue 590. (Closed)

Created:
9 years ago by scheglov
Modified:
8 years, 11 months ago
Reviewers:
jgw, codefu, Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Convert "library unit" File path into "absolute unit path", issue 590. http://code.google.com/p/dart/issues/detail?id=590 Actually URI is not expectedto be absolute path to the unit, this is just ID. And Compiler provides it in form pathToTheLibraryUnit/unitName.dart So, I've tweaked converting URI into File. R=brianwilkerson@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=3002

Patch Set 1 #

Patch Set 2 : Fix URI for diet source #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -14 lines) Patch
M compiler/java/com/google/dart/compiler/ast/LibraryUnit.java View 1 6 chunks +36 lines, -14 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
scheglov
9 years ago (2011-12-09 15:37:19 UTC) #1
Brian Wilkerson
I think you're attacking the problem in the wrong place. In my mind the real ...
9 years ago (2011-12-09 16:03:17 UTC) #2
codefu
On 2011/12/09 16:03:17, Brian Wilkerson wrote: > I think you're attacking the problem in the ...
9 years ago (2011-12-09 16:30:31 UTC) #3
Brian Wilkerson
> I just talked to Joel and the reason for the Library+Unit is to keep ...
9 years ago (2011-12-09 17:03:37 UTC) #4
Brian Wilkerson
I just ran a little experiment. I loaded frog into the Editor and printed out ...
9 years ago (2011-12-09 17:58:37 UTC) #5
Brian Wilkerson
Here's the list of the URI's that were printed: dart://html/src/MessageEvent.dart dart://html/src/MessageEvent.dart file:/Users/brianwilkerson/src/dart-public/dart/frog/leg/elements/elements.dart file:/Users/brianwilkerson/src/dart-public/dart/frog/leg/typechecker.dart file:/Users/brianwilkerson/src/dart-public/dart/frog/leg/elements/elements.dart file:/Users/brianwilkerson/src/dart-public/dart/frog/leg/tree/nodes.dart ...
9 years ago (2011-12-09 17:59:21 UTC) #6
codefu
On 2011/12/09 17:59:21, Brian Wilkerson wrote: > Here's the list of the URI's that were ...
9 years ago (2011-12-09 18:10:05 UTC) #7
Brian Wilkerson
> Is this code path, getResource(File), only getting getting called from the error > handler? ...
9 years ago (2011-12-09 18:19:06 UTC) #8
codefu
Adding Joel for reference. I don't think that's a bad idea. On 2011/12/09 18:19:06, Brian ...
9 years ago (2011-12-09 18:23:30 UTC) #9
scheglov
I've uploaded new patch which fixes URI for diet unit from LibraryUnit. With it Editor ...
8 years, 11 months ago (2012-01-04 20:19:42 UTC) #10
mmendez
DBC I talked to scheglov offline about this and figured out follow up in case ...
8 years, 11 months ago (2012-01-04 20:56:29 UTC) #11
scheglov
On 2012/01/04 20:56:29, mmendez wrote: > DBC > > I talked to scheglov offline about ...
8 years, 11 months ago (2012-01-04 21:09:35 UTC) #12
Brian Wilkerson
> > How does the editor determine when to clear the error markers? Does it ...
8 years, 11 months ago (2012-01-04 22:48:33 UTC) #13
scheglov
On 2012/01/04 22:48:33, Brian Wilkerson wrote: > > > How does the editor determine when ...
8 years, 11 months ago (2012-01-05 04:59:32 UTC) #14
Brian Wilkerson
8 years, 11 months ago (2012-01-05 15:55:34 UTC) #15
So, back to the CL, if I'm understanding correctly and the compiler will now
report compilation errors with the unmodified (and correct) URI and the only
remaining problem is the way the editor is (or is failing to) manage the errors
that are being reported, then LGTM. We can sort out the editor's issues in a
different set of CLs. (I got the impression somewhere along the way that the URI
being returned might sometimes be the URI of the library file rather than the
URI of the compilation unit containing the error, which would clearly not be
acceptable, but that's probably an incorrect impression.)

Powered by Google App Engine
This is Rietveld 408576698