Scope fails on bundled Convex lexicon: version must be a number

オープン 初心者向け
#181 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

dist/readings/scope/build.jsから始め、pluginLexiconLayersがプラグインの断片をreadLexiconとparseLexiconに渡す流れを追います。バンドルされたConvexのレキシコンを調べ、versionフィールドが欠けていることを確認します。提供されたコマンドpnpm exec coherence scope --snapshot --no-interfaces --out /tmp/scope.htmlで再現します。スナップショット生成とライブの/api/stateが、バンドルされたプラグインのレキシコン形式を受け入れれば完了です。

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

説明

Coherence 1.13.0 Scope cannot load when the bundled Convex plugin is enabled. Both live /api/state and snapshot generation fail.

Minimal configuration:

{"name":"repro","language":"typescript","plugins":{"convex":"bundled"}}

After installing @posthog/[email protected], run pnpm exec coherence scope --snapshot --no-interfaces --out /tmp/scope.html. It exits 70 with dist/bundled/convex/lexicon.json: version must be a number. Live Scope serves the shell but /api/state returns HTTP 500.

dist/readings/scope/build.js pluginLexiconLayers passes plugin fragments through readLexicon and Scope's full parseLexicon, which requires a numeric version. The bundled Convex fragment has concepts but no version. The lifecycle plugin parser accepts that fragment.

Adding "version": 1 to the bundled Convex lexicon makes snapshot generation and live Scope load successfully without changing its concepts. This is a one-line pnpm package patch locally. The bundled Quint fragment appears to have the same shape mismatch, but I have not exercised Quint.

Expected: Scope accepts the same plugin lexicon format as the lifecycle readers.

主要言語
TypeScript
スター
21
フォーク
6
平均マージ
8時間 31分
マージ済み PR(30日)
55

環境構築

はじめの一歩

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

PostHog/coherence のほかの issue

PostHog/coherence の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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