fix: omit port from upload request when not set #2090
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Omit the port object from the compile request so the CLI can correctly fall back to the
defaultupload port. This does not work when theportobject is empty. Onlynullis a valid port value in such a scenario.Change description
Previously, if the
portwas not set in IDE2, the compile request object was created with an empty port object ({}). IDE2 will create a compile request with the defaultnullportvalue if the port is not specified.This PR sets the
hardwareIdon the port object.Port#hardwareIdhas not been used in IDE2 since its introduction.Other information
I went through the steps from #2089, but I am not 100% sure I could follow them. I did the followings:
Failed uploading: no upload port providedmessage.2.1.0:2089_210_build.mp4
Build from this PR:
2089_pr_build.mp4
Closes #2089
Reviewer checklist