forcedotcom / forcedotcom/code-analyzer

[BUG][vscode-extension] Code Analyzer can't find SF CLI

Abierto
#1,893 1 comentario 0 reacciones 0 asignados Ver en GitHub
BUG P2
Lenguaje dominante
TypeScript
Estrellas
240
Forks
52
Merge medio
1 d 23 h
PR fusionados (30 d)
5

Descripción

### Bug Description

We have had multiple reports of users who have the Salesforce CLI installed receiving an error message informing them they do not have the CLI installed, such as: "To use the Salesforce Code Analyzer extension, first install Salesforce CLI."

This can occur for a few reasons, but the root cause is that `sf` is not appearing in the PATH of the running VS Code instance. This tends to affect mac users when you have installed outside of the [recommended](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli_macos) CLI steps. We are currently looking into a fix for this.

### Steps To Reproduce

1. Open the Code Analyzer VS Code Extension
2. See an error message that the CLI is not installed, preventing use.

### Expected Behavior

If I have the SF CLI installed, Code Analyzer should be able to find it

### Operating System

All

### Visual Studio Code Version

Latest

### Extension Version

1.10.1

### Salesforce CLI Version

2.104.6

### Code Analyzer CLI Plugin Version

5.4.0

### Additional Context (Screenshots, Files, etc)

Image

### Workaround

Open VS Code using the terminal to ensure the `sf` is located in the path of your VS Code application. Re-install the CLI using the [recommended](https://developer.salesforce.com/docs/atlas.en-us.sfdx_setup.meta/sfdx_setup/sfdx_setup_install_cli.htm#sfdx_setup_install_cli_macos) steps. Do not use homebrew, or install SF with the assistance of `sudo`.

### Urgency

Moderate

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza reproduciendo el problema mediante los pasos indicados y compara VS Code iniciado normalmente con VS Code iniciado desde un terminal. Investiga cómo la extensión detecta la CLI `sf` instalada y, después, verifica que una CLI instalada se encuentre en la configuración de macOS afectada sin mostrar el error falso de que falta la CLI.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript, vscode
Área
cli, devtools
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.