Commit graph

87 commits

Author SHA1 Message Date
paulberry@google.com f7db779401 Clean up scripts to run Java-based analyzer.
sdk/bin/dartanalyzer_developer is renamed sdk/bin/dartanalyzer_java
(replacing the old sdk/bin/dartanalyzer_java, which was unused), and
the test infrastructure is modified to use sdk/bin/dartanalyzer_java
to start the Java-based analyzer.

This frees up sdk/bin/dartanallyzer_developer to be the --host-checked
version of sdk/bin/dartanalyzer (paralleling what we do for
/sdk/bin/dart2js_developer).

R=ricow@google.com

Review URL: https://codereview.chromium.org//668743003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41227 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-21 13:02:37 +00:00
paulberry@google.com b9116653bd Modify dartanalyzer scripts to look more like dart2js scripts.
The dartanalyzer script (and its Windows companion, dartanalyzer.bat)
now support:

- Executing from snapshot if present, otherwise from source (needed
  for buildbot tests).
- Passing in the appropriate package root when executind from source.
- Passing in VM tuning parameters to speed up analysis.
- Passing through extra DART_VM_OPTIONS to the VM.

Also, the old editor/tools/analyzer script has been removed and
the test infrastructure now uses sdk/bin/dartanalyzer, in the
same way that it works for dart2js.

R=ahe@google.com, johnniwinther@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//628363002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41150 260f80e4-7a28-3924-810f-c04153c831b5
2014-10-16 14:21:37 +00:00
rnystrom@google.com 80a6e8270c Get binstubs working on Windows.
Review URL: https://codereview.chromium.org//599343003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40667 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-25 05:43:21 +00:00
rnystrom@google.com 17c1642748 Store the async-await compiled pub code directly in the repo.
R=nweiz@google.com

Review URL: https://codereview.chromium.org//557563002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@40041 260f80e4-7a28-3924-810f-c04153c831b5
2014-09-09 16:55:16 +00:00
rnystrom@google.com dafe5c5ee4 Run async compiler in pub Windows batch files.
R=nweiz@google.com

Review URL: https://codereview.chromium.org//500253002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39533 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-25 21:56:13 +00:00
rnystrom@google.com 5167458d68 Skeleton code for running the forthcoming async/await compiler on pub.
R=nweiz@google.com

Review URL: https://codereview.chromium.org//472173004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@39530 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-25 20:38:58 +00:00
ricow@google.com 46738fbe54 Increase vm memory for docgen.
We are running out of memory on the bots generating the docs, see e.g.
http://build.chromium.org/p/client.dart/builders/new_analyzer-linux-release-be/builds/9085/steps/build/logs/stdio

I have filed issue 20308 to track this

R=whesse@google.com

Review URL: https://codereview.chromium.org//435883003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38825 260f80e4-7a28-3924-810f-c04153c831b5
2014-08-01 08:43:19 +00:00
alanknight@google.com 06ca853a8a Make docgen script work for directories with spaces in their names
BUG=
R=efortuna@google.com

Review URL: https://codereview.chromium.org//418223008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38587 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-25 19:58:24 +00:00
nweiz@google.com d8663eeeda Create a separate packages directory for running pub.
Once issue 6943 is fixed, the http package will start using pub's
cross-platform library support to work with both dart:io and
dart:html. However, this package is also used *within* pub, so we need
a way for pub to import it that doesn't require it being run through
pub.

This change supports this by stripping out and dart:html imports from
the http package and creating a special packages directory only used
by pub that uses this modified version.

BUG=20068
R=floitsch@google.com

Review URL: https://codereview.chromium.org//397773002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38255 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-15 20:28:08 +00:00
whesse@google.com dce5bc1322 Allow space in path in some dartanalyzer wrappers.
BUG=dartbug.com/17272
R=danrubel@google.com, ricow@google.com

Review URL: https://codereview.chromium.org//291183002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36490 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-22 12:31:13 +00:00
ricow@google.com d0e8a0b8a6 Add dart-sdk argument when calling the dart based analyzer in the created sdk
I am not even sure why we need to pass in this argument, but the tool requires this or it will exit with "Usage: dartanalyzer: no Dart SDK found."

This is a fix so that we can get a release out, I will leave it to the analyzer people to figure out if this is needed after all.

R=kasperl@google.com

Review URL: https://codereview.chromium.org//273863002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35889 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-08 08:18:48 +00:00
danrubel@google.com 521aef0d96 Replace Java based analyzer with Dart based analyzer when building SDK
* include analyzer dart files and snapshot in SDK
* modified bin/dartanalyzer to call dart based analyzer
* removed jar files in utils directory

BUG=dartbug.com/18289
R=ricow@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org//240723006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35604 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-30 23:09:14 +00:00
aprelev@gmail.com e70eb98773 Process docgen command-line parameter correctly.
BUGS=dartbug.com/16964
R=kasperl@google.com

Review URL: https://codereview.chromium.org//165113003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32848 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-20 11:18:26 +00:00
rnystrom@google.com 3cefa1c834 Bump VM heap size in pub batch files.
BUG=https://code.google.com/p/dart/issues/detail?id=16837
R=ahe@google.com, nweiz@google.com

Review URL: https://codereview.chromium.org//170003003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32804 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 18:42:33 +00:00
rnystrom@google.com 13ae4b64cb Give the VM more heap in pub (on Mac/Linux).
BUG=https://code.google.com/p/dart/issues/detail?id=14730
R=ahe@google.com, nweiz@google.com

Review URL: https://codereview.chromium.org//168013003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32803 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-19 18:36:12 +00:00
dgrove@google.com 22d649cf9a Automatically pass SDK into docgen.dart, and use the SDK for running
pub and the Dart binary. This removes the need to have the SDK in the
PATH when running docgen.

R=efortuna@google.com

Review URL: https://codereview.chromium.org//161893002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32632 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 23:23:25 +00:00
dgrove@google.com 1b705cbdf0 Remove a few more vestiges of dartdoc.
R=alanknight@google.com

Review URL: https://codereview.chromium.org//161433002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32631 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-12 23:05:52 +00:00
johnniwinther@google.com 385e45d5c1 dart2js.bat/ Receive DART_VM_OPTION string properly.
BUG=https://code.google.com/p/dart/issues/detail?id=16594
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//153743007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32364 260f80e4-7a28-3924-810f-c04153c831b5
2014-02-06 15:58:32 +00:00
aprelev@gmail.com b5f91066fd Fix docgen.bat so it can start docgen from snapshot.
R=alanknight@google.com

Review URL: https://codereview.chromium.org//149723004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32145 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-29 22:09:02 +00:00
pquitslund@google.com 36da390ffe dartfmt SDK executables.
R=danrubel@google.com, kustermann@google.com

Review URL: https://codereview.chromium.org//98043005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32040 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-27 23:10:34 +00:00
alanknight@google.com 3730236bdf Add a snapshot for docgen and use it in the build
R=efortuna@google.com, ricow@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org//116043013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32025 260f80e4-7a28-3924-810f-c04153c831b5
2014-01-27 18:40:34 +00:00
rnystrom@google.com bb58a1b4ad Fix pub batch files on Windows.
They should handle spaces in paths correctly now.

BUG=https://code.google.com/p/dart/issues/detail?id=10104
R=nweiz@google.com

Review URL: https://codereview.chromium.org//100623012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31150 260f80e4-7a28-3924-810f-c04153c831b5
2013-12-14 00:09:27 +00:00
nweiz@google.com 326891de60 Support symlinking to dart-sdk executables on Linux and Mac.
R=ahe@google.com, brianwilkerson@google.com, rnystrom@google.com
BUG=9409

Review URL: https://codereview.chromium.org//68503004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30287 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-14 19:28:07 +00:00
rnystrom@google.com 21963801ae Revert "Make Dart heap size bigger when running pub."
Reverts commit r29866.

BUG=

Review URL: https://codereview.chromium.org//58513005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29869 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 01:49:27 +00:00
rnystrom@google.com f90d34df2e Make Dart heap size bigger when running pub.
R=nweiz@google.com

Review URL: https://codereview.chromium.org//51353011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29866 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-05 01:13:43 +00:00
ricow@google.com 3ec954521e Fix dart2js bat to support paths with parenthesis in
Review URL: https://chromiumcodereview.appspot.com//57483004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29799 260f80e4-7a28-3924-810f-c04153c831b5
2013-11-04 11:29:32 +00:00
ricow@google.com c0c636652c Add support for passing in vm options to the dart2js scripts.
R=ahe@google.com

Review URL: https://codereview.chromium.org//23618063

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@27690 260f80e4-7a28-3924-810f-c04153c831b5
2013-09-20 08:25:05 +00:00
scheglov@google.com 077821f3ca Polymer tests require more heap.
R=devoncarew@google.com
BUG=

Review URL: https://codereview.chromium.org//23361029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26618 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-24 19:22:43 +00:00
ricow@google.com eedbf0ccfc Fix a few issues in the dartanalyzer shell scripts.
R=scheglov@google.com

Review URL: https://codereview.chromium.org//22577003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25923 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-08 11:31:54 +00:00
ahe@google.com 216289bcb1 dart2js has its own snapshot.
R=ngeoffray@google.com

Review URL: https://codereview.chromium.org//19795006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25344 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-23 14:58:28 +00:00
rnystrom@google.com aa6ccd2d17 Don't run pub in checked mode in the built SDK.
BUG=https://code.google.com/p/dart/issues/detail?id=11083
R=ahe@google.com

Review URL: https://codereview.chromium.org//17063019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24372 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-24 22:20:16 +00:00
rnystrom@google.com 4bea84958e Make pub.bat work from within the repo.
R=nweiz@google.com

Review URL: https://codereview.chromium.org//16990005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24043 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-14 17:18:42 +00:00
kustermann@google.com 659b81f7bb Fixed sdk/bin/dart2analyzer to use package-root
R=ahe@google.com, ricow@google.com, scheglov@google.com

Review URL: https://codereview.chromium.org//16667023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23905 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-12 13:37:46 +00:00
rnystrom@google.com d29b18d25f Add --library-root to dartdoc invocation.
BUG=
R=dgrove@google.com

Review URL: https://codereview.chromium.org//16410016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23723 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 23:54:22 +00:00
rnystrom@google.com 2dbaddda1b Make dartdoc.bat work with snapshots and run in the repo.
This supercedes https://codereview.chromium.org/16415003/.

BUG=
R=dgrove@google.com

Review URL: https://codereview.chromium.org//15645010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23722 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 22:53:54 +00:00
rnystrom@google.com 450b45ec34 Make bin/pub work in the repo.
BUG=https://code.google.com/p/dart/issues/detail?id=10928
R=nweiz@google.com

Review URL: https://codereview.chromium.org//15993021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23701 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-06 17:38:36 +00:00
amouravski@google.com 6c96878cda Add dartdoc to the generated utils snapshot.
Lots of bad patches should be fixed in this change.

R=dgrove@google.com

Review URL: https://codereview.chromium.org//16471002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23655 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 20:32:11 +00:00
scheglov@google.com b06ba1b3e6 Run 'analyzer' tests with '--show-package-warnings' flag.
This does not make any new tests to pass or fail though.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//16278009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23633 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 15:26:56 +00:00
amouravski@google.com d86c72348b Roll back 16364004 and 16206027.
Review URL: https://codereview.chromium.org//16387004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23625 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 01:14:04 +00:00
amouravski@google.com 0d1be28061 Add dartdoc to the generated utils snapshot.
This is the same as r23575 (14135007), but fixed.

R=dgrove@google.com

Review URL: https://codereview.chromium.org//16364004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23622 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-05 00:32:31 +00:00
scheglov@google.com 0d3e47da2c Basic dart^2 analyzer tests running.
Status file only for co19 now, more status files in next CL.

R=brianwilkerson@google.com
BUG=

Review URL: https://codereview.chromium.org//16357010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23602 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 16:09:13 +00:00
ricow@google.com 604f2ace70 Revert revision 23575.
This is causing failures in the test of dartdoc (on the editor bot)

The reason seems to be that we are generating a temporary nav.dart
file relative to the dartdocPath in sdk/lib/_internal/dartdoc/lib/
which we claim to be part of in
sdk/lib/_internal/dartdoc/lib/src/client/client-static.dart. 

This will not work since actual code has been snapshot.

Review URL: https://codereview.chromium.org//16357003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23583 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 09:36:20 +00:00
ricow@google.com 950934a7e7 Add dartdoc to the generated utils snapshot
R=amouravski@google.com, kustermann@google.com

Review URL: https://codereview.chromium.org//14135007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23575 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-04 06:06:29 +00:00
ricow@google.com 38668d12a1 Revert revision 23438.
Revision 23438 is disabling the ability to run dart2js from the repo without building the sdk.
Lets discuss how we fix this for pub without having to build the sdk.

R=kasperl@google.com

Review URL: https://codereview.chromium.org//16322002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23523 260f80e4-7a28-3924-810f-c04153c831b5
2013-06-03 07:30:20 +00:00
rnystrom@google.com be25032ea4 Make bin/pub script work when run from the repo.
BUG=https://code.google.com/p/dart/issues/detail?id=10928
R=dgrove@google.com, nweiz@google.com

Review URL: https://codereview.chromium.org//15949005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23438 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 19:36:52 +00:00
kasperl@google.com 679b8760a6 Reland "Add --version option to dart2js and add version information (if available) to generated code."
R=ahe@google.com
BUG=

Review URL: https://codereview.chromium.org//16114013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23378 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 05:49:28 +00:00
kasperl@google.com e90972e3e0 Revert "Add --version option to dart2js and add version information (if available) to generated code."
This reverts commit f67288738b5184572db13b35ff5f84438e03e907.

R=ahe@google.com
BUG=

Review URL: https://codereview.chromium.org//15915013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23356 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 17:33:32 +00:00
kasperl@google.com 3c95824799 Add --version option to dart2js and add version information (if available) to generated code.
Remove the 'Using snapshot ...' comment from sdk/bin/dart2js since we are
now relatively sure it works.

R=ahe@google.com, ngeoffray@google.com
BUG=http://dartbug.com/4439, http://dartbug.com/9848

Review URL: https://codereview.chromium.org//15957006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23355 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 17:01:09 +00:00
aprelev@gmail.com a35c219ccb Fix dartanalyzer.bat so it works when there are spaces in the path to dart sdk.
BUG=dartbug.com/10859
R=devoncarew@google.com

Review URL: https://codereview.chromium.org//15767003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23199 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 02:44:30 +00:00
aprelev@gmail.com b203ff2f8a Fix dartanalyzer failure to run when there are spaces in the path to the dart-sdk.
BUG=dartbug.com/7593
R=devoncarew@google.com

Review URL: https://codereview.chromium.org//16068003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23198 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 02:28:19 +00:00