Skip to content

Error compiling Dart Debug Extension with DDC #49617

Closed
@elliette

Description

@elliette

Encountered an error compiling the Dart Debug Extension with DDC (dart2js succeeds).

 $ dart run build_runner build web -o build
[INFO] Generating build script completed, took 456ms
[INFO] Reading cached asset graph completed, took 224ms
[INFO] Checking for updates since last build completed, took 750ms
[WARNING] extension|tool/copy_builder.dart was not found in the asset graph, incremental builds will not work.
 This probably means you don't have your dependencies specified fully in your pubspec.yaml.
[WARNING] Invalidating asset graph due to build script update!
[INFO] Cleaning up outputs from previous builds. completed, took 209ms
[INFO] Generating build script completed, took 89ms
[WARNING] Invalidated precompiled build script due to missing asset graph.
[INFO] Precompiling build script... completed, took 826ms
[WARNING] extension|tool/copy_builder.dart was not found in the asset graph, incremental builds will not work.
 This probably means you don't have your dependencies specified fully in your pubspec.yaml.
[INFO] Building new asset graph completed, took 1.3s
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[SEVERE] build_web_compilers:ddc on web/background.ddc.module:
Error compiling dartdevc module:extension|web/background.sound.ddc.js

We're sorry, you've found a bug in our compiler.
You can report this bug at:
    https://github.com/dart-lang/sdk/issues/labels/web-dev-compiler
Please include the information below in your report, along with
any other information that may help us track it down. Thanks!
-------------------- %< --------------------
    dartdevc -k arguments: --dart-sdk-summary=/Users/elliottbrooks/.dart-sdks/2.17.3/lib/_internal/ddc_outline_sound.dill --modules=amd --no-summarize -o web/background.sound.ddc.js --source-map --summary=packages/js/js.sound.ddc.dill=packages/js/js --summary=packages/js/js_util.sound.ddc.dill=packages/js/js_util --summary=packages/meta/meta_meta.sound.ddc.dill=packages/meta/meta_meta --summary=packages/meta/meta.sound.ddc.dill=packages/meta/meta --summary=packages/collection/src/utils.sound.ddc.dill=packages/collection/src/utils --summary=packages/collection/src/algorithms.sound.ddc.dill=packages/collection/src/algorithms --summary=packages/collection/src/iterable_zip.sound.ddc.dill=packages/collection/src/iterable_zip --summary=packages/collection/src/comparators.sound.ddc.dill=packages/collection/src/comparators --summary=packages/collection/src/priority_queue.sound.ddc.dill=packages/collection/src/priority_queue --summary=packages/collection/src/canonicalized_map.sound.ddc.dill=packages/collection/src/canonicalized_map --summary=packages/collection/collection.sound.ddc.dill=packages/collection/collection --summary=packages/pub_semver/pub_semver.sound.ddc.dill=packages/pub_semver/pub_semver --summary=packages/path/path.sound.ddc.dill=packages/path/path --summary=packages/stack_trace/src/chain.sound.ddc.dill=packages/stack_trace/src/chain --summary=packages/async/async.sound.ddc.dill=packages/async/async --summary=packages/pool/pool.sound.ddc.dill=packages/pool/pool --summary=packages/logging/logging.sound.ddc.dill=packages/logging/logging --summary=packages/stream_channel/stream_channel.sound.ddc.dill=packages/stream_channel/stream_channel --summary=packages/sse/client/sse_client.sound.ddc.dill=packages/sse/client/sse_client --summary=packages/typed_data/src/typed_buffer.sound.ddc.dill=packages/typed_data/src/typed_buffer --summary=packages/typed_data/typed_buffers.sound.ddc.dill=packages/typed_data/typed_buffers --summary=packages/typed_data/src/typed_queue.sound.ddc.dill=packages/typed_data/src/typed_queue --summary=packages/crypto/crypto.sound.ddc.dill=packages/crypto/crypto --summary=packages/web_socket_channel/src/copy/io_sink.sound.ddc.dill=packages/web_socket_channel/src/copy/io_sink --summary=packages/web_socket_channel/html.sound.ddc.dill=packages/web_socket_channel/html --summary=packages/built_value/json_object.sound.ddc.dill=packages/built_value/json_object --summary=packages/built_collection/built_collection.sound.ddc.dill=packages/built_collection/built_collection --summary=packages/fixnum/fixnum.sound.ddc.dill=packages/fixnum/fixnum --summary=packages/built_value/serializer.sound.ddc.dill=packages/built_value/serializer --summary=packages/built_value/built_value.sound.ddc.dill=packages/built_value/built_value --summary=packages/dwds/data/devtools_request.sound.ddc.dill=packages/dwds/data/devtools_request --summary=packages/dwds/data/isolate_events.sound.ddc.dill=packages/dwds/data/isolate_events --summary=packages/dwds/data/build_result.sound.ddc.dill=packages/dwds/data/build_result --summary=packages/dwds/data/extension_request.sound.ddc.dill=packages/dwds/data/extension_request --summary=packages/dwds/data/connect_request.sound.ddc.dill=packages/dwds/data/connect_request --summary=packages/dwds/data/run_request.sound.ddc.dill=packages/dwds/data/run_request --summary=packages/dwds/data/debug_event.sound.ddc.dill=packages/dwds/data/debug_event --summary=packages/dwds/data/register_event.sound.ddc.dill=packages/dwds/data/register_event --summary=packages/dwds/data/error_response.sound.ddc.dill=packages/dwds/data/error_response --summary=packages/dwds/data/serializers.sound.ddc.dill=packages/dwds/data/serializers --summary=packages/dwds/src/utilities/batched_stream.sound.ddc.dill=packages/dwds/src/utilities/batched_stream --summary=web_api/chrome_browser_action.sound.ddc.dill=web_api/chrome_browser_action --summary=web_api/chrome_debugger.sound.ddc.dill=web_api/chrome_debugger --summary=web_api/api.sound.ddc.dill=web_api/api --summary=packages/dwds/src/sockets.sound.ddc.dill=packages/dwds/src/sockets --packages=.dart_tool/package_config.json --module-name=web/background --multi-root-scheme=org-dartlang-app --multi-root=. --track-widget-creation --inline-source-map --libraries-file=file:///Users/elliottbrooks/.dart-sdks/2.17.3/lib/libraries.json --experimental-emit-debug-metadata --used-inputs-file=/var/folders/wy/0pdp3vd16xv2q3d5dfqb1x7400lsm6/T/ddk_builder_h96W9N/used_inputs.txt web/background.dart --sound-null-safety
    dart --version: 2.17.3 (stable) (Wed Jun 1 11:06:41 2022 +0200) on "macos_x64"

Unsupported operation: static members do not support "." in their names. See https://github.com/dart-lang/sdk/issues/27926
#0      ProgramCompiler._emitJSInteropStaticMemberName (package:dev_compiler/src/kernel/compiler.dart:2599:9)
#1      ProgramCompiler._emitStaticMemberName (package:dev_compiler/src/kernel/compiler.dart:2542:20)
#2      ProgramCompiler._emitStaticTarget (package:dev_compiler/src/kernel/compiler.dart:5598:11)
#3      ProgramCompiler.visitStaticInvocation (package:dev_compiler/src/kernel/compiler.dart:5532:14)
#4      StaticInvocation.accept (package:kernel/ast.dart:6289:44)
#5      ProgramCompiler._visitExpression (package:dev_compiler/src/kernel/compiler.dart:3858:20)
#6      ProgramCompiler.visitExpressionStatement (package:dev_compiler/src/kernel/compiler.dart:3939:12)
#7      ExpressionStatement.accept (package:kernel/ast.dart:8829:43)
#8      ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:3764:20)
#9      MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31)
#10     ListIterator.moveNext (dart:_internal/iterable.dart:342:26)
#11     new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189:27)
#12     new _GrowableList.of (dart:core-patch/growable_array.dart:150:28)
#13     new List.of (dart:core-patch/array_patch.dart:51:28)
#14     ListIterable.toList (dart:_internal/iterable.dart:213:44)
#15     ProgramCompiler.visitBlock (package:dev_compiler/src/kernel/compiler.dart:3952:62)
#16     Block.accept (package:kernel/ast.dart:8885:43)
#17     ProgramCompiler._visitStatement (package:dev_compiler/src/kernel/compiler.dart:3764:20)
#18     ProgramCompiler._emitFunctionScopedBody (package:dev_compiler/src/kernel/compiler.dart:3797:18)
#19     ProgramCompiler._emitSyncFunctionBody.<anonymous closure> (package:dev_compiler/src/kernel/compiler.dart:3566:17)
#20     ProgramCompiler._withLetScope (package:dev_compiler/src/kernel/compiler.dart:2366:25)
#21     ProgramCompiler._withCurrentFunction (package:dev_compiler/src/kernel/compiler.dart:3600:18)
#22     ProgramCompiler._emitSyncFunctionBody (package:dev_compiler/src/kernel/compiler.dart:3562:17)
#23     ProgramCompiler._emitFunction (package:dev_compiler/src/kernel/compiler.dart:3379:11)
#24     ProgramCompiler._emitLibraryFunction (package:dev_compiler/src/kernel/compiler.dart:2748:14)
#25     MappedIterator.moveNext (dart:_internal/iterable.dart:391:20)
#26     new _GrowableList._ofOther (dart:core-patch/growable_array.dart:202:26)
#27     new _GrowableList.of (dart:core-patch/growable_array.dart:152:26)
#28     new List.of (dart:core-patch/array_patch.dart:51:28)
#29     Iterable.toList (dart:core/iterable.dart:470:12)
#30     ProgramCompiler._emitLibraryProcedures (package:dev_compiler/src/kernel/compiler.dart:2713:10)
#31     ProgramCompiler._emitLibrary (package:dev_compiler/src/kernel/compiler.dart:578:7)
#32     List.forEach (dart:core-patch/growable_array.dart:416:8)
#33     ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:431:15)
#34     _compile (package:dev_compiler/src/kernel/command.dart:441:27)
<asynchronous suspension>
#35     compile (package:dev_compiler/src/kernel/command.dart:50:12)
<asynchronous suspension>
#36     _CompilerWorker.performRequest (package:dev_compiler/ddc.dart:68:18)
<asynchronous suspension>
#37     AsyncWorkerLoop.run (package:bazel_worker/src/worker/async_worker_loop.dart:35:20)
<asynchronous suspension>
#38     internalMain (package:dev_compiler/ddc.dart:31:5)
<asynchronous suspension>



[WARNING] build_web_compilers:entrypoint on web/background.dart:
Unable to read extension|web/background.sound.ddc.js, check your console or the `.dart_tool/build/generated/extension/web/background.sound.ddc.js.errors` log file.
[SEVERE] build_web_compilers:entrypoint on web/background.dart:

AssetNotFoundException: extension|web/background.sound.ddc.js.metadata
[INFO] Running build completed, took 8.2s
[INFO] Caching finalized dependency graph completed, took 180ms
[SEVERE] Failed after 8.4s

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.dart2js-ddc-discrepancyWhen dev and production compilations have different semanticsweb-dev-compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions