File tree Expand file tree Collapse file tree 6 files changed +21
-16
lines changed
frontend_server_common/lib/src Expand file tree Collapse file tree 6 files changed +21
-16
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class DartLocation {
7878 int get hashCode => Object .hashAll ([uri, line, column]);
7979
8080 @override
81- bool operator == (Object ? other) {
81+ bool operator == (Object other) {
8282 if (other is ! DartLocation ) {
8383 return false ;
8484 }
Original file line number Diff line number Diff line change 11## 4.0.0-wip
22
3+ - Update Dart SDK constraint to ` ^3.0.0 ` .
4+ - Support changes in the SDK layout for Dart 3.0.
35- By default, start the frontend server from the AOT snapshot shipped in the
46 Dart SDK.
57- Throw an ` ArgumentError ` when ` FrontendServerClient.start ` is called with the
68 ` frontendServerPath ` argument omitted and the ` debug ` argument set to true.
7-
8- ## 3.3.0
9-
10- - Update Dart SDK constraint to ` >=3.0.0 <4.0.0 ` .
11- - Support changes in the SDK layout for Dart 3.0.
9+ - Update ` package:vm_service ` constraint to ` ^14.0.0 ` .
1210
1311## 3.2.0
1412
Original file line number Diff line number Diff line change @@ -103,10 +103,10 @@ class FrontendServerClient {
103103 feServer = await Process .start (
104104 Platform .resolvedExecutable,
105105 < String > [
106- if (debug) '--observe' ,
107- frontendServerPath,
108- ...commonArguments,
109- ],
106+ if (debug) '--observe' ,
107+ frontendServerPath,
108+ ...commonArguments,
109+ ],
110110 );
111111 } else if (File (_feServerAotSnapshotPath).existsSync ()) {
112112 if (debug) {
@@ -123,10 +123,10 @@ class FrontendServerClient {
123123 feServer = await Process .start (
124124 Platform .resolvedExecutable,
125125 < String > [
126- if (debug) '--observe' ,
127- _feServerAppJitSnapshotPath,
128- ...commonArguments,
129- ],
126+ if (debug) '--observe' ,
127+ _feServerAppJitSnapshotPath,
128+ ...commonArguments,
129+ ],
130130 );
131131 }
132132 var feServerStdoutLines = StreamQueue (feServer.stdout
Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ dev_dependencies:
2020 test : ^1.16.0
2121 test_descriptor : ^2.0.0
2222 test_process : ^2.0.0
23- vm_service : ^8 .0.0
23+ vm_service : ^14 .0.0
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ class ResidentCompiler {
398398
399399 _logger.info (args.join (' ' ));
400400 final workingDirectory = projectDirectory.toFilePath ();
401- _server = await Process .start (sdkLayout.dartPath , args,
401+ _server = await Process .start (sdkLayout.dartAotRuntimePath , args,
402402 workingDirectory: workingDirectory);
403403
404404 var server = _server! ;
Original file line number Diff line number Diff line change @@ -90,6 +90,11 @@ class TestSdkLayout {
9090 'bin' ,
9191 Platform .isWindows ? 'dart.exe' : 'dart' ,
9292 ),
93+ dartAotRuntimePath: p.join (
94+ sdkLayout.sdkDirectory,
95+ 'bin' ,
96+ Platform .isWindows ? 'dartaotruntime.exe' : 'dartaotruntime' ,
97+ ),
9398 frontendServerSnapshotPath: p.join (
9499 sdkLayout.sdkDirectory,
95100 'bin' ,
@@ -137,6 +142,7 @@ class TestSdkLayout {
137142 final String stackTraceMapperPath;
138143
139144 final String dartPath;
145+ final String dartAotRuntimePath;
140146 final String frontendServerSnapshotPath;
141147 final String dartdevcSnapshotPath;
142148 final String kernelWorkerSnapshotPath;
@@ -155,6 +161,7 @@ class TestSdkLayout {
155161 required this .requireJsPath,
156162 required this .stackTraceMapperPath,
157163 required this .dartPath,
164+ required this .dartAotRuntimePath,
158165 required this .frontendServerSnapshotPath,
159166 required this .dartdevcSnapshotPath,
160167 required this .kernelWorkerSnapshotPath,
You can’t perform that action at this time.
0 commit comments