Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#1,893 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript, vscode
Lĩnh vực
cli, devtools

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện sự cố theo các bước được liệt kê và so sánh VS Code được khởi chạy bình thường với VS Code được khởi chạy từ một terminal. Điều tra cách extension phát hiện CLI sf đã cài đặt, sau đó xác minh rằng CLI đã cài đặt được tìm thấy trên thiết lập macOS bị ảnh hưởng mà không xuất hiện lỗi giả cho rằng CLI bị thiếu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

BUG P2
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 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 steps. Do not use homebrew, or install SF with the assistance of sudo.

Urgency

Moderate

Ngôn ngữ chính
TypeScript
Star
241
Fork
51
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của forcedotcom/code-analyzer

Tất cả issue của forcedotcom/code-analyzer

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.