robotlegs2.1.0 swc and SARS error (Matcher ?)

jezhoughton's Avatar

jezhoughton

01 Oct, 2013 11:49 AM

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!
jez.

  1. Support Staff 1 Posted by Ondina D.F. on 01 Oct, 2013 02:17 PM

    Ondina D.F.'s Avatar

    Hi Jez,

    I'll attach the SARS example (AIR) where I made some modifications to the extension and to the example's Config.as. I used the source code of SARS and SignalCommandMap.

    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

    You can extract the source of SARS and SignalCommandMap from the attached example and use it in your project.

    You should contact Vjekoslav on github or open an issue : https://github.com/Vj3k0/robotlegs-extensions-SARS

    In case I get a chance, I'll fork his extension and apply my modifications, but I can't promise anything.

    Hope that helps a little bit:)

    Ondina

  2. 2 Posted by jezhoughton on 01 Oct, 2013 02:28 PM

    jezhoughton's Avatar

    Ondina - implementing this now ... many thanks for such a quick response ...thats fantastic ... had tracked down the IInjector stuff but am migrating a rl1 non starling event based tablet project prototype over to rl2 starling sars and i wanted to begin this cleanly so this is perfect ... will flag this over on github referencing this response...
    ...again, many thanks and truly great work...
    j.

  3. Support Staff 3 Posted by Ondina D.F. on 01 Oct, 2013 05:49 PM

    Ondina D.F.'s Avatar

    Glad I could help:)
    I'm closing this discussion for now, but you can re-open it, if need be.

  4. Ondina D.F. closed this discussion on 01 Oct, 2013 05:49 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac