Find QEMU on PATH too

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
electron, react, typescript
領域
desktop

調査の方向性

findQemu(src/main/paths.ts)から始めてください。ここではデータフォルダと C:\Program Files\qemu を確認しています。その2つの後に PATH の走査を追加し、process.env.PATH を ; で分割して空のエントリを読み飛ばし、qemu-system-x86_64.exe を探してください。tests/ の単体テストが一時フォルダを偽の PATH として使えるように、環境を引数として渡してください。パターンとしては tests/config.test.ts を参考にしてください。完了条件は、npm test でテストが通ること、npm run typecheck にエラーがないこと、そして README と wiki に PATH が機能することが記載されていることです。

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

説明

enhancement first issue

findQemu in src/main/paths.ts only checks VMs\qemu and C:\Program Files\qemu. People who install QEMU with scoop, winget to a custom folder, or MSYS2 have it on PATH, and the app says QEMU isn't found.

Expected

If QEMU isn't in either of those places but qemu-system-x86_64.exe is on PATH, the app uses that one and the status bar shows its version.

Acceptance criteria

  • after the two current locations, findQemu walks process.env.PATH (split on ;, skip empty entries) for qemu-system-x86_64.exe
  • order stays: data folder, Program Files, then PATH
  • unit test in tests/ with a temp folder put on a fake PATH (pass the env in, don't change the real one)
  • README Requirements line and the wiki Installing page say PATH works

Files

  • src/main/paths.ts (findQemu)
  • tests/config.test.ts is a good example of a small pure test

Getting set up

  1. Fork and clone, then npm install and npx install-electron --no (full steps in CONTRIBUTING.md)
  2. npm run dev:web shows the UI in a browser with a fake backend, no QEMU needed. npm run dev runs the real app
  3. Before the PR: npm run typecheck and npm test

Comment here if you want to take it, so nobody doubles up. Ask anything in this issue and I will answer here, usually within a few days.

主要言語
TypeScript
スター
3
フォーク
0
平均マージ
2分
マージ済み PR(30日)
35

環境構築

はじめの一歩

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

A21-devs/Virtual-Machine-Manager のほかの issue

A21-devs/Virtual-Machine-Manager の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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