`process.execArgv` does not include `--watch` or `--watch-path` options or their values on Windows
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 122k
- フォーク
- 37.3k
- 平均マージ
- 4日 2時間
- マージ済み PR(30日)
- 283
説明
Version
v24.11.0
Platform
Microsoft Windows NT 10.0.19045.0 x64
Subsystem
process
What steps will reproduce the bug?
- Create a
build.jsfile:
/** @file build.js */
import { execArgv } from "node:process";
console.warn(execArgv);
-
Create an empty file named template.html (content does not matter).
-
Run the following command:
(node --watch-path=template.html build.js & node --watch-path template.html build.js & node --watch build.js) > /dev/null
How often does it reproduce? Is there a required condition?
Always reproducible when --watch or --watch-path options are specified on the node command line.
What is the expected behavior? Why is that the expected behavior?
Expected output:
[ '--watch-path=template.html' ]
[ '--watch-path', 'template.html' ]
[ '--watch' ]
According to Node.js documentation, process.execArgv should contain the Node options passed before the script name.
What do you see instead?
[]
[]
[]
Additional information
Bash is installed on my Windows system. I used it in the reproduction steps because it makes it easier to chain blocking commands and run them in the background compared to PowerShell or Command Prompt.
Press Ctrl+C to terminate all background processes at once.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず Windows の再現コマンドを実行し、スクリプト名の前にある --watch および --watch-path オプションを process.execArgv がどのように扱うかを確認します。期待される出力に示されているとおり、両方のオプション形式とその値が process.execArgv に現れ、かつ提示された 3 つのコマンドの動作が維持されれば、修正は完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js
- 領域
- operating-systems
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100