Skip to content

macOS keeps prompting to install analyzers after Homebrew fails to install IKOS #33

In review

Description

@sh00kapic

On Apple Silicon with the default static tools selected, choose Install Analyzers, then run analysis again. In the observed case Cppcheck, Flawfinder and TscanCode were present, but IKOS was still missing. Homebrew refused to load its nasa-sw-vnv/core/apron dependency until the user trusted that formula. The installer suppresses the Homebrew failure, and the command returns as soon as an interactive terminal opens. Preflight also requires an Apple Silicon Cppcheck path even when a compatible executable is available elsewhere.

Expected behavior and verification

Run Homebrew as the invoking user, surface its actionable error, and wait for verification. Use the same executable resolution during preflight and analysis. Test a rejected dependency, a successful repair and a second run. The original scan should resume after successful verification without opening another installer.

ctrace/DependencyInstaller.ts line 239 · extension.ts line 204

Activity

  1. added
    bug
    on Nov 20, 2026
  2. Arthurvroum commented on Nov 25, 2026

    @Arthurvroum
    Collaborator

    Fixed on branch 33-macos-ikos-install (833853f), pull request #49.

    • Homebrew now runs as the invoking user. A failed brew install is no longer hidden: it is printed and summed up, and the extension shows Homebrew's own message (for example, the request to trust the nasa-sw-vnv/core/apron formula).
    • The password terminal runs the installer itself. The extension waits for it to finish and verifies the tools. When verification succeeds, the original scan resumes without opening another installer. When it fails, the run stops.
    • The installer script and its log are written to a private temporary folder instead of a predictable name in /tmp.
    • Preflight and the analysis command use the same rule to pick Cppcheck: the first SARIF-capable executable from Homebrew, the CoreTrace tools folder or PATH. A suitable Cppcheck outside /opt/homebrew/bin is accepted.

    Tests: a refused IKOS dependency (Homebrew's message is reported and the rest still installs), a failed repair (the scan does not start), and a successful repair (the scan resumes and the next run asks nothing). Cppcheck resolution is covered too. This branch is built on top of #34, #40 and #39. Unit and workspace suites pass locally (Linux).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions