Status: New Owner: ---- Labels: Type-Defect Priority-Medium
New issue 951 by v.blonde...@gmail.com: Export then Import a MSE Model throws FMSyntaxError http://code.google.com/p/moose-technology/issues/detail?id=951
Hi,
I wanted to export and import a MSE file of a Moose Model. The export works perfectly but the import which throws an FMSyntaxError.
You can reproduce from the Moose Panel by creating a Model from Smalltalk, export it (Import/export / Export to MSE), and import it.
The pragma in FAMIXMethod>>clientClasses : <MSEProperty: 'Client classes' type: #FAMIXType> <multivalued> seems to be the problem. Indeed 'Client Classes' contains a space character which is not recognize by the MSE parser.
I resolved by deleting the space.
Comment #1 on issue 951 by v.blonde...@gmail.com: Export then Import a MSE Model throws FMSyntaxError http://code.google.com/p/moose-technology/issues/detail?id=951
So the new pragma is <MSEProperty: #clientClasses type: #FAMIXType> <multivalued>
Updates: Labels: Component-Famix Milestone-4.8
Comment #2 on issue 951 by tu...@tudorgirba.com: Export then Import a MSE Model throws FMSyntaxError http://code.google.com/p/moose-technology/issues/detail?id=951
Good catch. Could you create a test for this?
Also, where did you commit the fix?
Comment #3 on issue 951 by v.blonde...@gmail.com: Export then Import a MSE Model throws FMSyntaxError http://code.google.com/p/moose-technology/issues/detail?id=951
I saw you fix it, so I didn't integrate it in the slice.
I made a test to test the export and the import of a same model through a MSE file. The test is in the following repo : MCHttpRepository location: 'http://smalltalkhub.com/mc/VincentBlondeau/MooseStore/main' user: '' password: ''
The package to load is : SLICE-Issue-951-Export-then-Import-a-MSE-Model-throws-FMSyntaxError
However the test fails.... The method 'clientClasses:' is not implemented. I don't know how to do it.
Updates: Status: Fixed
Comment #4 on issue 951 by tu...@tudorgirba.com: Export then Import a MSE Model throws FMSyntaxError http://code.google.com/p/moose-technology/issues/detail?id=951
clientClasses "returns a set of all the classes that depend on the receiver" <MSEProperty: #clientClasses type: #FAMIXType> <multivalued> <derived>
Comment #5 on issue 951 by tu...@tudorgirba.com: Export then Import a MSE Model throws FMSyntaxError http://code.google.com/p/moose-technology/issues/detail?id=951
The clientClasses is a derived property and should not be saved in the MSE in the first place.