You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's how MARelationDescription >> reference is implemented:
MARelationDescription >> reference [
"The reference within a ==*MARelationDescription*== is calculated automatically from all the classes of the receiver, if set to ==nil==. By setting the reference to a ==*MAContainer*== instance it is possible to customize the reference description."
^ super reference ifNil: [ self commonClass magritteTemplate magritteDescription ]
]
The trouble is that super referenceis never nil, because it has its own ifNil generator:
Therefore, commonClass-based generator is actually never called.
This ticket is in progress. Things to describe: unintuitive defaultReferences and mistake (well, I assume it's a mistake) in managing the commonClass if there are no classes. A latter, I believe, forced the author to add extra unneeded magritteTemplate into...MAContainer, I believe, but need to re-check.
The text was updated successfully, but these errors were encountered:
Assargadon
changed the title
#reference auto-generation sems to be corrupted [incomplete issue, in progress]
#reference auto-generation seems to be corrupted [incomplete issue, in progress]
Sep 8, 2023
Assargadon
added a commit
to Assargadon/magritte-python
that referenced
this issue
Sep 8, 2023
I don't understand why `self.assertIsInstance(self.inst1.reference, MAStringDescription)`
Same for `self.assertIsInstance(self.inst1.commonClass(), MAPriorityContainer)`
It's a half-fix, because `reference is None` condition never met - supercalss always returns non-nill, see magritte-metamodel/magritte#334
To limit bug bankruptcy (see https://www.joelonsoftware.com/2012/07/09/software-inventory/) this issue has been automatically marked as stale because it has not had any activity in 6 months. If no further activity occurs, it might be closed. If this issue remains important to you, please comment to reactivate the issue. Thank you for your contributions.
stalebot
added
the
stale
Closed after 6 months to limit bug bankruptcy; can be reopened if still important
label
Dec 15, 2023
That's how
MARelationDescription >> reference
is implemented:The trouble is that
super reference
is never nil, because it has its own ifNil generator:Therefore,
commonClass
-based generator is actually never called.This ticket is in progress. Things to describe: unintuitive
defaultReference
s and mistake (well, I assume it's a mistake) in managing thecommonClass
if there are noclasses
. A latter, I believe, forced the author to add extra unneededmagritteTemplate
into...MAContainer, I believe, but need to re-check.The text was updated successfully, but these errors were encountered: