Skip to content

Improve component selection diagnostic output #2543

Description

@edriouk

This issues requests additional improvements to changes introduced by

The following enhancements need to be implemented:
Output must:

  • be shorter: include only necessary information without duplicates
  • allow copy-paste action to easier add missing component to a project file.
    Therefore suggested component should include # short description from pdsc
  • clearly explain all type of diagnostics: missing, conflicting, incompatible and available
  • synchronized with RPC output: effectively the same messages should be displayed in terminal, Problems view and Components view

Examples:

  1. Unresolved dependencies
NetworkEx.cproject.yaml - warning csolution: dependency validation for context context 'NetworkEx.Release+Device' failed:
component: Keil::Network&MDK-Pro:Socket:TCP : Unresolved dependencies
  accept Network&MDK-Pro:CORE' : Select a component
    - component: Keil::Network&MDK-Pro # IPv4/IPv6 Networking Core for Cortex-M
  require Network:Interface : Select a component
    - component: Keil::Network&MDK-Pro:Interface:ETH
    - component: Keil::Network&MDK-Pro:Interface:PPP
    - component: Keil::Network&MDK-Pro:Interface:SLIP
  1. Conflicting exclusive components
Test/Validation/dependencies.csolution.yml - warning csolution: dependency validation for context 'conflict+CM0' failed:
API RteTest:ApiExclusive@1.0.0 : Conflict, remove all but one conflicting component
  - component ARM::RteTest:ApiExclusive:S1
  - component ARM::RteTest:ApiExclusive:S2
  1. Incompatible components
Test/Validation/dependencies.csolution.yml - warning csolution: dependency validation for context 'incompatible+CM0' failed:
component ARM::RteTest:Check:Incompatible@0.9.9 : Incompatible dependency
  deny RteTest:Dependency:Incompatible_component : Remove incompatible component
    - component ARM::RteTest:Dependency:Incompatible_component
  1. Incompatible component variant
Test/Validation/dependencies.csolution.yml - warning csolution: dependency validation for context 'incompatible-variant+CM0' failed:
component ARM::RteTest:Check:IncompatibleVariant@0.9.9 : Incompatible dependency
  require RteTest:Dependency:Variant&Compatible : Remove incompatible variant or replace with a compatible one
    - component ARM::RteTest:Dependency:Variant
  1. Missing component
Test/Validation/dependencies.csolution.yml - warning csolution: dependency validation for context 'missing+CM0' failed:
component ARM::RteTest:Check:Missing@0.9.9 : Unresolved dependencies
  require RteTest:Dependency:Missing : Install missing component

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

csolutioncsolution management toolenhancementNew feature or request

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions