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

Issue 11170003: Pub fix for Windows (Closed)

Created:
8 years, 2 months ago by Johnni Winther
Modified:
8 years, 2 months ago
CC:
reviews_dartlang.org, Bob Nystrom
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : Updated cf. comments #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -52 lines) Patch
M utils/pub/hosted_source.dart View 1 1 chunk +7 lines, -8 lines 3 comments Download
M utils/pub/io.dart View 1 1 chunk +4 lines, -44 lines 5 comments Download

Messages

Total messages: 14 (0 generated)
Johnni Winther
8 years, 2 months ago (2012-10-16 07:55:44 UTC) #1
ricow1
8 years, 2 months ago (2012-10-16 07:56:41 UTC) #2
Anders Johnsen
LGTM! https://codereview.chromium.org/11170003/diff/1/utils/pub/hosted_source.dart File utils/pub/hosted_source.dart (right): https://codereview.chromium.org/11170003/diff/1/utils/pub/hosted_source.dart#newcode90 utils/pub/hosted_source.dart:90: // TODO(rnystrom): Awful hack. On Windows, we see ...
8 years, 2 months ago (2012-10-16 07:59:47 UTC) #3
kasperl
LGTM with comment: https://codereview.chromium.org/11170003/diff/1/utils/pub/io.dart File utils/pub/io.dart (right): https://codereview.chromium.org/11170003/diff/1/utils/pub/io.dart#newcode639 utils/pub/io.dart:639: var pathTo7zip = '7zip/7za.exe'; Have you ...
8 years, 2 months ago (2012-10-16 08:01:27 UTC) #4
Anders Johnsen
https://codereview.chromium.org/11170003/diff/1/utils/pub/io.dart File utils/pub/io.dart (right): https://codereview.chromium.org/11170003/diff/1/utils/pub/io.dart#newcode639 utils/pub/io.dart:639: var pathTo7zip = '7zip/7za.exe'; On 2012/10/16 08:01:27, kasperl wrote: ...
8 years, 2 months ago (2012-10-16 08:03:19 UTC) #5
Johnni Winther
https://codereview.chromium.org/11170003/diff/1/utils/pub/hosted_source.dart File utils/pub/hosted_source.dart (right): https://codereview.chromium.org/11170003/diff/1/utils/pub/hosted_source.dart#newcode90 utils/pub/hosted_source.dart:90: // TODO(rnystrom): Awful hack. On Windows, we see cases ...
8 years, 2 months ago (2012-10-16 08:08:01 UTC) #6
kasperl
LGTM.
8 years, 2 months ago (2012-10-16 08:09:05 UTC) #7
ricow1
LGTM
8 years, 2 months ago (2012-10-16 08:09:09 UTC) #8
Bob Nystrom
Thanks for looking at this! https://codereview.chromium.org/11170003/diff/5/utils/pub/hosted_source.dart File utils/pub/hosted_source.dart (right): https://codereview.chromium.org/11170003/diff/5/utils/pub/hosted_source.dart#newcode97 utils/pub/hosted_source.dart:97: return renameDir(tempDir, destPath); Maybe ...
8 years, 2 months ago (2012-10-16 14:07:29 UTC) #9
Anders Johnsen
I hope this helps explaining the changes we did :) https://codereview.chromium.org/11170003/diff/5/utils/pub/hosted_source.dart File utils/pub/hosted_source.dart (right): https://codereview.chromium.org/11170003/diff/5/utils/pub/hosted_source.dart#newcode97 ...
8 years, 2 months ago (2012-10-16 14:29:57 UTC) #10
Bob Nystrom
https://codereview.chromium.org/11170003/diff/5/utils/pub/hosted_source.dart File utils/pub/hosted_source.dart (right): https://codereview.chromium.org/11170003/diff/5/utils/pub/hosted_source.dart#newcode97 utils/pub/hosted_source.dart:97: return renameDir(tempDir, destPath); On 2012/10/16 14:29:57, ajohnsen wrote: > ...
8 years, 2 months ago (2012-10-16 16:07:00 UTC) #11
nweiz
https://codereview.chromium.org/11170003/diff/5/utils/pub/io.dart File utils/pub/io.dart (right): https://codereview.chromium.org/11170003/diff/5/utils/pub/io.dart#newcode505 utils/pub/io.dart:505: }); On 2012/10/16 14:29:57, ajohnsen wrote: > On 2012/10/16 ...
8 years, 2 months ago (2012-10-16 17:20:15 UTC) #12
Anders Johnsen
https://codereview.chromium.org/11170003/diff/5/utils/pub/io.dart File utils/pub/io.dart (right): https://codereview.chromium.org/11170003/diff/5/utils/pub/io.dart#newcode505 utils/pub/io.dart:505: }); On 2012/10/16 17:20:15, nweiz wrote: > On 2012/10/16 ...
8 years, 2 months ago (2012-10-17 07:05:25 UTC) #13
Bob Nystrom
8 years, 2 months ago (2012-10-17 16:25:52 UTC) #14
https://codereview.chromium.org/11170003/diff/5/utils/pub/io.dart
File utils/pub/io.dart (right):

https://codereview.chromium.org/11170003/diff/5/utils/pub/io.dart#newcode505
utils/pub/io.dart:505: });
On 2012/10/17 07:05:25, ajohnsen wrote:
> On 2012/10/16 17:20:15, nweiz wrote:
> > On 2012/10/16 14:29:57, ajohnsen wrote:
> > > On 2012/10/16 14:07:29, Bob Nystrom wrote:
> > > > Well this is a distinct improvement. :)
> > > > 
> > > > This code in pub is older than Process.run, and this is much better.
> > > > 
> > > > At the same time, I would like to know more about where the issue was in
> the
> > > > original code. Since that API is still available, other users could
likely
> > > > misuse it the same way I was. Any idea what was wrong with the old code?
> > > 
> > > There is nothing wrong with the old code, other then the same issues that
> lead
> > > to us introducing Process.run: it's very easy to do wrong. You have to
wait
> > for
> > > several events to occur, and make sure all the underlying pipes are
closed.
> I
> > > saw this when we looked for the issue, and thought that the error might be
> > > originated here. It turned up it was't, but I though we should keep the
> change
> > > in anyway :)
> > 
> > This doesn't support pipeStdout/pipeStderr. Either those arguments should be
> > removed or we should support them.
> 
> Ahh, good point. Bob, is the piping needed in Pub? Otherwise, feel free to
> revert this part of the patch.

It doesn't look like we're using that right now, so I think we're OK. We'll be
adding "--verbose" support to pub relatively soon and we can revisit this then.

Powered by Google App Engine
This is Rietveld 408576698