Skip to content

The warning squiggly line for "expected feature xxx to have classifier yyy" is placed under the wrong classifier #2580

@jjhudak

Description

@jjhudak

Summary
A bus access connection will generate a warning if the references classifier is missing a reference to a specific bus component.
Expected feature 'USB' to have classifier 'MissionSystemHardware::USB' The warning is correct but the accompaning yellow underline is not on the correct component.

Expected behavior
The correct bus access feature should be underlined.

Actual behavior
The incorrect bus access feature in the connection is underlined.

Steps To Reproduce
see model below

system implementation RaspberryPi3b.impl
	subcomponents
		Pi_cpu: processor ArmCortexA53;
		PiBus: bus PiBus;
		i2c: bus i2cBus;
		MyUSB: bus USB;
	connections
		c10: bus access i2c <-> Pi_cpu.i2c;
		c6: bus access Pi_cpu.USB <-> _MyUSB;_  -- warning: expected feature USB to have classifier MssionSystemHardware::USB.  the squiggly yellow line is under MyUSB, should be under pi_cpu.USB
		c7: bus access MyUSB <-> USB; -- this line produced the same warning with the incorrect component underlined

....
	end RaspberryPi3b.impl;

	processor ArmCortexA53
	features
		i2c: requires bus access i2cBus;
		USB: requires bus access;   this is the incomplete line...
                USB: requires bus access USB;  --this fixes the warning
end ArmCortexA53;

Screenshots
osate warning bug

Desktop (please complete the following information):

  • OSATE Version: 2.90
  • Operating System: Windows 10

Additional context
see associated feature request....

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions