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
After generating an MSE file with FamixMaker, the "generated" code to load the model is like this:
"Load the moose Model with some error checking"
| mseFileRefmseStreammooseModel |
mseFileRef :='tmp/HFDP.mse' asFileReference. "Generated by FamixMaker"
mseStream := mseFileRef readStream.
mseStream
ifNotNil: [
mooseModel :=MooseModelimportFromMSEStream: mseStream.
mooseModel rootFolder:'tmp/MooseEasyRepos/bethrobson__Head-First-Design-Patterns'.
mooseModel install. "So it appears in the Panel"
mseStream close. ]
ifNil: [ selferror:'Could not load MSE file into Moose: ' , mseFileRef asString ].
However, with the latest VerveineJ (using FamixNG) when trying to load the MSE file, there are errors such as: Element 'Famix-Java-Entities.IndexedFileAnchor' not found.
This also happens when using the Moose Panel "Import model from MSE file" function .
Anyway, the solution (thanks @badetitou) is to change MooseModel to FamixJavaModel when loading the MSE file in the script above:
"Load the moose Model with some error checking"
| mseFileRefmseStreammooseModel |
mseFileRef :='tmp/HFDP.mse' asFileReference. "Generated by FamixMaker"
mseStream := mseFileRef readStream.
mseStream
ifNotNil: [
mooseModel :=FamixJavaModelimportFromMSEStream: mseStream.
mooseModel rootFolder:'tmp/MooseEasyRepos/bethrobson__Head-First-Design-Patterns'.
mooseModel install. "So it appears in the Panel"
mseStream close. ]
ifNil: [ selferror:'Could not load MSE file into Moose: ' , mseFileRef asString ].
Since "compatibility" Famix was VerveineJ 1.x.x, then I think Moose-Easy needs to synchronize better with it, as in #7
The text was updated successfully, but these errors were encountered:
After generating an MSE file with FamixMaker, the "generated" code to load the model is like this:
However, with the latest VerveineJ (using FamixNG) when trying to load the MSE file, there are errors such as:
Element 'Famix-Java-Entities.IndexedFileAnchor' not found.
This also happens when using the Moose Panel "Import model from MSE file" function
.
Anyway, the solution (thanks @badetitou) is to change
MooseModel
toFamixJavaModel
when loading the MSE file in the script above:Since "compatibility" Famix was VerveineJ 1.x.x, then I think Moose-Easy needs to synchronize better with it, as in #7
The text was updated successfully, but these errors were encountered: