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
#mooseDescription does not work for some entities (error "not found in FMMetaModel"):
FamixFortranAttribute mooseDescription.
FamixFortranUserDefinedType mooseDescription.
FamixF03DerivedType mooseDescription.
FamixF03Module mooseDescription.
FamixEsopeSegment mooseDescription.
FamixEsopeCommand mooseDescription.
Problem seems to arise when an entity inherits from another one of an other mm.
For example in FamixFortran03Generator: module --|> programUnit where programUnit comes from FamixF77.
As a result FamixF03Module inherits from FamixF77ProgramUnit and asking for #mooseDescription will end up in FamixF77Model
On the other hand, in FamixFortran03Generator: method only has: method --|> #TMethod. and FamixF03Method inherits from FamixF03Model which is in the same meta-model.
So it seems to me that the definition of #mooseDescription needs to be corrected ...
The text was updated successfully, but these errors were encountered:
It is defined in Famix...Entity by default, but since some entity of a mm inherit from entities of another (sub)mm, they inherit the wrong definition of #metamodel
Still ensure what a good solution would be.
Maybe hardcode the right mm in all entities and not only Famix...Entity ?
Incidently, the problem is the same if we deal with a class (FamixF03Module metamodel) or with an instance but without associated model (FamixF03Module new metamodel).
If an instance is inside a model (FamixF03Model new newModule metamodel) it works.
I came to this problem through MiQueryBrowser that uses MooseGroups and ask for their #details which looks for the #mooseDescription of a class: self entities commonSuperclass mooseDescription
load https://github.com/moosetechnology/Esope
It defines 4 metamodels with submetamodels:
FamixF77 (FamixFortran77Generator)
FamixFortran (FamixFortranUDTGenerator) -> submetamodel: FamixF77
FamixF03 (FamixFortran03Generator) -> submetamodels: FamixF77, FamixFortran
FamixEsope (FamixEsopeGenerator) -> submetamodels: FamixF77, FamixFortran
#mooseDescription
works for some entities:#mooseDescription
does not work for some entities (error "not found in FMMetaModel"):FamixFortranAttribute mooseDescription.
FamixFortranUserDefinedType mooseDescription.
FamixF03DerivedType mooseDescription.
FamixF03Module mooseDescription.
FamixEsopeSegment mooseDescription.
FamixEsopeCommand mooseDescription.
Problem seems to arise when an entity inherits from another one of an other mm.
For example in FamixFortran03Generator:
module --|> programUnit
where programUnit comes from FamixF77.As a result FamixF03Module inherits from FamixF77ProgramUnit and asking for #mooseDescription will end up in FamixF77Model
On the other hand, in FamixFortran03Generator: method only has:
method --|> #TMethod.
and FamixF03Method inherits from FamixF03Model which is in the same meta-model.So it seems to me that the definition of #mooseDescription needs to be corrected ...
The text was updated successfully, but these errors were encountered: