[Bug] org.eclipse.lsp4e error: Failed to parse /models response from CAPI: AssertError: Expected union value
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- backend-api-design
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Java
- Estrellas
- 128
- Forks
- 70
- Merge medio
- 5 d 20 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de microsoft/copilot-for-eclipse
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
microsoft/copilot-for-eclipse#522 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 30/100
microsoft/copilot-for-eclipse#519 · 1 comentario ·
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
microsoft/copilot-for-eclipse#518 ·
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
microsoft/copilot-for-eclipse#517 ·
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
microsoft/copilot-for-eclipse#512 ·
Todos los issues de microsoft/copilot-for-eclipse
Issues similares
-
needs-umair step-4
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Umairishuman/BuildScan3D#24 ·
-
👀 example 📱 iOS
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
hyochan/react-native-nitro-sound#871 ·
Los mantenedores suelen responder en 2 días
-
JPA security login throws when the stored password or roles string is nullPosiblemente ocupada @SebTardif la tomó hoy. Abiertoarea/security env/windows
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
quarkusio/quarkus#58548 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Feedback on page "JDK Releases"Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
marchof/java-almanac#354 ·
-
bug posit-ai
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día