Skip to content
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

Improvements for handling CodeChecker version checks #114

Merged
merged 2 commits into from
Aug 12, 2022

Conversation

Discookie
Copy link
Collaborator

Fixes #111.

  • Refactored the CodeChecker version handling, so a version check process couldn't be prematurely killed, leading to a false CodeChecker not found notification. (Should be enough to fix the particular issue showing double notifs.)
  • Added a toggle to disable version-check related notifications altogether

* This prevents killing off a version check in the queue, showing a bogus error message
@Discookie Discookie requested a review from vodorok July 15, 2022 10:04
Copy link
Collaborator

@vodorok vodorok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my only remark, otherwise good job!

@@ -110,7 +110,13 @@ export class ExecutorAlerts {
break;
case ProcessStatus.errored:
this.statusBarItem.text = '$(testing-error-icon) CodeChecker: analysis errored';
window.showErrorMessage('CodeChecker finished with error - see logs for details');

const shouldShowError = workspace.getConfiguration('codechecker.executor')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't hide Codechecker runtime error notifications in the case when the user ticks the newly introduced option. The settings description says: "Enable notifications when CodeChecker is not found or not supported", but I suspect there can be other errors too. Partial/total suppression of notifications could be introduced, like with a slider or with another tickbox, that says, "Disable every popup originating from the plugin" or something along the way.

If the cases for a failed analysis and other runtime errors are handled elsewhere than this, please consider the above remarks irrelevant.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the option to Enable CodeChecker-related notifications, as other notifications being spammed has also been an issue before. It now controls every notification, except when a report cannot be found when trying to jump to it.

I'm planning to show the notification's contents in the sidebar, but that will be added in another PR.

@Discookie Discookie force-pushed the ericsson/fix-killed-version-check branch from 961ff85 to a5af626 Compare August 1, 2022 09:33
@Discookie Discookie requested a review from vodorok August 1, 2022 09:40
Copy link
Collaborator

@vodorok vodorok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my remark

src/editor/initialize.ts Outdated Show resolved Hide resolved
@Discookie Discookie force-pushed the ericsson/fix-killed-version-check branch from a5af626 to 04ddd49 Compare August 3, 2022 11:41
@Discookie Discookie requested a review from vodorok August 3, 2022 11:43
Copy link
Collaborator

@vodorok vodorok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vodorok vodorok merged commit 6ab1f02 into Ericsson:main Aug 12, 2022
@vodorok vodorok added this to the 1.4.0 milestone Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"CodeChecker not found" and "Found supported CodeChecker" popups on every reconnect
2 participants