Skip to content

Semgrep diagnostic reports disabled even when semgrep is installed via uv #590

Description

@danieldekay

Problem

The Semgrep pattern diagnostic reports:

  • Semgrep Pattern ⊘ Disabled Semgrep CLI not installed (install: pip install semgrep)

This happens even though the project has Semgrep installed and available in the uv environment.

Reproduction

  1. In the TangoAtlas workspace, install Semgrep with uv add semgrep.
  2. Run uv run semgrep --version.
  3. Run the diagnostic that prints the Semgrep Pattern status.

Observed behavior

  • uv run semgrep --version succeeds.
  • The shell can also resolve semgrep.
  • The diagnostic still says Semgrep is not installed and marks the pattern disabled.

Expected behavior

  • If Semgrep is available in the active project environment, the diagnostic should report it as enabled.
  • The diagnostic should not tell the user to install Semgrep with pip install semgrep when Semgrep is already present via uv.

Notes

The issue appears to be an environment detection mismatch rather than a missing dependency declaration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Fields

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions