redhat-developer / redhat-developer/vscode-java
npm run watch-server fails on Windows
オープン
まだ誰も着手していません。
debt
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
[provide a description of the issue]
Environment
- Operating System: Windows
- JDK version: 11
- Visual Studio Code version: 1.56.2
- Java extension version: v0.79.2
Steps To Reproduce
- git clone https://github.com/redhat-developer/vscode-java.git
- cd vscode-java
- npm run watch-server
I get result:
> java@0.80.0 watch-server
> ./node_modules/.bin/gulp watch_server
'.' is not recognized as an internal or external command,
operable program or batch file.
Running a full path command like
cmd /c c:/dev/temp/vscode-java/node_modules/.bin/gulp dev_server
gives:
C:\Dev\temp\vscode-java>cmd /c c:/dev/temp/vscode-java/node_modules/.bin/gulp dev_server
[18:28:27] Using gulpfile C:\Dev\temp\vscode-java\gulpfile.js
[18:28:28] Starting 'dev_server'...
executing mvnw.cmd -Pserver-distro,fast -o clean package -Denvironment.os=win32 -Denvironment.ws=win32 -Denvironment.arch=x86_64
[18:28:28] 'dev_server' errored after 7.28 ms
[18:28:28] Error: spawnSync C:\WINDOWS\system32\cmd.exe ENOENT
at Object.spawnSync (internal/child_process.js:1070:20)
at spawnSync (child_process.js:597:24)
at Object.execSync (child_process.js:642:15)
at C:\Dev\temp\vscode-java\gulpfile.js:41:5
at dev_server (C:\Dev\temp\vscode-java\node_modules\undertaker\lib\set-task.js:13:15)
at bound (domain.js:429:14)
at runBound (domain.js:442:12)
at asyncRunner (C:\Dev\temp\vscode-java\node_modules\async-done\index.js:55:18)
at processTicksAndRejections (internal/process/task_queues.js:79:11)
I know I can do it all manually, just to let you know
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず Windows で npm run watch-server を実行し、コマンドの呼び出しに失敗している gulpfile.js の watch_server タスクを調べます。エラー出力に示されている Windows のコマンド処理を追跡し、報告されている実行可能ファイルまたは cmd.exe のエラーなしに watch-server ワークフローが正常に完了することを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, typescript, vscode
- 領域
- build-system, developer-experience
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100