-
Notifications
You must be signed in to change notification settings - Fork 319
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
Analysis shows errors but there are none, hot reload fails #4762
Comments
To help us repro, what hints did you see? If you fix the hints, does hot reload work properly? |
The only hint shown is the one above the |
Does this still happen after doing |
Without additional information we're unfortunately not sure how to resolve this issue. We're going to close this bug for now, but please don't hesitate to comment on the bug if you have any more information for us; we're happy to reopen. Thanks for your contribution! |
@stevemessick Sry I have not many details because there is no reliable method to reproduce it. |
As @alexander-doroshko wrote: --instrumentation-log-file=/some/path/das.log |
Without additional information we're unfortunately not sure how to resolve this issue. We're going to close this bug for now, but please don't hesitate to comment on the bug if you have any more information for us; we're happy to reopen. Thanks for your contribution! |
Analysis Server DiagnosticsDiagnostics Feedback Docs Spec #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5) |
|
In my case, ABC? test_Dart_Analysis_Fail_That_Cause_Hot_Reload_Fail_Case_001 (List<ABC?>? items) {
return item?[0];
} Above code example will fail to hot reload, because the |
I also have this bug. For example I have this
Because of |
This will be fixed in the next Dart plugin update. |
I also see this bug. It happens on my >10k lines of flutter code, so I cannot make a reproducible sample. @alexander-doroshko Thanks sounds wonderful! I wonder when will the next update be released? Before the update, what workaround can I do? EDIT: I have even uninstall and reinstalled the plugin, but still cannot use hot reload :( |
The problem related to the There might be other problems with hot reload, they should be investigated separately. Please attach the file that fails to be hot-reloaded and provide the versions of the Dart and Flutter plugins. |
thanks. work well in android 4.2 and newest flutter plugin. |
I have the same bug with dart version 2.13.4 .... |
I also have this issue, specifically in some files in my project. However, pressing save on other files in the same project works... |
I am having this issue too. What I found to be the cause is a parameter, which is annotated, required and has type. So for example the following code will cause this bug to happen for me: void foo({@Deprecated('foo') required int foo}) {
print('hi');
} |
@Quijx Thanks, filed as https://youtrack.jetbrains.com/issue/WEB-55630, will fix shortly. |
Since today the my analyser in AndroidStudio started showing:
"Hot reload failed. Analysis issues".
Clicking "View Issues" shows no issues, only hints.
If I build the app it builds and it also works on hot restart but not hot reload.
Steps to Reproduce
Dont know
Version info
The text was updated successfully, but these errors were encountered: