Unable to install anthropics/claude-plugins-official marketplace: Invalid marketplace.json: plugins.302.source: Invalid input

Offen
#5,582 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
56/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
json, python
Bereich
cli, tooling

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

area:plugins
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
Vorherrschende Sprache
Python
Sterne
11.5k
Forks
2k
Ø Merge
6 Std. 34 Min.
Gemergte PRs (30 T.)
3

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus github/copilot-cli

Alle Issues in github/copilot-cli

Ähnliche Issues

Weitere Issues zu Python

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.