Skip to content

build_daemon does not support --enable-experiment option. #3180

@annagrin

Description

@annagrin

Repro:

main.dart

typedef ListList<T> = List<List<T>>;
var filledList = List.filled;  // List<T> Function<T>(int, T)

void main() async {
    print('$filledList');
}

pubspec.yaml

name: test

environment:
  sdk: ">=2.15.0-0 <3.0.0"

dev_dependencies:
  build_runner: ^2.0.0
  build_web_compilers: ^3.2.1
  webdev: ^2.7.5

Command

webdev serve --debug -- --enable-experiment=constructor-tearoffs --verbose

Output

➜  webdev  serve --debug -- --enable-experiment=constructor-tearoffs --verbose
[INFO] Connecting to the build daemon...
[INFO] Build options: [--enable-experiment=constructor-tearoffs, --verbose]
[INFO] Generating build script...
[INFO] Generating build script completed, took 385ms
[INFO]
[INFO] Starting daemon...
[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 232ms

[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 528ms

[INFO] Initializing inputs
[INFO] Reading cached asset graph...
[INFO] Reading cached asset graph completed, took 232ms
[INFO]
[INFO] Checking for updates since last build...
[INFO] Checking for updates since last build completed, took 528ms
[INFO]
[INFO] Setting up file watchers...
[INFO] Setting up file watchers completed, took 4ms
[INFO]
[INFO] Registering build targets...
[INFO] Starting initial build...
[INFO] Starting resource servers...
[INFO] Serving DevTools at http://127.0.0.1:53668

[INFO] Serving `web` on http://127.0.0.1:8080

[INFO] About to build [web]...
[INFO] Running build...
[INFO] Running build completed, took 197ms

[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 330ms

[SEVERE] build_web_compilers:ddc on web/main.ddc.module: Error compiling dartdevc module:test|web/main.sound.ddc.js

web/main.dart:4:23: Error: Getter not found: 'filled'.
var filledList = List.filled;  // List<T> Function<T>(int, T)
                      ^^^^^^


[SEVERE] build_web_compilers:entrypoint on web/main.dart: AssetNotFoundException: test|web/main.sound.ddc.js.metadata

[SEVERE] Failed after 550ms
[INFO] About to build [web]...
[INFO] Updating asset graph...
[INFO] Updating asset graph completed, took 3ms

[INFO] Running build...
[INFO] Running build completed, took 43ms

[INFO] Caching finalized dependency graph...
[INFO] Caching finalized dependency graph completed, took 169ms

[SEVERE] build_web_compilers:entrypoint on web/main.dart: AssetNotFoundException: test|web/main.sound.ddc.js.metadata

[SEVERE] build_web_compilers:ddc on web/main.ddc.module: Error compiling dartdevc module:test|web/main.sound.ddc.js

web/main.dart:4:23: Error: Getter not found: 'filled'.
var filledList = List.filled;  // List<T> Function<T>(int, T)
                      ^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions