On May 15, 2012, at 11:27 AM, Mariano Martinez Peck wrote:
Hi guys. I am experimenting with exporting Monticello packages with Fuel. What I am doing so far is I download somehting with metacello, then I query all the needed packages and its order and then I serialize that. To do that, I am using (PackageInfo named: 'XXX') and then I ask #classes or #extensionMethods. The problem is that #extensionMethods is incredible slow:
extensionMethods ^ (Smalltalk allClassesAndTraits, (Smalltalk allClasses collect: [:c | c class])) gather: [:classOrTrait | self extensionMethodsForClass: classOrTrait]
.... I THINK that RPackage store extension methods and tehrefor I guess it could be much faster.
The problem I have now with RPackage is this. I have a MCPackage called 'Fuel'. And then I have different categories inside that package such as 'Fuel-Core', 'Fuel-Clusters'. 'Fuel-Stream', etc.
(MCPackage named: 'Fuel') correspondingRPackage classes -> () (RPackageOrganizer default packageNamed: 'Fuel') classes -> ()
I do not see why the system does not have an RPackage with Fuel if you have a working copy for it. Now I cannot debug that farâ¦
From time to time you should come to visit us.
Stef
so i am getting an empty collection instead of the classes. If I enter to a category, it is fine, for example: (RPackageOrganizer default packageNamed: 'Fuel-Clusters') classes -> a Set(FLGlobalSendCluster FLGlobalClassCluster FLObjectCluster FLCluster FLVariablesMapping FLWordObjectCluster FLIteratingCluster FLGlobalValueCluster FLVariableObjectCluster FLBitsObjectCluster FLGlobalCompiledMethodCluster FLPrimitiveCluster FLGlobalAssociationCluster FLPositiveSmallIntegerCluster FLGlobalCluster FLPointerObjectCluster FLWellKnownObjectsCluster FLMethodContextCluster FLSmallIntegerCluster FLUInt16Cluster FLGlobalClassSideCluster FLByteObjectCluster FLSubstitutionCluster FLNegativeSmallIntegerCluster FLHookPrimitiveCluster FLFixedObjectCluster FLWeakVariableObjectCluster)
so...how can I get a RPackage for my MCPackage/PackageInfo called 'Fuel' ?
thanks
-- Mariano http://marianopeck.wordpress.com