Ben Konyi
cccc0293c5
[ VM ] Send 'dart --help [--verbose]' output to stdout
...
This is consistent with the majority of other tools and the CLI
behavior.
Fixes https://github.com/dart-lang/sdk/issues/46412
TEST=pkg/dartdev/test/commands/flag_test.dart
Change-Id: I45a3ddc9728e9cc1a273d4d5f11db74cb8104745
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204661
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Ryan Macnak <rmacnak@google.com >
2021-08-06 16:06:05 +00:00
Jaime Wren
1689a82229
Fix for https://github.com/dart-lang/sdk/issues/46509 , modifying the order that dart analyze outputs the analysis error output.
...
This change also adds tests for the comparison sorting.
Bug: https://github.com/dart-lang/sdk/issues/46509
Change-Id: Ie568a75c25d0a1e1f76f26f4955de92599f3a68b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208521
Reviewed-by: Devon Carew <devoncarew@google.com >
Commit-Queue: Jaime Wren <jwren@google.com >
2021-08-02 17:03:22 +00:00
Jaime Wren
58969783ba
Add two Functions to dartdev to allow the extension of cli tool.
...
Change-Id: I84e89d2c5404949a5b4aa27c17ea793a5cc92531
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/208480
Commit-Queue: Jaime Wren <jwren@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2021-07-30 21:32:58 +00:00
Robert Nystrom
7f2ed4749b
Roll dart_style 2.0.3 into the SDK.
...
Change-Id: I3eb1ecf0fc4f3e82a3e2ebcbec7416565e5b2b2e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/207502
Auto-Submit: Bob Nystrom <rnystrom@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
Reviewed-by: Nate Bosch <nbosch@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-07-20 20:52:50 +00:00
William Hesse
ac91bd3513
[test] Update test of "dart test" command after package:test update
...
This test uses the version of package:test served by pub.
A new version of package:test has changed the help text of this command.
Fixes: https://github.com/dart-lang/sdk/issues/46601
Change-Id: I30afab4a395d905ddbd2ad199c7bdceebb91b89d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206622
Auto-Submit: William Hesse <whesse@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-07-13 16:28:07 +00:00
William Hesse
6d4c15bd0f
[test] Fix analytics test: "dart format" requires a path
...
Change-Id: I0a70d62aa5e204475e8a87aaddba17f281e5535d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/206241
Auto-Submit: William Hesse <whesse@google.com >
Reviewed-by: Bob Nystrom <rnystrom@google.com >
Commit-Queue: Bob Nystrom <rnystrom@google.com >
2021-07-08 17:33:52 +00:00
Ben Konyi
51ad1c620b
[ CLI ] Update README for package-simple project template
...
Fixes #46454
Change-Id: If5d040dd83ab6bb8991c5e5e55a7558c40d8bda5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/205320
Reviewed-by: Kathy Walrath <kathyw@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-06-29 17:02:58 +00:00
Ben Konyi
0d61348584
[ CLI ] Fix IPv6 VM service support for standalone VM
...
The CLI was not providing the ipv6 flag to DDS, resulting in a "Could
not start Observatory" error.
Change-Id: Idff0f525455f121b8f1e89bc4ad20a01cd1165ef
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204860
Reviewed-by: Ryan Macnak <rmacnak@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-06-24 19:50:59 +00:00
Paul Berry
c041afad9f
Decouple the migration tool from package:dartdev so it can be migrated.
...
In order to migrate the migration tool to null safety, it can't have a
dependency on `package:dartdev`, because `package:dartdev` isn't
migrated yet. (This is a problem because once the migration tool's
tests have been migrated to null safety, they will require the
transitive closure of all the packages they depend on to also be
migrated).
Fortunately, it's quite easy to change the migration tool so that it
doesn't depend on `package:dartdev`; we only need to move the class
`MigrateCommand` from `package:nnbd_migration` to `package:dartdev`.
To make this work, we have to move the constant `migrationGuideLink`
from `MigrateCommand` to `MigrationCli`, and make the method
`MigrationCli._defineOptions` public.
Change-Id: Ie1ce8db0e8245e98bbb72facddd723300816340e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204540
Reviewed-by: Devon Carew <devoncarew@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2021-06-23 22:57:21 +00:00
Paul Berry
8aec705f69
Sort declarations in dartdev.dart
...
Change-Id: I07f8898f125f0b8bb3eb7e15dfba0b6ebbb6105f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204541
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2021-06-22 19:39:04 +00:00
Sigmund Cherem
10819f6e21
[dart-cli]: delegate arg parsing to the underlying dart2js command
...
Since we anyways delegate all work to the same snapshot, this allows us
to maintain the argument parsing in a single location and makes it easier to
migrate existing usages of `dart2js ...` to `dart compile js ...`.
Change-Id: I24172fc87c040128d552cf68b98094e1c2f2c22f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/204421
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Sigmund Cherem <sigmund@google.com >
2021-06-21 17:44:00 +00:00
Devon Carew
48ef892281
[pkg/dartdev] switch to using package:lints for analysis
...
Change-Id: I7bd4843968e2f2d1454e1a79605ffc777c555ebe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202721
Commit-Queue: Devon Carew <devoncarew@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2021-06-07 18:36:43 +00:00
pq
63a77416b7
enable depend_on_referenced_packages
...
this is under consideration for core lint inclusion: https://github.com/dart-lang/lints/issues/42
(also undoubtably nice to get the early warning.)
Change-Id: I3ea204444f48d3b4bde3ff65b4ce85a2cf2a7b11
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202301
Commit-Queue: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2021-06-04 14:19:08 +00:00
Devon Carew
154b217822
[pkg/dartdev] support analyzing multiple directories
...
Bug: https://github.com/dart-lang/sdk/issues/45352
Change-Id: I9ffdf1d56ea52fd17ff8e9ce936ee82f108d7b61
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202065
Commit-Queue: Devon Carew <devoncarew@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2021-06-02 20:11:24 +00:00
Devon Carew
bfa01e5dd1
[pkg/dartdev] pass in client id for dart cli analysis server usages
...
Change-Id: If35edb33a26fdc5640577b3c7b95805a020f04a9
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202060
Reviewed-by: Jaime Wren <jwren@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2021-06-02 17:13:03 +00:00
Ben Konyi
4b96d7a09d
[ VM / CLI ] Add support for --[no-]serve-devtools
...
Fixes https://github.com/dart-lang/sdk/issues/45867
TEST=pkg/dartdev/test/commands/run_test.dart
Change-Id: I3e575db8298d47b69eb9e120f9792ed60d25c7d8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199960
Auto-Submit: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2021-06-01 20:33:15 +00:00
Devon Carew
29f69657e5
update the links to analyzer diagnostics
...
Change-Id: I293ee9bfe0e7c148a59d0cbb1b927c1edbbd15ce
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200901
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2021-05-20 17:05:45 +00:00
Alexander Thomas
1cabd7d941
[dartdev] Apply updates from official image examples
...
Official image docs: https://hub.docker.com/_/dart
Change-Id: I9629c33db812039dad67a082e3a6c6793bad272c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200462
Reviewed-by: Michael Thomsen <mit@google.com >
Commit-Queue: Alexander Thomas <athom@google.com >
2021-05-20 09:17:00 +00:00
Ben Konyi
db2ff738e6
[ CLI ] Fix dart create not outputting getting started message using
...
getInstallInstructions
Fixes https://github.com/dart-lang/sdk/issues/45859
Change-Id: I983b678136ca79a01c53aecbd533a13d908b5d9c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200287
Reviewed-by: Devon Carew <devoncarew@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-05-19 16:44:02 +00:00
Jeffrey Swan
fed6cadf77
fix(docs): corrects common typos in project documentation
...
Scope of changes is restricted to markdown docs only. Changes made in agreement with Standard American English.
Closes https://github.com/dart-lang/sdk/pull/45818
https://github.com/dart-lang/sdk/pull/45818
TEST=Manual review of the changed markdown files.
GitOrigin-RevId: 6df9128b46e4e51e634baf534c0169f62bc6a67e
Change-Id: I7b67dcb5a6e0a03db2b6eea24ace8dee207c4a11
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196742
Reviewed-by: Bob Nystrom <rnystrom@google.com >
2021-05-18 15:48:18 +00:00
Ben Konyi
f99c918ee8
[ CLI ] Improve consistency of help messages between commands
...
Updated some formatting and added '[vm-options]' to relevant commands
when '--verbose' is provided.
Fixes https://github.com/dart-lang/sdk/issues/45837
Change-Id: Ic4ccd81290ccf4000b0bce7d5dba63c469fb4c20
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200283
Reviewed-by: Devon Carew <devoncarew@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-05-17 21:20:22 +00:00
Devon Carew
5d95b760a3
[dartdev] rev the version constraint on package:lints
...
Change-Id: Ib7b1fad99b97e779fb8f929cc8e3d7b7837ccab0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200040
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2021-05-17 15:37:50 +00:00
Michael Thomsen
2f85591b67
Switch to recommended lints
...
Bug: https://github.com/dart-lang/lints/issues/20
Change-Id: I433a393a9a6755ed9140326a413f8360a4d508bb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199482
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Commit-Queue: Michael Thomsen <mit@google.com >
2021-05-12 20:07:51 +00:00
Lasse R.H. Nielsen
a5e18113f3
Remove references to triple-shift and generic-metadata experiments.
...
TEST= removed flags from test. No behavior should change.
Change-Id: I401bfb68c082d1bd405a118d5eca6a47a807945f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/199241
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com >
Reviewed-by: Alexander Thomas <athom@google.com >
2021-05-12 13:35:00 +00:00
Ben Konyi
b99466d472
Reland "[ VM / DDS / CLI ] Add DevTools support to the standalone VM"
...
This reverts commit 5cbf10febe .
TEST=pkg/dds/devtools_observatory_connection_test.dart
Change-Id: I682d009f784b930094dae9b7d4e9a66efffb6ee8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198561
Reviewed-by: Siva Annamalai <asiva@google.com >
2021-05-11 17:55:26 +00:00
Devon Carew
ac7c44e4a9
update the dart create templates to use package:lints
...
Bug: https://github.com/dart-lang/sdk/issues/45940
Change-Id: I61c8d3e8be8922cfa6a874213349f84aa44baff4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198620
Commit-Queue: Devon Carew <devoncarew@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
2021-05-10 16:44:40 +00:00
Michael Thomsen
d0f7a5b6d1
Updated server template
...
Change-Id: If3a0e3ea3f0f0e4465bf8f875071c92c674600c3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/197167
Reviewed-by: Kevin Moore <kevmoo@google.com >
Commit-Queue: Michael Thomsen <mit@google.com >
2021-05-07 12:07:56 +00:00
Ben Konyi
5cbf10febe
Revert "[ VM / DDS / CLI ] Add DevTools support to the standalone VM"
...
This reverts commit ef0e4ea107 .
Reason for revert: Flutter HHH and golem builds are red. Rolls to Flutter are failing.
TEST=N/A
Original change's description:
> [ VM / DDS / CLI ] Add DevTools support to the standalone VM
>
> Example output on stdout when DevTools is enabled:
>
> Observatory listening on http://127.0.0.1:8181/CzkZzZaONW4=/
> The Dart DevTools debugger and profiler is available at: http://127.0.0.1:8181/devtools/#/?uri=ws%3A%2F%2F127.0.0.1%3A8181%2FCzkZzZaONW4%3D%2Fws
> hello world!
>
> vm-service: isolate(1674461414267555) 'main' has no debugger attached and is paused at exit. Connect to Observatory at http://127.0.0.1:8181/CzkZzZaONW4=/ to debug.
>
> TEST=pkg/dartdev/test/commands/run_test.dart
>
> Change-Id: Icd1afda87ad4a46f228125d53094d10adf8056ec
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/188361
> Commit-Queue: Ben Konyi <bkonyi@google.com >
> Reviewed-by: Siva Annamalai <asiva@google.com >
# Not skipping CQ checks because original CL landed > 1 day ago.
Change-Id: I50e8dc4e592e13b44c2fb980b2029d5c5cc3ad2a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/198381
Reviewed-by: Ben Konyi <bkonyi@google.com >
Reviewed-by: Alexander Markov <alexmarkov@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-05-05 20:31:07 +00:00
Ben Konyi
ef0e4ea107
[ VM / DDS / CLI ] Add DevTools support to the standalone VM
...
Example output on stdout when DevTools is enabled:
Observatory listening on http://127.0.0.1:8181/CzkZzZaONW4=/
The Dart DevTools debugger and profiler is available at: http://127.0.0.1:8181/devtools/#/?uri=ws%3A%2F%2F127.0.0.1%3A8181%2FCzkZzZaONW4%3D%2Fws
hello world!
vm-service: isolate(1674461414267555) 'main' has no debugger attached and is paused at exit. Connect to Observatory at http://127.0.0.1:8181/CzkZzZaONW4=/ to debug.
TEST=pkg/dartdev/test/commands/run_test.dart
Change-Id: Icd1afda87ad4a46f228125d53094d10adf8056ec
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/188361
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2021-05-03 18:24:09 +00:00
pq
a6e3008ded
fix sort_directives violations
...
See: https://dart-review.googlesource.com/c/sdk/+/196026
TEST=Code cleanup exclusively (sorting imports); no new tests.
Change-Id: Ib07a82ff418138c542d6a83cfab9aabbb285f866
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196180
Auto-Submit: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Phil Quitslund <pquitslund@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
Reviewed-by: Bob Nystrom <rnystrom@google.com >
Commit-Queue: Phil Quitslund <pquitslund@google.com >
2021-04-20 22:21:28 +00:00
Franklin Yow
03101c0c2b
Update LICENSE
...
Changes to comply to internal review
Closes https://github.com/dart-lang/sdk/pull/45568
https://github.com/dart-lang/sdk/pull/45568
TEST=CL contains no code changes.
No-Try: true
GitOrigin-RevId: 65796784e5fdfddaa021b5c55ad435b1db419700
Change-Id: I085a948f16dc9a0de128ed0bd456ae69adf6c124
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193888
Reviewed-by: Alexander Thomas <athom@google.com >
Reviewed-by: Bob Nystrom <rnystrom@google.com >
Commit-Queue: Alexander Thomas <athom@google.com >
2021-04-07 10:28:38 +00:00
Ben Konyi
1cbf7761dd
[ CLI ] Add test for dart format --set-exit-if-changed
...
Fixes https://github.com/dart-lang/sdk/issues/44582
Change-Id: I78033a4182a3e587730743e5dad2a1e7358a3fc7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194119
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Bob Nystrom <rnystrom@google.com >
2021-04-06 23:46:09 +00:00
Devon Carew
c679047530
Upgrade the 'web-simple' project template to null safety.
...
Change-Id: I7b90a81a37085d613f6927529ef05e2a3915a32e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/194106
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2021-04-06 16:40:17 +00:00
Ben Konyi
628193450a
[ CLI ] Check for valid package names and '.' when creating new projects
...
Ensures that Dart projects created using 'dart create' are valid
packages.
Fixes https://github.com/dart-lang/sdk/issues/43216 .
Change-Id: I1e38ba722f24a247e64f077d35c8e74c051c4908
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/193825
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
2021-04-01 23:58:47 +00:00
Devon Carew
f6ce7a829f
In-line the package:stagehand templates into 'dart create'.
...
Change-Id: I717f0970314700b123b750fcfe7ed066ba88d2e5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192944
Commit-Queue: Devon Carew <devoncarew@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2021-03-25 18:05:09 +00:00
Ben Konyi
5a20976df3
[ CLI ] Add support for program arguments to dart compile jit-snapshot
...
Fixes https://github.com/dart-lang/sdk/issues/43839 .
Change-Id: I3ac270aefd8a1ce7b3d8044687f686535036b336
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192945
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
2021-03-24 23:53:23 +00:00
Paul Berry
58dc586929
Remove redundant line number from referencedBeforeDeclaration.
...
Context messages are already displayed in a way that makes it easy for
the user to locate the line of code in question; it's unnecessary to
include the line number in the context message itself.
See discussion at
https://buganizer.corp.google.com/issues/179782591#comment9 .
Change-Id: I2d1383c4cee0ece0d302449302d1f1902fbf136c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192480
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Paul Berry <paulberry@google.com >
2021-03-24 14:07:51 +00:00
Konstantin Shcheglov
2371d74664
Use single quoted string in AnalyzeCommand.
...
TBR
Change-Id: I0f0d908df54d69763b4588d857852aa560a982a6
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192861
Reviewed-by: Konstantin Shcheglov <scheglov@google.com >
2021-03-24 02:02:08 +00:00
Ben Konyi
a49bea950d
[ CLI ] Use 'project' instead of 'package' in CLI help messages
...
Initial updates, related to
https://github.com/dart-lang/sdk/issues/45279 .
Change-Id: I459e719ad6e92378f9240a612e0bd8229d0fcb2e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192727
Reviewed-by: Devon Carew <devoncarew@google.com >
2021-03-23 23:05:33 +00:00
Brian Wilkerson
bd19cbf1d2
Add a json format to the dart analyze command
...
Change-Id: I5667d845d305fa087934f73fbf09cc9b166c8461
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192240
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2021-03-23 18:21:51 +00:00
Ben Konyi
4fde29d1aa
[ CLI ] Poll for VM service URI before launching DDS
...
Service.getInfo().serverUri can be null if the VM service server hasn't
finished starting up. The CLI isolate should wait for this URI to not be
null before attempting to start DDS.
Fixes https://github.com/dart-lang/sdk/issues/44787
Fixed: 44787
Change-Id: Iadce0901351c0bc5238a4dc805483cce818e9e15
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/190361
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
2021-03-12 18:34:08 +00:00
Konstantin Shcheglov
1712737dea
Support for single file analysis in 'dart analyze'.
...
Bug: https://github.com/dart-lang/sdk/issues/43891
Bug: https://github.com/dart-lang/sdk/issues/43271
Change-Id: Ifb3c0c10eabaabb19777838bccf7851199b8c778
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/190640
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
Commit-Queue: Konstantin Shcheglov <scheglov@google.com >
2021-03-11 17:21:50 +00:00
Ben Konyi
8bd3088588
[ CLI ] Update analytics messaging
...
Fixes https://github.com/dart-lang/sdk/issues/45252
Change-Id: I38d4d0b1abde8c2fa3cd7ed3ed1014453bcc6744
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/190540
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
Reviewed-by: Franklin Yow <frankyow@google.com >
2021-03-10 19:44:44 +00:00
Devon Carew
bb3167fe53
[analyzer] always show context messages for 'dart analyze'
...
Change-Id: Ifda063de48a968f7ef013c501f6db9bec7f13246
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/188001
Commit-Queue: Devon Carew <devoncarew@google.com >
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
2021-03-04 01:00:16 +00:00
Devon Carew
eb58f3da6c
Update the dart fix cli docs.
...
Change-Id: Ib5dbc9ac999eb95f19b99124fd4ab170ed994d0f
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/188000
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com >
Commit-Queue: Devon Carew <devoncarew@google.com >
2021-02-26 18:13:47 +00:00
Sigurd Meldgaard
e7fdd7b693
Let experimental features specify an example for tooling to have generic
...
tests.
Bug: https://github.com/dart-lang/sdk/issues/44937
Change-Id: I309e6e4299b09705f653d59c7842a05fdf7cdaa5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184790
Commit-Queue: Sigurd Meldgaard <sigurdm@google.com >
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com >
Reviewed-by: Ben Konyi <bkonyi@google.com >
2021-02-23 13:57:29 +00:00
Ben Konyi
410f242ebc
[ CLI ] Fix issue where analytics were not correctly being disabled
...
Fixes https://github.com/dart-lang/sdk/issues/45077
TEST=VM -> CLI --analytics flag smoke test in analytics_test.dart
Change-Id: Ic8d796fbc21402adfde72e9697124e144a417260
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/186381
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Devon Carew <devoncarew@google.com >
2021-02-22 20:27:29 +00:00
William Hesse
88b6c207e7
[dartdev] Fix analytics test on Windows
...
The default Process.runSync doesn't expect utf-8 on stdout on Windows.
Fixes: https://github.com/dart-lang/sdk/issues/44981
Change-Id: If80fcaa9ce54fdd64c2c8f40779c646f1c37fdea
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184468
Reviewed-by: Ben Konyi <bkonyi@google.com >
Commit-Queue: Ben Konyi <bkonyi@google.com >
2021-02-12 18:37:52 +00:00
Lasse R.H. Nielsen
d352bc28b8
Remove (most) uses of the "non-nullable" experiment flag.
...
Since the flag is now enabled by default, there should be no mention of it.
There are still some uses in front_end/testcases that are not just removable
(it also uses `no-non-nullable`). There migth be more uses that are not
as easily found as grepping for `--enable-experiment
Removes two VM tests where fixing them meant they were just duplicating
the corresponding non *_2/ tests.
Fixes #44941
TEST= Large number of tests chaged.=(no-)?non-nullable`.
Change-Id: Ief755981ccde9a5482fcdf408c2929c74433a710
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/183688
Commit-Queue: Lasse R.H. Nielsen <lrn@google.com >
Reviewed-by: Nate Bosch <nbosch@google.com >
2021-02-12 17:16:54 +00:00
Ben Konyi
7ce8e3ba2e
[ DartDev / CLI ] Fixed issue where analytics flags were not being forwarded to the CLI
...
Forwarding logic seems to have been accidentally removed in
f3fe9dc3b3 .
Fixes https://github.com/dart-lang/sdk/issues/44968
TEST=pkg/dartdev/test/analytics_test.dart
Fixed: 44968
Change-Id: Ib3c107233276ca6592247e23268f9af7ede52285
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/184502
Commit-Queue: Ben Konyi <bkonyi@google.com >
Reviewed-by: Siva Annamalai <asiva@google.com >
2021-02-11 18:45:06 +00:00