[Bug] org.eclipse.lsp4e error: Failed to parse /models response from CAPI: AssertError: Expected union value
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 48/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- Active
- Stack technique
- java
- Domaine
- backend-api-design
Piste de recherche
Start by locating the code that requests and parses the Copilot /models response; the issue identifies capabilities.type at /data/15 as the failing value (decisions). Check the schema and related model parsing tests, if present. Done means the response parses without this error and the expected behavior is verified; the issue names no source files or test entry points.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Environment
- OS: Windows
- Eclipse Version: 2026-09 (4.41)
- Plugin Version: 0.21.0
Describe the bug
I see the following entry in the Error Log:
[LS:GitHub Copilot Language Server][Error] [default] Failed to parse /models response from CAPI: AssertError: Expected union value
at AssertValue (C:\snapshot\copilot-language-server-internal\dist\main.js:1766:1717)
at Assert (C:\snapshot\copilot-language-server-internal\dist\main.js:1766:1796)
at C:\snapshot\copilot-language-server-internal\dist\main.js:1766:28462
at C:\snapshot\copilot-language-server-internal\dist\main.js:1766:29070
at Array.reduce (<anonymous>)
at ParseValue (C:\snapshot\copilot-language-server-internal\dist\main.js:1766:28967)
at Object.Parse (C:\snapshot\copilot-language-server-internal\dist\main.js:1766:29317)
at t.parseModelsResponse (C:\snapshot\copilot-language-server-internal\dist\main.js:1766:30267)
at t.fetchImpl (C:\snapshot\copilot-language-server-internal\dist\main.js:1766:30882)
at process.processTicksAndRejections (node:internal/process/task_queues:103:5) {
error: {
type: 62,
schema: { anyOf: [Array], [Symbol(TypeBox.Kind)]: 'Union' },
path: '/data/15/capabilities/type',
value: 'decisions',
message: 'Expected union value',
errors: [
[ValueErrorIterator],
[ValueErrorIterator],
[ValueErrorIterator]
]
}
}
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
No error should be present in the Error log
Screenshots
Additional context
This error comes from the GitHub Copilot Language Server.
What happened:
• The language server requested the list of available models from the Copilot API (/models).
• It checks the response against a strict schema.
• The entry at /data/15 (the 16th model in the list) has capabilities.type = 'decisions'.
• The schema only allows a fixed set of values for capabilities.type (a union, probably chat, completion, embeddings and similar).
• 'decisions' is not in that set, so the check fails with Expected union value.
Why it happens The server added a new kind of model that your installed Copilot plugin version doesn't know about yet. The Copilot Eclipse plugin is older than the API.
- Langage dominant
- Java
- Étoiles
- 128
- Forks
- 70
- Merge moyen
- 5 j 20 h
- PR mergées (30 j)
- 3
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de microsoft/copilot-for-eclipse
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
microsoft/copilot-for-eclipse#522 ·
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
microsoft/copilot-for-eclipse#519 · 1 commentaire ·
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
microsoft/copilot-for-eclipse#518 ·
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 52/100
microsoft/copilot-for-eclipse#517 ·
-
enhancement
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
microsoft/copilot-for-eclipse#512 ·
Toutes les issues de microsoft/copilot-for-eclipse
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
-
enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
citrusframework/citrus#2044 ·
Les mainteneurs répondent en général sous 1 jour
-
[bug]打火石不能被放在厨具架上Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 63/100
KaleidoscopeMods/KaleidoscopeCookery#237 · 1 commentaire ·
-
documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
molgenis/molgenis-emx2#7059 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
quarkiverse/quarkus-flow#1169 ·
Les mainteneurs répondent en général sous 1 jour