Comments (3)
I experience similar behavior in my project. In this monorepo, there is a package www_analysis
dedicated to configuring analyzer, which only contains lib/analysis_options.yaml
file with the following content:
analyzer:
exclude:
- lib/**.g.dart
- lib/**.freezed.dart
- lib/**.i69n.dart
- lib/**.config.dart
errors:
missing_required_param: error
missing_return: error
invalid_assignment: warning
invalid_annotation_target: ignore
This package is referenced by path
by every other package, and their analysis_options.yaml
file contains:
include: package:www_analysis/analysis_options.yaml
With this configuration, the project used to have no analyzer warnings in generated files, and also did not have invalid_annotation_target
warnings because it was instructed to ignore those.
However, after I switched from stable channel Flutter 3.22.2
and Dart 3.4.3
to beta Flutter 3.23.0-0.1.pre
and Dart 3.5.0-180.3.beta
, this configuration provided with include
seems to be ignored as there are now invalid_annotation_target
warnings everywhere.
If I copy the content of www_analysis/lib/analysis_options.yaml
file to analysis_options.yaml
of other packages, warnings in those packages disappear.
from sdk.
Still occurs in Flutter 3.24.0-0.1.pre
from sdk.
There is another possible reason for the behavior being reported here: it's possible that the interpretation of relative paths changed. If the relative path is now interpreted relative to the analysis_options.yaml
file in www_analysis
and was previously interpreted relative to the including analysis_options.yaml
file, that would account for the difference.
from sdk.
Related Issues (20)
- pkg/dds/test/devtools_server/instance_reuse_test is failing and flaking
- new memory leak with large allocations in Dart 3.5.0 HOT 10
- TypedDataList comparison HOT 1
- Macro with field annotations doesn't work properly HOT 1
- Failures on [VM/Runtime] Throw error when native service port cannot be created HOT 1
- Dart FFI crashes on ScopeBuilder::LookupVariable HOT 5
- "Wrap with Padding" assist should consider `prefer_int_literals` HOT 1
- Dart type inference error with ternary operator in case of generyc types HOT 4
- [Augmentations] Augmentation can provide a value for non-nullable variable
- In Dart 3.5.0 analysis_options.yaml don't seem to be used under certain conditions HOT 13
- [Augmentations] No error in the analyzer if `augmented` refers to an abstract member
- [Augmentations] No error in the analyzer when enum's implicit getter is augmented
- [Augmentations] No error in the analyzer when augmenting enum value provides a constructor invocation
- CFE crashes computing upper bounds of some generic function types HOT 1
- [native assets] `dart build` should create data assets under asset-id name not under original filename HOT 3
- Exception when handling yaml code HOT 2
- [CP] [dart2wasm] Pass source maps to wasm-opt when optimizing HOT 5
- Unexpected end of program when closing a StreamController HOT 5
- Struct member's values are being incorrect except the last one when unwraped in native by its address HOT 4
- Inconsistent behavior with case-insensitive file imports HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sdk.