Skip to content

Error Type cyclical extensions cause the text editor to lock up #2455

@RyanMcilnay

Description

@RyanMcilnay

Summary

Cyclic extensions between error types cause the text editor to lock up occasionally.

Information that might help find the issue:
I have noticed in the small example model that is pasted below, if both the Cyclic_Error_Types::a and ErrorLibrary::AboveRange properties of the in propagation are removed, the editor does not lock up.

Expected and Current Behavior

Steps to Reproduce

  1. Copy and paste the model below into the text editor.
  2. Uncomment line 19: b: type extends a;
package Cyclic_Error_Types
public
system sys
	features
			i: in data port;
	end sys;

	system implementation sys.impl
		annex EMV2 {**
			error propagations
				i: not in propagation {Cyclic_Error_Types::a, ErrorLibrary::AboveRange};
			end propagations;
		**};
	end sys.impl;

	annex EMV2 {**
		error types
			a: type extends b;   
			--b: type extends a;
		end types;
	**};
end Cyclic_Error_Types;

Environment

  • OSATE Version: 2.8.0
  • Operating System: Windows 10

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions