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

Copying and pasting of elements that have a source and/or destination cause exceptions #2411

Closed
RyanMcilnay opened this issue Aug 17, 2020 · 1 comment · Fixed by #2413
Closed

Comments

@RyanMcilnay
Copy link
Contributor

Summary

Copying elements from one container component to another such as mode transitions, connections, and flow specifications cause exceptions.

Expected and Current Behavior

Elements should be pasted into the destination component, instead, an exception is being thrown.

Steps to Reproduce

While viewing the package diagram:

  1. Right click connection "c" in sys.impl
  2. Select "Copy" from the context menu
  3. Right click on sc.impl
  4. Select "Paste" from the context menu
package CPBug
public
	system sys
	end sys;

	system implementation sys.impl
	subcomponents
		ss1: system sc.impl;
		ss2: system sc.impl;
	connections
		c: port ss2.o -> ss1.i;
end sys.impl;

	system sc
	features
		i: in data port;
		o: out data port;
end sc;

	system implementation sc.impl
end sc.impl;
end CPBug;

Environment

  • OSATE Version: 2.8.0
  • Operating System: Windows 10
@philip-alldredge
Copy link
Collaborator

This is caused by the recent refactoring. During it, we tightened the rules and checks regarding relative references. This is often being caused by transient or model errors.

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

Successfully merging a pull request may close this issue.

3 participants