Extension does not properly start when no CodeQL CLI is found
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
- 38/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
- devtools
Hướng nghiên cứu
Bắt đầu với luồng khởi động của extension, cách xử lý đường dẫn đến tệp thực thi của CodeQL CLI và đường dẫn kiểm tra cập nhật được mô tả trong phần tái hiện. Tái hiện với một đường dẫn CLI không hợp lệ và khi thư mục tải xuống đã bị xóa, sau đó kiểm tra log và hành vi của lệnh “CodeQL: Quick query”. Được xem là hoàn tất khi quá trình khởi động báo cáo CLI bị thiếu, tôn trọng đường dẫn đã cấu hình và thao tác cài đặt hoạt động mà không yêu cầu thay đổi cấu hình.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
It looks like when no CodeQL CLI is found on start up the extension does not start properly. This is noticable as:
- No "CodeQL" / "CodeQL CLI v ..." is shown in the bottom right corner
- CodeQL CLI is not downloaded automatically? See #900
- Once an extension config change is made, the extension seems to start properly, downloading CodeQL CLI; even if the config change was specifying a custom CodeQL CLI executable path
Edit: Might only occur when update check was performed recently and the following was logged:
Didn't perform CodeQL CLI update check since a check was already performed within the previous 86400 seconds.
Version
Extension:
CodeQL extension version: 1.5.1
CodeQL CLI version: 2.5.7
Platform: win32 x64
VSCode:
Version: 1.57.1 (user setup)
Commit: 507ce72a4466fbb27b715c3722558bb15afa9f48
Date: 2021-06-17T13:28:07.755Z
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: 8.9.255.25-electron.0
OS: Windows_NT x64 10.0.19041
To reproduce
Prerequisites:
Extension is already installed and the default CodeQL CLI has been downloaded by the extension already.
- Open the CodeQL extension settings (
@ext:github.vscode-codeql) - Change "CodeQL > CLI: Executable Path" to an invalid path
- Restart VSCode
- Trigger loading of extensions, e.g. by clicking on CodeQL icon on the left sidebar
❌ Notice how neither an error dialog is shown, nor does the "CodeQL" info text in the bottom right corner appear.
The logs show that the extension failed finding the CodeQL CLI.
ℹ️ Only in case you had not downloaded CodeQL CLI yet and the executable path is empty it shows the error "The CodeQL CLI could not be found." - Run an extension command such as "CodeQL: Quick query"; on the error message click "Install CodeQL CLI"
❌ Nothing happens - Stop VSCode
- Open the CodeQL CLI download folder; on Windows
%appdata%\Code\User\globalStorage\github.vscode-codeql - Delete or rename the distribution folder
- Start VSCode again
- Open the CodeQL extension settings (
@ext:github.vscode-codeql) - Change "CodeQL > CLI: Executable Path" to any non-empty path
❌ Instead of checking whether the CodeQL CLI exists at the specified path, the extension starts downloading the default CodeQL CLI
Expected behavior
The extension should properly start even without CodeQL CLI; all the incorrect behavior described above (marked with ❌) should not happen.
- Ngôn ngữ chính
- TypeScript
- Star
- 539
- Fork
- 240
- Merge trung bình
- 2 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 37
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/vscode-codeql
-
bug VSCode
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/vscode-codeql#4471 · 1 bình luận ·
-
bug enhancement VSCode
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/vscode-codeql#592 · 2 bình luận ·
-
enhancement VSCode
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
github/vscode-codeql#4432 · 1 bình luận ·
-
bug VSCode
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
github/vscode-codeql#4356 ·
-
bug VSCode
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 64/100
github/vscode-codeql#4339 · 1 bình luận ·
Tất cả issue của github/vscode-codeql
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/inspector#2458 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
carbon-design-system/ibm-products#9907 ·