Commit Graph

1321 Commits

Author SHA1 Message Date
rnystrom@google.com 603f1e3368 Show nicer errors on some server failures.
Review URL: https://chromiumcodereview.appspot.com//10917053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11852 260f80e4-7a28-3924-810f-c04153c831b5
2012-09-05 00:02:10 +00:00
rnystrom@google.com 361e992008 Hide self-referential symlinks behind a flag in pub.
Review URL: https://chromiumcodereview.appspot.com//10907036

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11725 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 21:54:49 +00:00
jmesserly@google.com 963d06882b Fix pub to close connection to dartlang.org when it's done downloading
See bug http://dartbug.com/4857
fixes: http://dartbug.com/4856

Review URL: https://chromiumcodereview.appspot.com//10913034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11714 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 19:02:42 +00:00
iposva@google.com 0dd77bf634 - Change "static final" to "static const" in the
pkg/, language/, utils/ and lib/core/ directories.
Review URL: https://chromiumcodereview.appspot.com//10919024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11703 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-31 17:47:17 +00:00
rnystrom@google.com ed8794090e Rename "repo" source to "hosted".
Review URL: https://chromiumcodereview.appspot.com//10916034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11671 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 23:44:51 +00:00
efortuna@google.com 17353233b6 Remove local change that also got comitted in revert.
Review URL: https://chromiumcodereview.appspot.com//10910017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11658 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 21:14:05 +00:00
efortuna@google.com 9c129175d8 This accidentally snuck into the revert.
Review URL: https://chromiumcodereview.appspot.com//10909017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11656 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 21:09:57 +00:00
gram@google.com ba92707967 Testrunner for 3rd parties.
Review URL: https://chromiumcodereview.appspot.com//10897016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11648 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 20:12:24 +00:00
nweiz@google.com 1e3faaeda1 Add a friendly error message for using a tab as indentation.
BUG=4813

Review URL: https://chromiumcodereview.appspot.com//10886055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11644 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 19:19:15 +00:00
nweiz@google.com ac0927b2eb Improve the error message for pub install without a name key in the pubspec.
BUG=4806

Review URL: https://chromiumcodereview.appspot.com//10896051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11643 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 18:57:33 +00:00
ahe@google.com c1564e0114 Improve detection of when to use colors.
Review URL: https://chromiumcodereview.appspot.com//10910006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11628 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 17:03:10 +00:00
ajohnsen@google.com 3cf5d6531d Move core and coreimpl from corelib/ to lib/core and lib/coreimpl.
BUG=

Review URL: https://chromiumcodereview.appspot.com//10890030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11606 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-30 11:45:40 +00:00
nweiz@google.com cb45c460f7 Create packages directories in test/ and bin/ as well as at the top level.
This is necessary to run Dart files in these directories.

Review URL: https://chromiumcodereview.appspot.com//10900015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11549 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 20:57:03 +00:00
eub@google.com 020123ce0f Repair bitrot in the utils/apidoc/mdn/ code. It now runs all the way through,
though it currently doesn't seem to be getting any docs for members.
Review URL: https://chromiumcodereview.appspot.com//10889017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11539 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 19:49:39 +00:00
lrn@google.com 78f404baca Remove library_map.dart.
Review URL: https://chromiumcodereview.appspot.com//10894005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11519 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 12:57:32 +00:00
kasperl@google.com 72e668595d Use new try-catch syntax in runtime/, tools/, and utils/.
R=ngeoffray@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10887023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11514 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 11:58:58 +00:00
johnniwinther@google.com c57b7b0a3a 'Find-as-you-type'-search in dartdoc/apidoc.
Review URL: https://chromiumcodereview.appspot.com//10829361

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11508 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-29 10:35:30 +00:00
lrn@google.com a7cc80dd7c Get library data from lib/_internal/libraries.dart.
Review URL: https://chromiumcodereview.appspot.com//10874030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11435 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 10:23:22 +00:00
johnniwinther@google.com 887a1eb8f7 Fix apidoc generation of pkg on Windows
Review URL: https://chromiumcodereview.appspot.com//10867082

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11431 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-28 07:52:07 +00:00
nweiz@google.com 18f8f5a72f Add a note to Source#install explaining that it should be very light-weight.
Review URL: https://chromiumcodereview.appspot.com//10883072

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11421 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-27 22:21:37 +00:00
nweiz@google.com 89b1f5ec12 Support removing dead packages with pub install.
Review URL: https://chromiumcodereview.appspot.com//10867070

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11356 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-25 00:18:48 +00:00
nweiz@google.com af2d533d41 Fix some compilation errors and warnings in Pub.
Review URL: https://chromiumcodereview.appspot.com//10880055

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11355 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 23:57:42 +00:00
nweiz@google.com 4b76d74d5d Properly handle Git URLs with trailing slashes.
BUG=3493

Review URL: https://chromiumcodereview.appspot.com//10875056

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11343 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 21:11:28 +00:00
nweiz@google.com 36575ab9ef Add a missing semicolon to a file in pub.
Review URL: https://chromiumcodereview.appspot.com//10878059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11342 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 21:01:34 +00:00
nweiz@google.com 562860c6c3 Skip the new pub tests on platforms where they don't belong.
Review URL: https://chromiumcodereview.appspot.com//10879071

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11338 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 19:55:02 +00:00
nweiz@google.com e74b871e92 Support self-referential package: imports with Pub.
Review URL: https://chromiumcodereview.appspot.com//10874051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11334 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 18:48:00 +00:00
rnystrom@google.com 0ca2c3fee4 Add new pub test suites to status file.
Review URL: https://chromiumcodereview.appspot.com//10883019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11284 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 01:48:53 +00:00
rnystrom@google.com 172e5cfae4 Split pub tests into separate suites.
Review URL: https://chromiumcodereview.appspot.com//10876058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11283 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 01:42:51 +00:00
nweiz@google.com 12c59d9112 Don't print Git output when running Pub.
BUG=4412

Review URL: https://chromiumcodereview.appspot.com//10873053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11281 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-24 01:04:12 +00:00
nweiz@google.com 20a9094704 Use ephemeral ports for serving stuff during the pub tests.
BUG=4531

Review URL: https://chromiumcodereview.appspot.com//10874039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11274 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 23:18:10 +00:00
nweiz@google.com 523bb86491 Add a number of convenience methods to test_pub.
This changelist has two goals. The first is to simply clean up pub_test by
factoring out repeated patterns, removing the use of raw YAML, and making the
commands more semantic. The second goal is to set the stage for the use of
ephemeral ports for the mock package server, which will allow multiple instances
of the tests to be run simultaneously.

This was originally submitted as r11261, but that caused test errors due to a
race condition that were then fixed. Then it was submitted as r11266, which
caused further test errors that are now completely fixed.

Review URL: https://chromiumcodereview.appspot.com//10868059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11273 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 23:10:01 +00:00
rnystrom@google.com 17a941e040 Update pub to new getter syntax.
Review URL: https://chromiumcodereview.appspot.com//10869033

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11270 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 22:41:47 +00:00
nweiz@google.com 66950a48d0 Reverting 11266
Review URL: https://chromiumcodereview.appspot.com//10872050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11268 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 22:38:29 +00:00
nweiz@google.com b0511b4d58 Add a number of convenience methods to test_pub.
This changelist has two goals. The first is to simply clean up pub_test by
factoring out repeated patterns, removing the use of raw YAML, and making the
commands more semantic. The second goal is to set the stage for the use of
ephemeral ports for the mock package server, which will allow multiple instances
of the tests to be run simultaneously.

This was originally submitted as r11261, but that caused test errors due to a race condition that's fixed in this CL.

Review URL: https://chromiumcodereview.appspot.com//10868058

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11266 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 22:28:23 +00:00
nweiz@google.com 06c640c763 Actually hook server creation into the pub test schedule.
Review URL: https://chromiumcodereview.appspot.com//10873003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11265 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 22:09:43 +00:00
nweiz@google.com dfefb08fab Reverting 11261
Review URL: https://chromiumcodereview.appspot.com//10873051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11264 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 22:05:45 +00:00
nweiz@google.com 258cd65f18 Add a number of convenience methods to test_pub.
This changelist has two goals. The first is to simply clean up pub_test by
factoring out repeated patterns, removing the use of raw YAML, and making the
commands more semantic. The second goal is to set the stage for the use of
ephemeral ports for the mock package server, which will allow multiple instances
of the tests to be run simultaneously.

Review URL: https://chromiumcodereview.appspot.com//10871008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11261 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-23 21:38:38 +00:00
ager@google.com 722c1a3ce6 Deprecate Math object in corelib in favor of dart:math library.
Review URL: https://chromiumcodereview.appspot.com//10829459

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11155 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 14:33:01 +00:00
nweiz@google.com 8a0aabe483 Allow pub install and pub update to update dependers.
If the pubspec has a new dependency which causes an incompatibility with the
locked packages' version constraints, `pub install` will now unlock packages
one by one until a compatible version graph can be found.

`pub update <package>` will now always update the given package to its latest
version, even if that requires updating locked packages that depend on it
transitively. If no amount of updating will make the latest version valid, an
exception will be thrown.

This was originally submitted as r10779

Review URL: https://chromiumcodereview.appspot.com//10837274

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11119 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-22 00:25:45 +00:00
jmesserly@google.com 695f892ed1 Add all api docs from pkg. Right now we only have "intl" and "unittest". This changes the code to find all of them.
Review URL: https://chromiumcodereview.appspot.com//10824367

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11090 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 19:28:02 +00:00
alanknight@google.com 96c3872ffe Rename i18n to intl
Review URL: https://chromiumcodereview.appspot.com//10829442

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11076 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 17:30:21 +00:00
ahe@google.com d1af3e7465 Copy all frog/native tests to dart2js_foreign.
Review URL: https://chromiumcodereview.appspot.com//10855248

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@11020 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-21 08:56:36 +00:00
rnystrom@google.com 952230068c Don't pollute repo with temp dirs for pub tests.
Review URL: https://chromiumcodereview.appspot.com//10825422

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10997 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 20:02:36 +00:00
ahe@google.com 36dfc00144 Disable colors on Windows and non-ttys.
Review URL: https://chromiumcodereview.appspot.com//10860041

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10980 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 15:25:56 +00:00
rnystrom@google.com 180df4ec25 Look for SDK packages in "pkg" in addition to "lib".
Review URL: https://chromiumcodereview.appspot.com//10857059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10912 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 18:04:42 +00:00
dgrove@google.com de531b234a Move args from lib/ to pkg/ .
Review URL: https://chromiumcodereview.appspot.com//10831371

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10910 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 17:57:10 +00:00
scheglov@google.com ca5e0d567c Issue 4553. Any constant is valid for 'case'.
Also check for 'operator =='.

R=brianwilkerson@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10829365

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10899 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 14:28:48 +00:00
ager@google.com 59df4e7735 Add a couple of workarounds for issues caused by current dart2js patch
support.

R=johnniwinther@google.com,lrn@google.com
BUG=

Review URL: https://chromiumcodereview.appspot.com//10836312

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10878 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 10:45:08 +00:00
regis@google.com d9b0276a4c Require two type arguments for map literals (issue 4522).
Spec has been changed back.
VM temporarily accepts a single type argument and emits a warning.
Update tests, dart2js source, dartdoc, etc...
Disable failing co19 tests (issue 175 filed).
Review URL: https://chromiumcodereview.appspot.com//10854191

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10861 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 20:44:32 +00:00
efortuna@google.com 1a5e39d4eb Remove dysfunctional "always clobber" from Windows build.
Review URL: https://chromiumcodereview.appspot.com//10837269

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10836 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 16:51:09 +00:00