[Bug] Error on startup: "Failed to parse /models response from CAPI"

Offen
#511 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
54/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
java

Rechercherichtung

Start by locating the code that handles the Copilot Language Server's /models response and compare its accepted capability types with the reported value decisions at /data/18/capabilities/type. Check related parsing tests and reproduce the startup log if possible. Done means the response is handled without this parse error and the existing model parsing tests pass; the report says no functionality loss is apparent.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug

Environment

  • OS: RHEL 9.6
  • Eclipse Version: 4.38, 4.42
  • Plugin Version: 0.21.0.202610121610_nightly, 0.21.0.202611041610_nightly

Describe the bug

Since some time (2 -3 days?) I see error reported on Eclipse startup in the log (see stack below).
Except the error entry, I don't see any functionality lost, but of course there could be something I didn't noticed.

eclipse.buildId=4.38.8.v20260910-1358
java.version=25
java.vendor=Eclipse Adoptium
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US

org.eclipse.lsp4e
Error
Thu Nov 05 09:13:28 CET 2026
[LS:GitHub Copilot Language Server][Error]	[default] Failed to parse /models response from CAPI: AssertError: Expected union value
    at AssertValue (/snapshot/copilot-language-server-internal/dist/main.js:1755:1717)
    at Assert (/snapshot/copilot-language-server-internal/dist/main.js:1755:1796)
    at /snapshot/copilot-language-server-internal/dist/main.js:1755:28462
    at /snapshot/copilot-language-server-internal/dist/main.js:1755:29070
    at Array.reduce (<anonymous>)
    at ParseValue (/snapshot/copilot-language-server-internal/dist/main.js:1755:28967)
    at Object.Parse (/snapshot/copilot-language-server-internal/dist/main.js:1755:29317)
    at t.parseModelsResponse (/snapshot/copilot-language-server-internal/dist/main.js:1755:30267)
    at t.fetchImpl (/snapshot/copilot-language-server-internal/dist/main.js:1755:30882)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5) {
  error: {
    type: 62,
    schema: { anyOf: [Array], [Symbol(TypeBox.Kind)]: 'Union' },
    path: '/data/18/capabilities/type',
    value: 'decisions',
    message: 'Expected union value',
    errors: [
      [ValueErrorIterator],
      [ValueErrorIterator],
      [ValueErrorIterator]
    ]
  }
}
Vorherrschende Sprache
Java
Sterne
129
Forks
70
Ø Merge
3 T. 2 Std.
Gemergte PRs (30 T.)
15

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 microsoft/copilot-for-eclipse

Alle Issues in microsoft/copilot-for-eclipse

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

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