Open MohammadNezarAldalati opened 1 month ago
Summary: The user is experiencing an error when running dart analyze
in a new Flutter project. The error message indicates a null check operator used on a null value, likely stemming from an issue with parsing the lint configuration file.
This still should not just crash but should report a readable error.
cc @pq
The unsafe null check was fixed by @DanTup in https://github.com/dart-lang/sdk/commit/bbe6f2340ad983e2a08b185e2a6555cc13cb0179. We do have some analysis options validation so in common cases errors will be reported.
@MohammadNezarAldalati if you can reproduce the file in a state that crashes for you I can look and see if we're reporting anything on it today.
Thanks!
@pq
I just wrote a none valid yaml by mistake in analysis_options.yaml
and that what cause the error when run dart analyze
:
linter:
rules:
analyzer:
plugins:
- custom_lint
and then I notice it and fix it:
linter:
rules:
analyzer:
plugins:
- custom_lint
Great. Thanks!
dart analyze
and got this error:General info
Project info