recursive_ include_ file
The URI '{0}' included in '{1}' includes '{1}', creating a circular reference.
Description
#The analyzer produces this diagnostic when an analysis options file, directly or indirectly, includes itself.
Examples
#The following code produces this diagnostic because the file directly includes itself:
// %uri="analysis_options.yaml"
include: analysis_options.yaml
Given a file named shared_options.yaml that contains:
// %uri="shared_options.yaml"
include: analysis_options.yaml
The following code produces this diagnostic because the file indirectly includes itself:
// %uri="analysis_options.yaml"
include: shared_options.yaml
Common fixes
#Change at least one of the files in order to break the circularity.
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.