Skip to content

Check and install analyzers in the WSL distribution used for the scan #40

In review

Description

@sh00kapic

With two WSL distributions, open a source file using a WSL UNC path in the non-default distribution. The command builder can select that distribution from the input path, while preflight and the install command omit the distro argument. Checking or repairing tools in the default distribution then gives the wrong answer for the actual run.

Expected behavior and verification

Use the execution distribution consistently for checking, installing, verifying and running the requested analyzers. Include a case with tools present in only one of two distributions and preserve the existing default for ordinary Windows paths.

extension.ts line 163 · ctrace/CommandBuilder.ts line 167

Activity

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

    @Arthurvroum
    Collaborator

    Fixed on branch 40-wsl-distro-for-tools (515cace), pull request #47.

    • executionDistro() picks the distribution with the same rule as the command builder: the distribution of a WSL path when it is not the default, otherwise the default. Ordinary Windows paths keep the default distribution.
    • Preflight checks the analyzers in that distribution, and its Install Analyzers button installs them there. The sidebar's install button uses the distribution of the active file.

    Tests: tools present in only one of two distributions are checked in the distribution that runs the scan, and the default is kept without wsl.exe. This branch is built on top of #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