Closed dcharkes closed 1 month ago
It fails on -243 as well.
So the error was introduced somewhere in https://github.com/dart-lang/sdk/compare/9dce57c343ecfa98a214259dc65a3370c39c76a1...5634a2598d34f01ebd76799b9bfe322e2572bc2f.
CLI/dartdev commits:
The error message is coming from:
static bool checkArtifactExists(String path, {bool logError = true}) {
if (!File(path).existsSync()) {
if (logError) {
log.stderr(
'Could not find $path. Have you built the full Dart SDK?',
);
}
return false;
}
return true;
}
And the most likely call path is:
Future<int> run() async {
if (!Sdk.checkArtifactExists(genKernel) ||
!Sdk.checkArtifactExists(genSnapshot) ||
!Sdk.checkArtifactExists(sdk.dart)) {
return 255;
}
And sdk.dart
was recently changed: from Platform.resolvedExecutable
to Platform.executable
.
https://dart-review.googlesource.com/c/sdk/+/370000/5/pkg/dartdev/lib/src/sdk.dart
A possible fix landed in https://github.com/dart-lang/sdk/commit/4abd615d3279573ad4711995a545ed156da8a315. The first dev release that should be in is 3.5.0-305.0.dev
.
No release in the archive yet https://dart.dev/get-dart/archive.
A possible fix landed in dart-lang/sdk@4abd615. The first dev release that should be in is
3.5.0-305.0.dev
.No release in the archive yet https://dart.dev/get-dart/archive.
Unfortunately that fix didn't work: https://github.com/dart-lang/sdk/issues/56080#issuecomment-2216879041
Another possible fix https://github.com/dart-lang/sdk/commit/e9be5dc4aae7f0c717661521f2508ea5a726ff55, lets wait for the next dev release.
Should be available after 3.6.0-69.0.dev
The CI started failing last week with dev builds.
https://github.com/dart-lang/native/actions/runs/9531751030/job/26273028761
The run two weeks ago succeeded.
https://github.com/dart-lang/native/actions/runs/9432414624/job/25982134422
So something must have changed in the meantime.