dart-lang / pub-dev

The pub.dev website
https://pub.dev
BSD 3-Clause "New" or "Revised" License
771 stars 141 forks source link

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

Open alexeyinkin opened 2 weeks ago

alexeyinkin commented 2 weeks ago

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:

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.

isoos commented 2 weeks ago

Thanks for reporting this! pana analysis overrides the analysis-options, but we should enable the pass-through of this experiment.