-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Add null check
fix for entire file
#56084
Comments
Summary: The IntelliJ Dart analyzer is not providing error resolution suggestions for the entire file, despite the presence of errors. This issue prevents users from efficiently fixing errors in their code. |
If i wanted to add null safety in whole file then i have to add manually as dart does not support migration in other versions. Dart analyzer should provide this feature to solve errors effectively. Doing manually error solving for same time of errros is very hard for large projects. |
In versions of the SDK before 3.0 (when non-nullable by default became the only option) there was a migration tool specifically targeted at this kind of migration. If you can go back to an earlier version to do the migration, that might be the easiest path forward. (We can't support the migration tool in 3.0 because the tools no longer understand pre 2.12 code.)
Yes it is. The reasons we don't currently support this operation across multiple locations within the same file are:
I'm not sure we'd want to enable this fix for broad use across a file because of those reasons. |
Thanks for the valuable feedback.
|
Add null check
fix for entire file
Version information
IDEA AI-233.14808.21.2331.11842104
3.4.3
AI-233.14808.21.2331.11842104, JRE 17.0.10+0-17.0.10b1087.21-11572160x64 JetBrains s.r.o., OS Mac OS X(x86_64) v13.6.6, screens 1920.0x1080.0
Analyzer is not showing the suggestion of error solving in the whole file like in second screenshot.
The text was updated successfully, but these errors were encountered: