Unable to install anthropics/claude-plugins-official marketplace: Invalid marketplace.json: plugins.302.source: Invalid input
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 56/100
Hướng nghiên cứu
Start at the marketplace add command and find the validation for plugin entries and their source fields. Check the existing marketplace tests, then reproduce with the provided Xcode entry or marketplace; done means one malformed or unsupported plugin is skipped with a safe, useful warning while valid plugins still load. The issue does not name specific files or tests.
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 seems that copilot chokes on the xcode plugin, which makes sense. 😉
However, I think better behavior would be to emit a warning and just ignore plugins with malformed or unrecognized sources.
It would probably be a good idea to add tests against major plugin marketplaces so that similar issues can be detected quickly.
Entry 302 is:
{
"name": "xcode",
"displayName": "Xcode",
"description": "Work with Xcode projects from Claude Code: build, run, and test schemes, render SwiftUI previews, drive simulators and devices, read build logs and diagnostics, and search Apple developer documentation.",
"author": {
"name": "Apple Inc."
},
"category": "development",
"source": {
"source": "command",
"command": "xcrun agent plugin path --plugin-format claude",
"mode": "link"
},
"homepage": "https://developer.apple.com/xcode/"
},
Affected version
GitHub Copilot CLI 1.0.116
Steps to reproduce the behavior
Simply run
copilot plugin marketplace add anthropics/claude-plugins-official
Expected behavior
Instead of failing outright when a plugin entry has unexpected content, skip over / don't load that entry. Optionally, warn the user for each plugin that cannot be loaded, listing the name and what was wrong.
For example:
Warning: plugins.302.source: Invalid value. source should be one of {github|url|...}.
Ideally, the plugin name and the value (coerced to a string) would also be printed, JSON stringified on a single line (to avoid injecting line breaks into log messages).
Something like:
Warning: plugin "xcode": source "command": Invalid value. source should be one of {github|url|...}
Additional context
| OS Name | Microsoft Windows 11 Enterprise |
| Version | 10.0.26100 Build 26100 |
| System Type | x64-based PC |
| Terminal Emulator | Windows Terminal |
| Shell | PowerShell 7.7.0 |
- Ngôn ngữ chính
- Python
- Star
- 11.5k
- Fork
- 2k
- Merge trung bình
- 6 giờ 34 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc 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/copilot-cli
-
area:plugins
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
github/copilot-cli#5567 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncationĐang mởarea:tools
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/copilot-cli#5476 ·
-
triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 74/100
github/copilot-cli#5340 ·
Tất cả issue của github/copilot-cli
Issue tương tự
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Status: Triage Suggestion
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Suggestion]: NoParrotĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
collabnix/awesome-mcp-lists#515 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Look-ahead bias via resample('1min').interpolate(method='time') in CCIStrategy and ReinforcedQuickieĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
documentation good first issue
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày