parse_ error
{0}
Description
#The analyzer produces this diagnostic when the contents of an analysis options file isn't valid YAML.
Example
#
The following code produces this diagnostic because the analyzer section
has two enable-experiment keys:
// %uri="analysis_options.yaml"
analyzer:
enable-experiment:
- augmentations
enable-experiment:
- dot-shorthands
Common fixes
#Correct the file to be valid YAML:
// %uri="analysis_options.yaml"
analyzer:
enable-experiment:
- augmentations
- dot-shorthands
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.