schultek / super_annotations

Write your code generation functions naturally alongside your normal code. Define and use custom annotations in the same file or project.
https://pub.dev/packages/super_annotations
MIT License
39 stars 5 forks source link

Can not run build_runner with dart version of v3.0.1 #10

Closed XinyuKhan closed 1 year ago

XinyuKhan commented 1 year ago

Here is the output:

$ flutter pub run build_runner build -d
Deprecated. Use `dart run` instead.
Building package executable... (7.5s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 327ms
[WARNING] ../../../.pub-cache/hosted/pub.flutter-io.cn/super_annotations-0.7.1/lib/src/code_builder_string.dart:171:7: Error: The non-abstract class 'DartTypeVisitor' is missing implementations for these members:
 - TypeVisitor.visitInvalidType
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class DartTypeVisitor extends TypeVisitor<String> {
      ^^^^^^^^^^^^^^^
../../../.pub-cache/hosted/pub.flutter-io.cn/analyzer-5.13.0/lib/dart/element/type_visitor.dart:19:5: Context: 'TypeVisitor.visitInvalidType' is defined here.
  R visitInvalidType(InvalidType type);
    ^^^^^^^^^^^^^^^^
[INFO] Precompiling build script... completed, took 1.0s
[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.
schultek commented 1 year ago

Fixed in v0.8.0