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

Issue 242373006: Show a better error message on no version errors. (Closed)

Created:
6 years, 8 months ago by Bob Nystrom
Modified:
6 years, 8 months ago
Reviewers:
nweiz
CC:
reviews_dartlang.org, kevmoo
Visibility:
Public.

Description

Show a better error message on no version errors. (Also includes a little solver optimization I stumbled onto.) BUG=https://code.google.com/p/dart/issues/detail?id=18300 R=nweiz@google.com Committed: https://code.google.com/p/dart/source/detail?r=35230

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -41 lines) Patch
M sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart View 10 chunks +13 lines, -18 lines 2 comments Download
M sdk/lib/_internal/pub/lib/src/solver/dependency_queue.dart View 1 chunk +12 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/solver/version_solver.dart View 7 chunks +85 lines, -22 lines 2 comments Download
M sdk/lib/_internal/pub/test/version_solver_test.dart View 3 chunks +48 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Bob Nystrom
6 years, 8 months ago (2014-04-18 23:19:35 UTC) #1
nweiz
lgtm https://codereview.chromium.org/242373006/diff/1/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart File sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart (right): https://codereview.chromium.org/242373006/diff/1/sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart#newcode147 sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart:147: cache.writeResults(buffer); I really hate passing around string buffers. ...
6 years, 8 months ago (2014-04-21 21:38:49 UTC) #2
Bob Nystrom
Committed patchset #1 manually as r35230 (presubmit successful).
6 years, 8 months ago (2014-04-21 22:57:00 UTC) #3
Bob Nystrom
6 years, 8 months ago (2014-04-21 22:58:32 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/242373006/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart (right):

https://codereview.chromium.org/242373006/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/solver/backtracking_solver.dart:147:
cache.writeResults(buffer);
On 2014/04/21 21:38:49, nweiz wrote:
> I really hate passing around string buffers. Just return a string; the
> efficiency difference is effectively nil, and it makes function boundaries
much
> cleaner.

I actually like passing around the buffer because it makes newline handling a
little clearer to me, but done.

https://codereview.chromium.org/242373006/diff/1/sdk/lib/_internal/pub/lib/sr...
File sdk/lib/_internal/pub/lib/src/solver/version_solver.dart (right):

https://codereview.chromium.org/242373006/diff/1/sdk/lib/_internal/pub/lib/sr...
sdk/lib/_internal/pub/lib/src/solver/version_solver.dart:209: //
_debugWritePackageGraph(buffer);
On 2014/04/21 21:38:49, nweiz wrote:
> Rather than commenting this out, maybe hide it behind a hidden global option
or
> an environment variable?

It's not quite ready for prime-time. I slapped it together to help me track down
this bug, but didn't put any time into beyond that. I thought about just
deleting it entirely, but I figured it may be helpful later. I didn't want to
put more time into it now, though, so this was the compromise I came up with.

Powered by Google App Engine
This is Rietveld 408576698