According to the readme file FamixTypeScript is compatible with Moose 11.
I have tested it on Moose 12 and it works successfully.
However, it can't be loaded on Moose13 because of compatibility issues with Famix traits (some of them are renamed ...) .
It would be nice if it can be updated to make it work on Moose 13 as well.
I made a manual fix to make it work locally on Moose 13, but some of the tests are failing and extensions package is changed (surprisingly) after running the tests. But at least a typescript model can be imported in Moose 13 with the fix.
I did not propose a change or a PR because I know that the changes may not make it compatible with older versions of Moose, and perhaps this is not the process the admin would like to follow.
So I will post my modifications here in case anybody has the same issue and would like to make it work locally, until this issue is solved properly.
1- Update the generator of FamixTypeScript:
"
in defineHierarchy
old:
parameterType --|> type.
parameterType --|> #TGenericParameterType.
parameterType --|> #TTypedEntity.
new:
parameterType --|> type.
parameterType --|> #TTypeParameter.
parameterType --|> #TTypeArgument.
parameterType --|> #TWithInheritances.
old:
type --|> #TConcreteParameterType.
type --|> containerEntity.
new:
type --|> #TTypeArgument.
type --|> containerEntity.
old:
parameterConcretization --|> #TParameterConcretization.
new:
removed
old:
parameterType --|> #TWithInheritances.
new:
removed
in defineClasses
old:
parameterConcretization := builder newClassNamed: #ParameterConcretiz
new
removed
"
2- regenerate the entities: FamixTypeScriptGenerator new generateWithoutCleaning.
According to the readme file FamixTypeScript is compatible with Moose 11.
I have tested it on Moose 12 and it works successfully.
However, it can't be loaded on Moose13 because of compatibility issues with Famix traits (some of them are renamed ...) .
It would be nice if it can be updated to make it work on Moose 13 as well.
I made a manual fix to make it work locally on Moose 13, but some of the tests are failing and extensions package is changed (surprisingly) after running the tests. But at least a typescript model can be imported in Moose 13 with the fix.
I did not propose a change or a PR because I know that the changes may not make it compatible with older versions of Moose, and perhaps this is not the process the admin would like to follow.
So I will post my modifications here in case anybody has the same issue and would like to make it work locally, until this issue is solved properly.
1- Update the generator of FamixTypeScript:
"
in defineHierarchy
old:
parameterType --|> type.
parameterType --|> #TGenericParameterType.
parameterType --|> #TTypedEntity.
new:
parameterType --|> type.
parameterType --|> #TTypeParameter.
parameterType --|> #TTypeArgument.
parameterType --|> #TWithInheritances.
old:
type --|> #TConcreteParameterType.
type --|> containerEntity.
new:
type --|> #TTypeArgument.
type --|> containerEntity.
old:
parameterConcretization --|> #TParameterConcretization.
new:
removed
old:
parameterType --|> #TWithInheritances.
new:
removed
in defineClasses
old:
parameterConcretization := builder newClassNamed: #ParameterConcretiz
new
removed
"
2- regenerate the entities: FamixTypeScriptGenerator new generateWithoutCleaning.