File tree Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Expand file tree Collapse file tree 5 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 1
- ## 3.3.0-dev
1
+ ## 4.0.0-dev
2
+
3
+ - By default, start the frontend server from the AOT snapshot shipped in the
4
+ Dart SDK.
5
+ - Throw an ` ArgumentError ` when ` FrontendServerClient.start ` is called with the
6
+ ` frontendServerPath ` argument omitted and the ` debug ` argument set to true.
7
+
8
+ ## 3.3.0
2
9
3
10
- Update SDK constraint to ` >=3.0.0-134.0.dev <4.0.0 ` .
4
11
- Support changes in the SDK layout for Dart 3.0.
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ class FrontendServerClient {
47
47
///
48
48
/// When the [frontendServerPath] argument is provided, setting [debug] to
49
49
/// true permits debuggers to attach to the frontend server. When the
50
- /// [frontendServerPath] argument is omitted, the value of the [debug]
51
- /// argument is ignored .
50
+ /// [frontendServerPath] argument is omitted, setting [debug] to true will
51
+ /// cause an [ArgumentError] to be thrown .
52
52
static Future <FrontendServerClient > start (
53
53
String entrypoint,
54
54
String outputDillPath,
@@ -109,6 +109,10 @@ class FrontendServerClient {
109
109
commonArguments,
110
110
);
111
111
} else if (File (_feServerAotSnapshotPath).existsSync ()) {
112
+ if (debug) {
113
+ throw ArgumentError ('The debug argument cannot be set to true when the '
114
+ 'frontendServerPath argument is omitted.' );
115
+ }
112
116
feServer = await Process .start (
113
117
_dartAotRuntimePath,
114
118
< String > [_feServerAotSnapshotPath] + commonArguments,
Original file line number Diff line number Diff line change 1
1
name : frontend_server_client
2
- version : 3.3 .0-dev
2
+ version : 4.0 .0-dev
3
3
description : >-
4
4
Client code to start and interact with the frontend_server compiler from the
5
5
Dart SDK.
Original file line number Diff line number Diff line change
1
+ ## 0.2.2
2
+
3
+ - Start the frontend server from the AOT snapshot shipped in the Dart SDK.
4
+
1
5
## 0.2.1
2
6
3
7
- Doe not pass ` -debugger-module-names ` flag to the frontend server.
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class TestSdkLayout {
94
94
sdkLayout.sdkDirectory,
95
95
'bin' ,
96
96
'snapshots' ,
97
- 'frontend_server .dart.snapshot' ,
97
+ 'frontend_server_aot .dart.snapshot' ,
98
98
),
99
99
dartdevcSnapshotPath: sdkLayout.dartdevcSnapshotPath,
100
100
kernelWorkerSnapshotPath: p.join (
You can’t perform that action at this time.
0 commit comments