Skip to content
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

csolution run creates all contexts, even when just one context is selected #1860

Open
ReinhardKeil opened this issue Nov 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ReinhardKeil
Copy link
Collaborator

ReinhardKeil commented Nov 20, 2024

Describe the bug

The csolution run command creates all contexts, even when just one context is selected. This may create unexpected errors that are hard to understand.

To Reproduce

  • Use this example: Network.zip
  • Ensure that the mbedTLS pack is not installed and execute:
  • Execute:
>  csolution run c:\Test\Nov20\Network\Network.csolution.yml -g CubeMX -c BSD_Client.Debug+STM32F746NGHx
error csolution: no component was found with identifier 'Security:mbed TLS'
C:/Test/Nov20/Network/HTTPS_Server/HTTPS_Server.cproject.yml - warning csolution: dependency validation for context 'HTTPS_Server.Debug+STM32F746NGHx' failed:
MISSING Keil::Network&MDK:Service:Web Server Compact&[email protected]
  require Security:mbed [email protected]

Expected behavior

I propose that only the specified context is generated when using the run command.

Environment (please complete the following information):

  • Windows
  • CMSIS-Toolbox 2.6.1
@ReinhardKeil ReinhardKeil added the bug Something isn't working label Nov 20, 2024
@brondani
Copy link
Collaborator

Note that all contexts need to be processed in order to find siblings, in other words contexts sharing the same generator id, base-dir and cgen-file.
This is along the lines with what has been discussed in #1812 and ARM-software/vscode-cmsis-csolution#121.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants