Open abitofevrything opened 1 month ago
Summary: The Dart analyzer and analysis server fail when analysis_options.yaml
contains malformed data, causing the analyzer to hang and the analysis server to fail to start. This prevents IDEs from reporting errors and lints, leading to misconfiguration. The issue is caused by a missing value after a key in the analysis_options.yaml
file.
dart analyze
and the dart analysis server both fail whenanalysis_options.yaml
contains malformed data.Notably,
dart analyze
outputs a single error and then hangs forever:This issue also causes the analysis server to fail to start, which means IDEs appear to be misconfigured and do not report errors or other lints.
In this case, the
analysis_options.yaml
causing the issue was the following:(note the missing value after
prefer_const_constructors
).