[Bug] Plumesign, --udid never matches a device
まだ誰も着手していません。
評価
調査の方向性
バグは crates/plume_utils/src/device.rs の get_device_for_id にあります。.find(|d| ...) のクロージャが d.device_id を --udid の値と比較しています。まず --udid 引数がこの関数にどのように渡されるか、そしてデバイス構造体が UDID としてどの値を公開しているかを確認してください。実際の UDID で一致するデバイスが選択されること、また device_id を使う他の呼び出し元がこの変更の影響を受けないことを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Report
I realize this is a very niche issue but its relatively easy to fix, Ive experimented with using plumesign from scripts, the GUI is not affected by this bug as far as I can tell though.
Anyway the issue is that --udid compares the udid against device_id not udid inside get_device_for_id. device_id is not the same as udid it's just the number the connection itself gets usually just counting up for each reconnection.
Inside get_device_for_id, the value from --udid is compared against device_id instead of udid, so passing a real udid never finds the device.
I believe the issue is found at line 397 in crates/plume_utils/src/device.rs
.find(|d| d.device_id.to_string() == device_id).
I dont really know how to best fix it but it should be pretty simple to fix depending on the behavior you want.
I apologize if this is the expected behavior I just found it to be odd. Thank you for your time and your amazing project!
Contributor Checks
- I am willing to attempt to make a pull request to fix this bug
Additional Information
- Developer mode enabled
- Using paid developer account
- I will send an ipa of the app I'm having trouble installing if any
- I'm willing to provide crash logs or debugging information if needed
- 主要言語
- Rust
- スター
- 3.4k
- フォーク
- 224
- 平均マージ
- 34分
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
claration/impactor のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 72/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
-
[Bug] Unable to openオープンbug
難易度 3/5 半日 初心者へのやさしさ 35/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
claration/impactor の issue をすべて見る
似ている issue
-
claim
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Nixitov/Riptide-Native#946 ·
メンテナーはふだん 1 日以内に返信
-
area: ai-assistants documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
BetaBots-LLC/latticegate#17 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 94/100
storytold/craft-libs#5594 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
听歌识曲历史跳转后对应音源界面无法返回オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
LingyunStudio/RustMusic#16 ·