[Bug] Plumesign, --udid never matches a device
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- Under an hour
- Newbie friendliness
- 80/100
Research direction
The bug is in get_device_for_id in crates/plume_utils/src/device.rs, where the .find(|d| ...) closure compares d.device_id against the --udid value. Start by checking how the --udid argument reaches that function and what the device struct exposes for its UDID. Done means passing a real UDID selects the matching device, and you confirm that other callers of device_id are not affected by the change.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Rust
- Stars
- 3.4k
- Forks
- 224
- Avg merge
- 34m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from claration/impactor
-
Difficulty 4/5 3-5 days Newbie friendliness 72/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 50/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 42/100
-
[Bug] Unable to openOpenbug
Difficulty 3/5 Half a day Newbie friendliness 35/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
All issues in claration/impactor
Similar issues
-
claim
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#946 ·
Maintainers usually reply within 1 day
-
area: ai-assistants documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
storytold/craft-libs#5594 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
听歌识曲历史跳转后对应音源界面无法返回Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
LingyunStudio/RustMusic#16 ·