Improve CompileResponse#progress behavior #2016
Labels
topic: code
Related to content of the project itself
topic: gRPC
Related to the gRPC interface
type: imperfection
Perceived defect in any part of project
Milestone
Describe the problem
When I execute a gRPC
CompileRequest
, the progress starts twice andcompleted
is alwaysfalse
.To reproduce
my_sketch.ino
:Have the following request:
You get the following responses:
Notes:
data
buffer to have smaller JSON, the build path hash, and the install paths in the output.Expected behavior
progress#percent
should not reach100
twice. If it can, then they're multiple tasks. Please useTaskProgress#name
andTaskProgress#message
to distinguish.completed
istrue
.CompileResponse
properties are set or how the responses are ordered would be helpful. Or useoneof
for the response messages to formally define the API behavior. Thanks!Arduino CLI version
0.29.0 76251df
Operating system
macOS
Operating system version
11.6.5
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: