Previously solita failed to properly propagate exit codes of the tool generating the IDL. This
led to developers not being aware of the issue as well as the CI checking for IDL changes not
alerting either since in those cases solita just kept the old IDL and generated code from it.
This has been fixed as follows:
non-zero exit codes of the handler tool, i.e. anchor are now propagated and solita will exit
with it to also return a non-zero exit code
if an Error: is encountered in the stderr output of the handler tool then solita will
color it red to draw attention.
the message alerting the user that something went wrong is also colored red
Sample Screenshot
Remaining Work
To further eliminate the possibility of the IDL generation failing without solita noticing I
will add an option to delete the existing IDL before solita runs. This option will be set to
true by default.
Summary
Previously solita failed to properly propagate exit codes of the tool generating the IDL. This led to developers not being aware of the issue as well as the CI checking for IDL changes not alerting either since in those cases solita just kept the old IDL and generated code from it.
This has been fixed as follows:
Error:
is encountered in thestderr
output of the handler tool then solita will color it red to draw attention.Sample Screenshot
Remaining Work
To further eliminate the possibility of the IDL generation failing without solita noticing I will add an option to delete the existing IDL before solita runs. This option will be set to
true
by default.