docs-updater should race against a timeout or else starting the language server hangs.
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
調査の方向性
theme-docs-updater の setup メソッドから始めて、latestRevision と download の呼び出しを調べます。Wi-Fi が利用できない状態で起動を再現し、ハングするのではなく、要求されたタイムアウト以内にディスク上のドキュメントを使って処理が続行されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
The VS Code extension hangs if you start it with Wifi down (happened to me during storms last week). It hangs because theme-docs-updater attempts to download latest.json from theme-liquid-docs and it doesn't timeout (or the timeout is long).
We should do something more along the lines of "wait at most 5s and otherwise go with what is on disk".
Something like this:
const timeout = (ms: number) => new Promise((_, reject) => setTimeout(reject, ms));
/**
* The setup method checks that the latest revision matches the one from
* Shopify/theme-liquid-docs. If there's a diff in revision, it means
* that the documentations that you have locally are out of date.
*
* The setup method then downloads the other files.
*/
setup = memo(async (): Promise<void> => {
if (!(await exists(root))) {
await fs.mkdir(root, { recursive: true });
}
const local = await this.latestRevision();
try {
await Promise.race([download('latest'), timeout(2000)]);
const remote = await this.latestRevision();
if (local !== remote) {
await Promise.all(Resources.map((resource) => download(resource)));
}
} catch (_) {
// we're offline...
}
});
- 主要言語
- TypeScript
- スター
- 245
- フォーク
- 108
- 平均マージ
- 2日 8時間
- マージ済み PR(30日)
- 24
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Shopify/theme-tools のほかの issue
-
ThemeCheck incorrectly reports error when `with` is used in snippet対応中かも @efegokdemir が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Shopify/theme-tools#1408 ·
メンテナーはふだん 2 日以内に返信
-
CdnPreconnect misses `href="https://cdn.shopify.com"` without a trailing path対応中かも @RaphaelFakhri が 33 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Shopify/theme-tools#1365 ·
メンテナーはふだん 2 日以内に返信
-
theme-graph CLI never calls getWebComponentMap, so custom-element references are never resolved対応中かも @reginaldalfret が 51 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Shopify/theme-tools#1291 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
JSONMissingBlock false positive for app block when section supports both @app and @theme再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Shopify/theme-tools#1144 · コメント 2 件 · リアクション 8 件 ·
メンテナーはふだん 2 日以内に返信
-
theme-language-server: creating or deleting a folder leaves stale readDirectory/stat cache対応中かも @efegokdemir が 14 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
Shopify/theme-tools#1386 ·
メンテナーはふだん 2 日以内に返信
Shopify/theme-tools の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
bug triage:in-progress
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
e2e-failure ready-to-code
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
redhat-developer/rhdh-plugin-export-overlays#4845 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
chore kaizen ui-rewrite
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
IBM/mcp-context-forge#7681 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
cloudflare/workers-sdk#17159 ·
メンテナーはふだん 1 日以内に返信