Open ReinhardKeil opened 1 year ago
A discussion about the component dependencies output has been started as an enhancement in https://github.com/Open-CMSIS-Pack/devtools/issues/967 and it is still open, nothing has been agreed, so this should not be considered a bug.
A fundamental difference being introduced in the current issue is the expectation of presenting "possible selection" instead of the plain conditions. This requires further processing and implicitly assumes all "possible" packs are also loaded which goes against the current concept regarding pack loading in csolution.
Concerning the required dependency version it just reflects what is in the PDSC conditions and would be incomplete without it:
From pack Keil::MDK-Middleware@7.16.0
, Keil.MDK-Middleware.pdsc line 502-507:
<condition id="CMSIS Core">
<description>CMSIS Core for Cortex-M</description>
<require Tcompiler="ARMCC"/>
<require condition="Cortex-M Device"/>
<require Cclass="CMSIS" Cgroup="CORE" Cversion="5.0.1"/>
</condition>
Related to #967
Maybe a first improvement could be:
Instead of:
C:/Test/Network/Network/NetworkEx.cproject.yaml - warning csolution: dependency validation for context 'NetworkEx.Release+Device' failed:
SELECTABLE Keil::Network&MDK-Pro:Socket:TCP@7.18.0
accept Network&MDK-Pro:CORE
require CMSIS:CORE@5.0.1
require Network:Interface
This text:
C:/Test/Network/Network/NetworkEx.cproject.yaml - warning csolution: component dependency validation for context 'NetworkEx.Release+Device' failed:
component: Keil::Network&MDK-Pro:Socket:TCP@7.18.0 - SELECTABLE
accept Network&MDK-Pro:CORE
require CMSIS:CORE@5.0.1
require Network:Interface
Describe the problem The user output in case of missing components is confusing. The use case is: Create Network application with TCP service interface.
Current Output:
Expected (agreed) output:
Expected output without
# - pack: ARM::CMSIS@5.9.0
:To Reproduce A project that exemplifies this is: Network.zip
Steps to reproduce the behavior:
uncomment ARM:CMSIS@5.9.0 to see the alternative output.
Environment: