tag:robotlegs.tenderapp.com,2009-10-18:/discussions/examples/957-robotlegs210-swc-and-sars-error-matcherRobotlegs: Discussion 2013-10-01T17:49:17Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/291241282013-10-01T11:49:57Z2013-10-01T11:49:59Zrobotlegs2.1.0 swc and SARS error (Matcher ?)<div><p>I'm trying to implement a robust SARS environment for an app i'm
making , am using the example as a project basis ....<br>
...however i want to use the latest robotlegs (2.1.0) but when i
load in the SARS bundle i get the following error::</p>
<p>TypeError: Error #1034: Type Coercion failed: cannot convert
org.hamcrest.object::IsInstanceOfMatcher@abc4be1 to
robotlegs.bender.framework.api.IMatcher.<br>
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]</p>
<p>.................. this is coming from this line:<br>
_context.install(SARSBundle)....</p>
<p>any help?<br>
Is there a new SARS bundle for 2.1.0?<br>
Fantastic work by the way!<br>
jez.</p></div>jezhoughtontag:robotlegs.tenderapp.com,2009-10-18:Comment/291241282013-10-01T14:17:57Z2013-10-01T14:17:57Zrobotlegs2.1.0 swc and SARS error (Matcher ?)<div><p>Hi Jez,</p>
<p>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.</p>
<p>I replaced all occurrences of</p>
<p>import org.hamcrest.object.instanceOf;</p>
<p>with</p>
<p>import robotlegs.bender.extensions.matching.instanceOfType;</p>
<p>in SARS' extensions classes</p>
<p>and commented out CommandCenterExtension, in
robotlegs.bender.bundles.SARSBundle</p>
<p>I replaced Injector with IInjector in<br>
robotlegs.bender.example.sarsintegration.config.Config.as</p>
<p>You can extract the source of SARS and SignalCommandMap from the
attached example and use it in your project.</p>
<p>You should contact Vjekoslav on github or open an issue :
<a href=
"https://github.com/Vj3k0/robotlegs-extensions-SARS">https://github.com/Vj3k0/robotlegs-extensions-SARS</a></p>
<p>In case I get a chance, I'll fork his extension and apply my
modifications, but I can't promise anything.</p>
<p>Hope that helps a little bit:)</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/291241282013-10-01T14:28:05Z2013-10-01T14:28:05Zrobotlegs2.1.0 swc and SARS error (Matcher ?)<div><p>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...<br>
...again, many thanks and truly great work... j.</p></div>jezhoughtontag:robotlegs.tenderapp.com,2009-10-18:Comment/291241282013-10-01T17:49:17Z2013-10-01T17:49:17Zrobotlegs2.1.0 swc and SARS error (Matcher ?)<div><p>Glad I could help:)<br>
I'm closing this discussion for now, but you can re-open it, if
need be.</p></div>Ondina D.F.