robotlegs-extensions-SARS icon indicating copy to clipboard operation
robotlegs-extensions-SARS copied to clipboard

robotlegs2.1.0 and SARS integration issue

Open zeukterialpneumaion opened this issue 11 years ago • 0 comments

I'm trying to implement a robust SARS environment for an app i'm making , am using the example as a project basis .... ...however i want to use the latest robotlegs (2.1.0) but when i load in the SARS bundle i get the following error::

TypeError: Error #1034: Type Coercion failed: cannot convert org.hamcrest.object::IsInstanceOfMatcher@abc4be1 to robotlegs.bender.framework.api.IMatcher. at robotlegs.bender.extensions.sarsIntegration::SARSIntegrationExtension/extend()[/Users/vjeko/Documents/Work/Projects/Vj3k0/robotlegs-extensions-SARS/src/robotlegs/bender/extensions/sarsIntegration/SARSIntegrationExtension.as:58] at robotlegs.bender.framework.impl::ExtensionInstaller/install()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/ExtensionInstaller.as:70] at robotlegs.bender.framework.impl::ExtensionInstaller/install()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/ExtensionInstaller.as:61] at robotlegs.bender.framework.impl::Context/install()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/Context.as:301] at robotlegs.bender.bundles::SARSBundle/extend()[/Users/vjeko/Documents/Work/Projects/Vj3k0/robotlegs-extensions-SARS/src/robotlegs/bender/bundles/SARSBundle.as:55] at robotlegs.bender.framework.impl::ExtensionInstaller/install()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/ExtensionInstaller.as:70] at robotlegs.bender.framework.impl::ExtensionInstaller/install()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/ExtensionInstaller.as:61] at robotlegs.bender.framework.impl::Context/install()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/Context.as:301] at robotlegs.bender.example.sarsintegration::SARSIntegrationDemo/createAppContext()[C:\Users\jez\Documents\programminglanguages\as3\SARSRL2\src\robotlegs\bender\example\sarsintegration\SARSIntegrationDemo.as:134] at robotlegs.bender.example.sarsintegration::SARSIntegrationDemo/onContext3DCreated()[C:\Users\jez\Documents\programminglanguages\as3\SARSRL2\src\robotlegs\bender\example\sarsintegration\SARSIntegrationDemo.as:112] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at away3d.core.managers::Stage3DProxy/onContext3DUpdate()[C:\Users\vratkajec\Workspaces\Libraries\away3d-core-fp11\src\away3d\core\managers\Stage3DProxy.as:477]

.................. this is coming from this line: _context.install(SARSBundle)....

any help? Is there a new SARS bundle for 2.1.0? Fantastic work by the way!

///// Ondina (robotlegs fixed this by the following:: I replaced all occurrences of

import org.hamcrest.object.instanceOf;

with

import robotlegs.bender.extensions.matching.instanceOfType;

in SARS' extensions classes

and commented out CommandCenterExtension, in robotlegs.bender.bundles.SARSBundle

I replaced Injector with IInjector in robotlegs.bender.example.sarsintegration.config.Config.as ///// see :::http://knowledge.robotlegs.org/discussions/examples/957-robotlegs210-swc-and-sars-error-matcher

zeukterialpneumaion avatar Oct 01 '13 14:10 zeukterialpneumaion