Skip to content

Improve error handling for unbuilt CodeChecker launcher - #5182

Merged
bruntib merged 1 commit into
Ericsson:masterfrom
qasim06:issue-3371-graceful-launcher-error
Nov 12, 2026
Merged

bruntib merged 1 commit into
Ericsson:masterfrom
qasim06:issue-3371-graceful-launcher-error

Conversation

@qasim06

@qasim06 qasim06 commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Summary
Improve the error message displayed when bin/CodeChecker is executed directly from an unbuilt source checkout.
Previously, the launcher failed with a Python missing-file error because the packaged CLI entry point was unavailable.
The launcher now detects the missing entry point and displays an actionable error message explaining how to build and run CodeChecker.

Changes
Check whether the packaged CLI entry point exists before launching Python.
Display a helpful error message and exit with a nonzero status when the package has not been built.
Preserve the existing behavior for valid package layouts.
Add four regression tests covering launcher behavior and error handling.

Testing
4 launcher regression tests passed.
Pycodestyle, Pylint, syntax checks, and whitespace checks passed.
Verified compatibility with the existing built package.
Broader analyzer suite: 127 passed, 7 failed, 11 errors, 10 skipped. Remaining failures and errors were associated with unavailable Clang/clang-tidy tools.

Full package builds, web tests, and functional tests were not run.

Closes #3371

Detect missing packaged CLI files and add launcher regression tests.
@qasim06
qasim06 requested a review from bruntib as a code owner November 7, 2026 23:31
@bruntib

bruntib commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Thanks for the improvement!

@bruntib bruntib added this to the release 6.30.0 milestone Nov 12, 2026
@bruntib
bruntib merged commit b1ed51d into Ericsson:master Nov 12, 2026
10 checks passed
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.

File bin/CodeChecker can be irritating

2 participants