[Bug] org.eclipse.lsp4e error: Failed to parse /models response from CAPI: AssertError: Expected union value
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- java
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Java
- スター
- 128
- フォーク
- 70
- 平均マージ
- 5日 20時間
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/copilot-for-eclipse のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
microsoft/copilot-for-eclipse#522 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
microsoft/copilot-for-eclipse#519 · コメント 1 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
microsoft/copilot-for-eclipse#518 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
microsoft/copilot-for-eclipse#517 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
microsoft/copilot-for-eclipse#512 ·
microsoft/copilot-for-eclipse の issue をすべて見る
似ている issue
-
needs-umair step-4
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Umairishuman/BuildScan3D#24 ·
-
👀 example 📱 iOS
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
hyochan/react-native-nitro-sound#871 ·
メンテナーはふだん 2 日以内に返信
-
JPA security login throws when the stored password or roles string is null対応中かも @SebTardif が今日担当しました。 オープンarea/security env/windows
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
quarkusio/quarkus#58548 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
marchof/java-almanac#354 ·
-
bug posit-ai
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信