-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
#374: ensure compile verbose pref is included on upload #1237
#374: ensure compile verbose pref is included on upload #1237
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.
This fixes #374 for me.
Thanks Dave!
I don't mind changing it to this, I favoured the separation of compile and upload options to be more explicit, and maybe make things easier in case we need to pass additional compile specific options into the upload op in the future. What do you think @kittaakos? |
I do not want to introduce additional args in the service calls for a bug fix. First, the JS way is to provide one option, not multiple ones. Second, if the second arg is partial, a dev can specify additional options that are not used, only the coreService.upload({ board: { fqbn: 'a' }, verbose: true }, { board: { fqbn: 'b' }, verbose: false }); |
I appreciate that making a service call, usually you'd only expect one options object, but my thinking was: the No problem though, if the priority is to maintain the APIs' style + if you see no value in separating it out let's go for your suggested approach. |
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
@kittaakos what do you mean here by "using a programmer"? better verbose typings also works when |
I verified the build, and it worked as expected. 👍 @fstasi, could you please help with the review? Thank you! |
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.
lgtm
Motivation
Verbose output preferences reported as incorrect during upload actions.
Change description
Ensure compile "verbose" preference is considered when performing compile step prior to upload.
Other information
Upload "verbose" preference was being used for both compile and upload steps of the "upload operation".
Reviewer checklist