Closed DavidLesnjak closed 5 months ago
@DavidLesnjak, would you agree that this error message comes from cbridge? It looks like a define with value assignment is "breaking" the YAML parser in cbridge. Note that running cbuild works correctly.
It looks like cbridge
tries to parse the define as a string even when it can be a key/value pair.
https://github.com/Open-CMSIS-Pack/generator-bridge/blob/v0.9.5/internal/cbuild/cbuild.go#L89
FYI @bgn42 @thorstendb-ARM
Is there an existing issue for this?
Current Behavior
In CMSIS-Toolbox.2.4.0 command "csolution run -g " fails when a symbol with a value is defined under define section in cproject/clayer file.
Expected Behavior
Command "csolution run -g" should execute also when define with a value is used.
Steps To Reproduce
Create a csolution project
In cproject file add a define with a value Example:
Execute command:
csolution <solution>.csolution.yml run -g CubeMX -c <context>
Reported error:
error csolution: executing generator 'CubeMX' for context 'test.Debug+device' failed