pub-dev icon indicating copy to clipboard operation
pub-dev copied to clipboard

Pub.dev does not recognize 'enable-experiment: macros' in analysis_options.yaml

Open alexeyinkin opened this issue 1 year ago • 1 comments

I've published a package with a macro: https://pub.dev/packages/args_macro When analyzing the package, pub.dev says it needs to enable the macros experiment:

image

However, it's enabled in analysis_options:

include: package:total_lints/package.yaml

analyzer:
  enable-experiment:
    - macros

Locally, dart analyze recognizes it.

Searching the macros topic, I can see others experimenting with macros too and having the same issue:

  • https://pub.dev/packages/data_class by @felangel
  • https://pub.dev/packages/shelf_router_macro

For some reason, the json package is not affected when analyzing it but is affected when checking the formatting:

image

Is there anything special that the json package does that other examples don't? If so, it needs to be documented.

alexeyinkin avatar Jun 13 '24 13:06 alexeyinkin