Skip to content

Incremental compiler fails to compile flutter hello_world example app #30491

Closed
@aam

Description

@aam

IKG compiler for flutter hello_world fails to resolve dart:ui class references, produces warnings and errors to in that regard. It's behavior is different from batch compiler kernelFromProgram, which compiles flutter examples correctly.

Snippet of the errors:

file:///flutter/flutter/packages/flutter/lib/src/painting/box_painter.dart:67:5: Warning: 'Radius' isn't a type.
    Radius right: Radius.zero
    ^
file:///flutter/flutter/packages/flutter/lib/src/painting/box_painter.dart:85:59: Error: Getter not found: 'Radius'.
  static const BorderRadius zero = const BorderRadius.all(Radius.zero);
                                                          ^
file:///flutter/flutter/packages/flutter/lib/src/painting/box_painter.dart:85:59: Error: Compilation aborted due to fatal error.
  static const BorderRadius zero = const BorderRadius.all(Radius.zero);
                                                          ^
[+22086 ms] "flutter run" took 75,045ms.

Metadata

Metadata

Assignees

Labels

legacy-area-front-endLegacy: Use area-dart-model instead.type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions