Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webdev Gets Stuck Compling #1415

Closed
charliem opened this issue Sep 24, 2021 · 2 comments
Closed

Webdev Gets Stuck Compling #1415

charliem opened this issue Sep 24, 2021 · 2 comments

Comments

@charliem
Copy link

charliem commented Sep 24, 2021

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
@natebosch
Copy link
Member

@kevmoo

@kevmoo
Copy link
Member

kevmoo commented Sep 24, 2021

You'll have to upgrade to the latest angular, which supports our latest dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants