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

Undefined variable in "replace" branch of Player Piano #25

Open
LostIndeterminateParticle opened this issue Apr 11, 2023 · 0 comments
Open

Comments

@LostIndeterminateParticle
Copy link
Contributor

The following line is in the "replace" branch of Player Piano:
type_to_get = com.nomagic.magicdraw.uml.ClassifierFinder.findClassifierOrDataType(live_project, 'String', [], sysml_package);

The variable sysml_package isn't defined anywhere. Based on the context, variable name, and method documentation, sysml_package should be set to the element that is the SysML profile package.

Looking at the findClassifierOrDataType() method documentation from 19.0 SP4 and later versions It doesn't look like this method has changed since at least that version. So any fix is probably independent of version changes

I'm not super familiar with what Player Piano is trying to do in this section, and I haven't yet encountered an error caused by this line. It would be worth having someone more familiar with RMT come up with a test case that actually makes use of this part of the script.

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

No branches or pull requests

1 participant