Skip to content

"CodeChecker not found" and "Found supported CodeChecker" popups on every reconnect #111

@dfarley1

Description

@dfarley1

Every time I reconnect to my workspace (Reload Window, VPN disconnect, etc.) with a source file open, I get the following popups from CodeChecker:
image

Here's the output from the extension when this occurs:

>>> Database found at path: /depot/out/cur/compile_commands.json
{"base_package_version": "6.19.1", "package_build_date": "2022-03-18T16:12", "git_commit": "9fa0f9817f6e91eda2a9202e0a3bf5006accdc8c", "git_tag": "6.19.1"}
>>> Process 'CodeChecker analyzer-version' exited with code 0
>>> Supported CodeChecker version 6,19,1, enabled
>>> Starting process 'CodeChecker parse'
> CodeChecker parse /depot/out/cur/codechecker/reports -e json --file /depot/.../source.cc
>>> Database found at path: /depot/out/cur/compile_commands.json
>>> Process killed
>>> Starting process 'CodeChecker parse'
> CodeChecker parse /depot/out/cur/codechecker/reports -e json --file /depot/.../source.cc
>>> Database found at path: /depot/out/cur/compile_commands.json
>>> Database found at path: /depot/out/cur/compile_commands.json
>>> Process 'CodeChecker parse' exited with code 0

This doesn't happen if I close all editors and then reload the window, but it seems that any file being open during the reload will trigger it, it doesn't necessarily need to be a source file I'm trying to analyze.

So there's kind of three issues:

  1. Why is it reporting that it couldn't find it but then could?
  2. Can we get an option to suppress the "Found supported CodeChecker" popup all the time?
  3. Why is parsing happening twice without me taking any action during startup? Is it because of the Process killed line? What killed it?

My config (in my .code-workspace file):

{
    "codechecker.backend.compilationDatabasePath": "/depot/out/cur/compile_commands.json",
    "codechecker.backend.outputFolder": "/depot/out/cur/codechecker",
    "codechecker.executor.arguments": "--skip /depot/build/config/codechecker.skipfile --ctu --analyzer-config 'clang-tidy:take-config-from-directory=true'",
}

Metadata

Metadata

Assignees

Labels

MEDIUMbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions