Repository navigation
fix: skip dynamic analysis with a clear message when the runtime analyzer is missing - #54
Open
Arthurvroum wants to merge 7 commits into
Open
Arthurvroum wants to merge 7 commits into
Arthurvroum wants to merge 7 commits into
Conversation
…yzer is missing The sidebar selects coretrace-runtime-analyzer by default, and the preflight only checked the static tools. On a Mac, whose releases do not include it, ctrace reported "Command not found in PATH: coretrace-runtime-analyzer", which installing the static tools cannot fix. - Before a run with dynamic analysis requested, the extension looks for the runtime analyzer where ctrace does: in its release (libexec), then on PATH (inside WSL on Windows). - Without it, the run goes on with the static tools only, and a warning says why, with a button that turns dynamic analysis off in the sidebar. - With dynamic analysis off, nothing changes. Fixes #41
sh00kapic
reviewed
Nov 27, 2026
- Honor tools.coretrace-runtime-analyzer.path from the config file, and the build-tree libexec next to ctrace. - Require an executable regular file, as ctrace does. - Run the probe where ctrace runs: the WSL distribution chosen for the input, and the /tmp copy's layout in the Windows fallback. - Stop a run with no tool left (static off, analyzer missing) instead of reporting a clean result. - Isolate the integration tests from the host PATH. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Y58KK133XU78kVyRoxXi8
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017Y58KK133XU78kVyRoxXi8
Contributor
|
Full review comments:
|
…nfig - Probe each WSL execution target once and skip dynamic analysis only for the files that run where the analyzer is missing. - When no C tool remains, drop those C files instead of cancelling the scan, so Python files are still analysed; stop only if nothing is left. - Turn analysis.dynamic and a runtime entry in analysis.invoke off in a per-run copy of the user's config, which ctrace would otherwise follow. - Offer "Turn Off Dynamic Analysis" only for runs started from the sidebar. - Treat a non-array dynamicTools like buildCtraceArgs does. - Word the notice in the future tense and log it after the output is cleared. - Skip the POSIX test fixture on Windows in suiteSetup.
…r runs The helper had been inserted between the doc comment and its function. Only Run Analysis and Run Workspace Analysis get fromSidebar: the other allowed commands keep their arguments unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The sidebar selects coretrace-runtime-analyzer by default, and the preflight only checked the static tools. On a Mac, whose releases do not include it, ctrace reported "Command not found in PATH: coretrace-runtime-analyzer", which installing the static tools cannot fix.
Fixes #41