Windows: hub-client pruneEmbedDist.test.ts fails to load with a SyntaxError
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- git, javascript, node.js, typescript
調査の方向性
失敗しているインポートは hub-client/src/pandoc/pruneEmbedDist.test.ts にあり、これは scripts/prune-embed-dist.mjs を読み込みます。git ls-files --eol でファイルの改行コードを確認し、先頭行であるシェバンが \r で終わっているかを調べてください。スクリプトを LF に変換してから Windows 上で hub-client のテストを再実行し、原因を確認します。テストファイルが windows-latest で読み込めれば完了です。必要に応じて scripts/*.mjs に対する eol=lf のルールを .gitattributes に追加してもかまいません。
索引モデルが issue の本文から書いたものです。
説明
src/pandoc/pruneEmbedDist.test.ts is the only hub-client test file that fails on windows-latest. It fails at import, before any test runs:
https://github.com/quarto-dev/q2/actions/runs/45608700263
FAIL src/pandoc/pruneEmbedDist.test.ts [ src/pandoc/pruneEmbedDist.test.ts ]
SyntaxError: Invalid or unexpected token
The test imports scripts/prune-embed-dist.mjs:
That file starts with a shebang, and on my Windows checkout it has CRLF (#!/usr/bin/env node\r\n, git ls-files --eol reports i/lf w/crlf). No .gitattributes rule covers scripts/*.mjs. I think the \r after the hashbang is what breaks the load, but I haven't confirmed it by converting the file to LF.
We could pin scripts/*.mjs to eol=lf, since the shebang is executed verbatim.
Related: #1275.
- 主要言語
- Rust
- スター
- 316
- フォーク
- 23
- 平均マージ
- 8時間 19分
- マージ済み PR(30日)
- 244
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
quarto-dev/q2 のほかの issue
-
bug testing windows
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
quarto-dev/q2#1347 ·
メンテナーはふだん 1 日以内に返信
-
bug testing windows
難易度 1/5 1〜3時間 初心者へのやさしさ 78/100
quarto-dev/q2#1346 ·
メンテナーはふだん 1 日以内に返信
-
bug testing windows
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
quarto-dev/q2#1343 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
quarto-dev/q2#1335 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
quarto-dev/q2#1324 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
renaming a provider to a taken name fails with a raw sql error対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンarea:storage kind:bug priority:p3 ready
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
XLSX files cannot be imported into Adobe InDesign due to missing AppVersion in extended propertiesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
qingjian-team/qingjian#1181 ·
メンテナーはふだん 2 日以内に返信