Skip to content

Annotations on part directives are now ignored #4105

@Rexios80

Description

@Rexios80

Dart version 3.8.1
Packages: build_runner: 2.6.0, build: 3.0.0
Builders: hive_ce_generator
macOS

@GenerateAdapters(
  [
    AdapterSpec<ClassSpec1>(),
    AdapterSpec<ClassSpec2>(),
    AdapterSpec<ClassSpec3>(),
    AdapterSpec<ClassSpec4>(),
    AdapterSpec<EnumSpec>(),
  ],
  firstTypeId: 50,
)
part 'hive_adapters.g.dart';

This used to work fine before build version 3.0.0, but now build_runner seems to ignore the annotation

Metadata

Metadata

Assignees

No one assigned

    Labels

    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