forcedotcom / forcedotcom/code-analyzer
[BUG][vscode-extension] Code Analyzer can't find SF CLI
- 主要言語
- TypeScript
- スター
- 240
- フォーク
- 52
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 5
説明
### 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)
### 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
コントリビューションガイド
調査の方向性
まず、記載されている手順で問題を再現し、通常起動した VS Code とターミナルから起動した VS Code を比較します。次に、拡張機能がインストール済みの `sf` CLI をどのように検出するかを調査し、影響を受ける macOS のセットアップで、CLI がインストールされている場合に CLI が見つからないという誤ったエラーが発生せずに検出されることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript, vscode
- 領域
- cli, devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100