included_ file_ parse_ error
{0} in {1}({2}..{3})
Description
#The analyzer produces this diagnostic when the content of a file that is included into an analysis options file isn't valid YAML.
Example
#Given a file named shared.yaml that contains:
// %uri="shared.yaml"
analyzer:
enable-experiment:
- augmentations
enable-experiment:
- dot-shorthands
The following code produces this diagnostic because the included file
isn't valid YAML: the analyzer map contains duplicate enable-experiment
keys.
// %uri="analysis_options.yaml"
include: shared.yaml
analyzer:
enable-experiment:
- enhanced-parts
Common fixes
#If the file is intended to be included, then correct the included file to be valid YAML:
// %uri="shared.yaml"
analyzer:
enable-experiment:
- augmentations
- dot-shorthands
If the file isn't intended to be included, then remove the include key:
// %uri="analysis_options.yaml"
analyzer:
enable-experiment:
- enhanced-parts
Unless stated otherwise, the documentation on this site reflects Dart 3.10.3. Page last updated on 2025-12-5. View source or report an issue.