Skip to content

[BUG][vscode-extension] Analysis failed: To use the Salesforce Code Analyzer extension, first install Salesforce CLI. #2054

@sreeharsha-morampudi-uprr

Description

Have you tried to resolve this issue yourself first?

  • I confirm I have gone through the above steps and still have an issue to report.

Bug Description

I'm having this issue now.
My Code Analyzer was working fine till last week. Now I'm getting the error message as attached below.

Image

Has anything changed recently?
When I run the command sf --version from the terminal, it's working fine. But when code Analyzer runs it, it is not able to recognize the CLI that was already installed.

Thanks and Regards,
Sreeharsha Morampudi

Output / Logs

Steps To Reproduce

sf --version
Gave the cli version correctly.

Expected Behavior

Should be able to scan the apex classes.

Operating System

Windows

Visual Studio Code Version

1.121.0

Extension Version

1.19.0

Salesforce CLI Version

@salesforce/cli/2.129.8 win32-x64 node-v22.22.1

Code Analyzer CLI Plugin Version

code-analyzer 5.13.0

Node Version

v24.11.0

Java Version

openjdk 17.0.15 2025-04-15 OpenJDK Runtime Environment Temurin-17.0.15+6 (build 17.0.15+6) OpenJDK 64-Bit Server VM Temurin-17.0.15+6 (build 17.0.15+6, mixed mode, sharing)

Python Version

No response

Additional Context (Screenshots, Files, etc)

No response

Workaround

No response

Urgency

Moderate

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions