New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[core] Suppress output of PlistBuddy when disabling "KeyboardContinuousPathEnabled" #16123
[core] Suppress output of PlistBuddy when disabling "KeyboardContinuousPathEnabled" #16123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you be able to add some more in the description of this PR on the need for it? Was the output too verbose? I don't remember what happens 🙃
And maybe we could change to using print: false
on backticks
way to all hide output? Or is it helpful to see the command that is being executed? print: false
would hide both the command and the output.
@@ -223,7 +223,7 @@ def disable_slide_to_type | |||
plist_buddy_cmd = "-c \"Add :KeyboardContinuousPathEnabled bool false\"" | |||
plist_path = File.expand_path("~/Library/Developer/CoreSimulator/Devices/#{self.udid}/data/Library/Preferences/com.apple.keyboard.ContinuousPath.plist") | |||
|
|||
Helper.backticks("#{plist_buddy} #{plist_buddy_cmd} #{plist_path}") | |||
Helper.backticks("#{plist_buddy} #{plist_buddy_cmd} #{plist_path} >/dev/null 2>&1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Helper.backticks("#{plist_buddy} #{plist_buddy_cmd} #{plist_path} >/dev/null 2>&1") | |
Helper.backticks("#{plist_buddy} #{plist_buddy_cmd} #{plist_path}", print: false) |
This should also work if you want to try this 😊 ☝️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, after trying this, because the output is an error it is still printed 😠
Updated description with some context. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for the contribution ❤️ Really appreciate it!
Hey @robnadin 👋 Thank you for your contribution to fastlane and congrats on getting this pull request merged 🎉 Please let us know if this change requires an immediate release by adding a comment here 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Congratulations! 🎉 This was released as part of fastlane 2.144.0 🚀
Checklist
bundle exec rspec
from the root directory to see all new and existing tests passbundle exec rubocop -a
to ensure the code style is validMotivation and Context
Suppress the error output from PlistBuddy when the
KeyboardContinuousPathEnabled
key already exists in the simulator's preferences. On some CI systems this manifests as an error in the build log:Description
Testing Steps