Skip to content

Comments

Add analysis status info#163

Open
Magyarimiki wants to merge 1 commit intoEricsson:mainfrom
Magyarimiki:feature/status-info
Open

Add analysis status info#163
Magyarimiki wants to merge 1 commit intoEricsson:mainfrom
Magyarimiki:feature/status-info

Conversation

@Magyarimiki
Copy link
Contributor

This PR adds file analysis status information to the code checker tree view.
Status info (if available) is displayed for the currently edited file. Status info contains subitems, displaying status for each analyser.

This feature depends on CodeChecker command

CodeChecker parse --status

which is available from version 6.27.0.

Signed-off-by: Magyarimiki <249292183+Magyarimiki@users.noreply.github.com>
@dkrupp dkrupp requested a review from Discookie February 10, 2026 09:33
Copy link
Collaborator

@Discookie Discookie left a comment

Choose a reason for hiding this comment

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

One major issue found so far:
If you click into either the Terminal or the Output tab, there's an infinite stream of spawned-then-instantly-killed instances of CodeChecker parse --status.

Image

Other than that, some minor nits.

}
if (this.checkedVersion < [ 6, 27, 0 ]) {
const statusNode = SidebarContainer.reportsView.getNodeById('statusItem');
statusNode?.setLabelAndIcon('Status report requires CodeChecker 6.27.0 or higher.');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we make this hideable somehow? if it's not supported, I don't need to have it persistently on the top, all the time.
Preferably place it somewhere else, maybe the Overview area?

window.onDidChangeActiveTextEditor(this.refreshBugList, this, ctx.subscriptions);
window.onDidChangeActiveTextEditor(editor => {
// event is called twice. Ignore deactivation of the previous editor.
if (editor === undefined) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Already covered by #162.

});
this.activeNotifications.delete(process.commandLine);

SidebarContainer.reportsView.updateStatus();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe this one is the cause of the issues? this one can spawn a new process if the status is not up-to-date when the process is finished - including when status processes are finished.

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.

2 participants