Skip to content

Webdev Gets Stuck Compling #1415

@charliem

Description

@charliem

I have recently upgraded to 2.14.2. My angular based webapp has stopped compiling. However there isn't actually a compile error. Instead webdev seems to get stuck compiling a specific action and never completes or exits (see below).

From what I can see theres an incompatibility with the analyzer package. However my project is stuck at Angular 6 since we use the official angular_component library which isn't compatible with Angular 7. Angular 6 is preventing us using a more up to date analyzer version.

Is it expected behaviour for webdev to lock up purely because of dependancy error?

[INFO] Building new asset graph completed, took 2.4s
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[INFO] Serving `web` on http://127.0.0.1:8080
[WARNING] angular:angular on web/main.dart: Your current `analyzer` version may not fully support your current SDK version.

Please try upgrading to the latest `analyzer` by running `pub upgrade`.

Analyzer language version: 2.12.0
SDK language version: 2.14.0

If you are getting this message and have the latest analyzer please file
an issue at https://github.com/dart-lang/sdk/issues/new with the title
"No published analyzer available for language version 2.14.0".
Please search the issue tracker first and thumbs up and/or subscribe to
existing issues if present to avoid duplicates.

[SEVERE] angular:angular on web/main.dart: Bad state: Unexpected diagnostics:
/usr/local/Cellar/dart/2.14.2/libexec/lib/core/int.dart:117:18 - Operator declarations must be preceded by the keyword 'operator'.
/usr/local/Cellar/dart/2.14.2/libexec/lib/core/int.dart:117:16 - Methods must have an explicit list of parameters.
/usr/local/Cellar/dart/2.14.2/libexec/lib/core/int.dart:117:18 - A function body must be provided.

[SEVERE] angular:angular on web/main.dart: Bad state: Unexpected diagnostics:
/usr/local/Cellar/dart/2.14.2/libexec/lib/core/int.dart:117:18 - Operator declarations must be preceded by the keyword 'operator'.
/usr/local/Cellar/dart/2.14.2/libexec/lib/core/int.dart:117:16 - Methods must have an explicit list of parameters.
/usr/local/Cellar/dart/2.14.2/libexec/lib/core/int.dart:117:18 - A function body must be provided.

[WARNING] No actions completed for 15.1s, waiting on:
  - build_web_compilers:entrypoint on web/main.dart

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