-
Notifications
You must be signed in to change notification settings - Fork 330
Add flag to skip the dart analyzer error check before a hot reload #3414
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
Add flag to skip the dart analyzer error check before a hot reload #3414
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, with some wording suggestions
settings.hot.reload.on.save=Perform hot reload on save | ||
settings.disable.tracking.widget.creation=Disable tracking widget creation locations | ||
settings.enable.bazel.test.runner=Enable new Bazel test runner | ||
settings.hot.reload.with.error=Perform hot reload even if there are analysis errors in the project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps, Perform hot reload even if there are analysis errors
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
// If the analysis server detects any errors in the project, it will not perform a hot reload. | ||
// This can cause hot reload to stop working needlessly when, eg, there is an analysis error in a test file. | ||
// The reloadWithError option in settings is a workaround. | ||
if (hasErrors(app.getProject(), app.getModule(), editor.getDocument()) && !mySettings.isReloadWithError()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an issue tracking a better fix (in flutter_tools)? If so, we could in-line the reference here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
</constraints> | ||
<properties> | ||
<text resource-bundle="io/flutter/FlutterBundle" key="settings.hot.reload.with.error"/> | ||
<toolTipText value="Hot reload changes into running Flutter apps even with analysis errors."/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hot reload changes into running Flutter apps even if there are analysis errors
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
…3414) * Remove the check for analysis errors blocking reloads * Add a settings option to enable or disable reload with error * Hide the hot reload disabling behind a flag * Respond to comments from Devon
…lutter#3414) * Remove the check for analysis errors blocking reloads * Add a settings option to enable or disable reload with error * Hide the hot reload disabling behind a flag * Respond to comments from Devon
Currently, if the analysis server detects any errors in the project, it will not perform a hot reload.
This can cause hot reload to stop working needlessly when, eg, there is an analysis error in a test file.
Take two on #3181.