-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
To ensure null safety rolls are not blocked, I am updating all of the dart rules in flutter/engine to use the package_config.json file. When updating the kernel_compiler rule for fuchsia, I found that the kernel_front_end.dart file is doing its own parsing of .packages files. The immediate error is an exception when I provide a package_config.json, but this may cause other problems in the future when .packages are removed.
Error:
FAILED: clang_x64/gen/flutter/shell/platform/fuchsia/dart/kernel_compiler.dart.dill
python ../../third_party/dart/build/gn_run_binary.py compiled_action /b/s/w/ir/cache/builder/src/third_party/dart/tools/sdks/dart-sdk/bin/dart --depfile=/b/s/w/ir/cache/builder/src/out/fuchsia_debug_x64/clang_x64/gen/flutter/shell/platform/fuchsia/dart/kernel_compiler.dart.dill.d --depfile_output_filename=clang_x64/gen/flutter/shell/platform/fuchsia/dart/kernel_compiler.dart.dill --dfe=/b/s/w/ir/cache/builder/src/third_party/dart/tools/sdks/dart-sdk/bin/snapshots/kernel-service.dart.snapshot /b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/gen_kernel.dart --packages=/b/s/w/ir/cache/builder/src/third_party/dart/.dart_tool/package_config.json --platform=/b/s/w/ir/cache/builder/src/out/fuchsia_debug_x64/clang_x64/vm_platform_strong.dill --no-aot --no-embed-sources --no-link-platform --output=/b/s/w/ir/cache/builder/src/out/fuchsia_debug_x64/clang_x64/gen/flutter/shell/platform/fuchsia/dart/kernel_compiler.dart.dill /b/s/w/ir/cache/builder/src/flutter/shell/platform/fuchsia/dart/compiler.dart
Command failed: /b/s/w/ir/cache/builder/src/third_party/dart/tools/sdks/dart-sdk/bin/dart --depfile=/b/s/w/ir/cache/builder/src/out/fuchsia_debug_x64/clang_x64/gen/flutter/shell/platform/fuchsia/dart/kernel_compiler.dart.dill.d --depfile_output_filename=clang_x64/gen/flutter/shell/platform/fuchsia/dart/kernel_compiler.dart.dill --dfe=/b/s/w/ir/cache/builder/src/third_party/dart/tools/sdks/dart-sdk/bin/snapshots/kernel-service.dart.snapshot /b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/gen_kernel.dart --packages=/b/s/w/ir/cache/builder/src/third_party/dart/.dart_tool/package_config.json --platform=/b/s/w/ir/cache/builder/src/out/fuchsia_debug_x64/clang_x64/vm_platform_strong.dill --no-aot --no-embed-sources --no-link-platform --output=/b/s/w/ir/cache/builder/src/out/fuchsia_debug_x64/clang_x64/gen/flutter/shell/platform/fuchsia/dart/kernel_compiler.dart.dill /b/s/w/ir/cache/builder/src/flutter/shell/platform/fuchsia/dart/compiler.dart
output: Unhandled exception:
FormatException: Scheme not starting with alphabetic character (at character 1)
"2020-06-29T11:21:54.984521",
^
#0 _Uri._fail (dart:core/uri.dart:1628:5)
#1 _Uri._makeScheme (dart:core/uri.dart:2167:7)
#2 new _Uri.notSimple (dart:core/uri.dart:1459:18)
#3 Uri.parse (dart:core/uri.dart:1022:17)
#4 _Uri.resolve (dart:core/uri.dart:2592:27)
#5 convertToPackageUri (package:vm/kernel_front_end.dart:697:39)
<asynchronous suspension>
#6 runCompiler (package:vm/kernel_front_end.dart:240:21)
#7 compile (file:///b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/gen_kernel.dart:39:10)
#8 main (file:///b/s/w/ir/cache/builder/src/third_party/dart/pkg/vm/bin/gen_kernel.dart:34:25)
#9 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
#10 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
[7204/7281] ACTION //third_party/dart/utils/kernel-service:frontend_server_dill(//build/toolchain/fuchsia:fuchsia)
[7205/7281] ACTION //flutter/flutter_frontend_server:frontend_server_dill(//build/toolchain/linux:clang_x64)
ninja: build stopped: subcommand failed.
This is blocking flutter/flutter#60999
Example PR: flutter/engine#19582
Metadata
Metadata
Assignees
Labels
No labels