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

オープン
#511 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
54/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
java

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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]
    ]
  }
}
主要言語
Java
スター
129
フォーク
70
平均マージ
3日 2時間
マージ済み PR(30日)
15

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/copilot-for-eclipse のほかの issue

microsoft/copilot-for-eclipse の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。