tag:robotlegs.tenderapp.com,2009-10-18:/discussions/robotlegs-2/4242-problem-establishing-contextview-robotlegs-2Robotlegs: Discussion 2013-11-27T21:29:51Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/279459592013-07-25T02:45:37Z2013-11-27T21:29:51ZProblem establishing ContextView (Robotlegs 2)<div><p>I'm trying to create my first Robotlegs and Starling
Actionscript only AIR 11.8 app using Intellij IDEA, and I'm coming
across an internal Robotlegs error when trying to configure a new
ContextView. I'm trying to "go by the book" as outlined in the
source readme.md files.</p>
<p>The error is:<br>
A ContextView must be installed if you install the
ContextViewExtension.</p>
<p>It is triggered by the .configure( new ContextView(this) )
statement.</p>
<p>I'm puzzled! This is my first time using Robotlegs. Be kind, and
thanks!</p>
<p>Eagerly awaiting the Robotlegs 2 docs,<br>
Steve</p>
<hr>
<p>Full trace:<br>
115 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object VigilanceExtension]<br>
116 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object InjectableLoggerExtension]<br>
116 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object ContextViewExtension]<br>
117 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object EventDispatcherExtension]<br>
117 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object ModularityExtension]<br>
118 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object DirectCommandMapExtension]<br>
118 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object EventCommandMapExtension]<br>
118 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object LocalEventMapExtension]<br>
119 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object ViewManagerExtension]<br>
120 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object StageObserverExtension]<br>
120 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object MediatorMapExtension]<br>
120 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object ViewProcessorMapExtension]<br>
122 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object StageCrawlerExtension]<br>
122 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object StageSyncExtension]<br>
123 DEBUG Context-0-5e [object ConfigManager] Not yet initialized.
Queuing config class [class ContextViewListenerConfig]<br>
123 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object StarlingBundle]<br>
124 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object ContextViewExtension]<br>
124 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object ViewManagerExtension]<br>
125 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object StageObserverExtension]<br>
125 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object ManualStageObserverExtension]<br>
125 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object MediatorMapExtension]<br>
126 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object StageCrawlerExtension]<br>
126 DEBUG Context-0-5e [object ExtensionInstaller] Installing
extension [object StageSyncExtension]<br>
126 DEBUG Context-0-5e [object ConfigManager] Not yet initialized.
Queuing config class [class ContextViewListenerConfig]<br>
127 DEBUG Context-0-5e [object ConfigManager] Not yet initialized.
Queuing config object [object ContextView]<br>
127 DEBUG Context-0-5e [object ContextViewExtension] Mapping
[object RobotCouch] as contextView<br>
128 DEBUG Context-0-5e [object ModularityExtension] Context has a
ViewManager. Configuring view manager based context existence
watcher...<br>
139 DEBUG Context-0-5e [object ModularityExtension] Context
configured to inherit. Broadcasting existence event...<br>
140 DEBUG Context-0-5e [object StageSyncExtension] Context view is
now on stage. Initializing context...<br>
142 INFO Context-0-5e Context-0-5e Initializing...<br>
148 ERROR Context-0-5e [object ContextViewExtension] A ContextView
must be installed if you install the ContextViewExtension.<br>
Error: A ContextView must be installed if you install the
ContextViewExtension.<br>
at
robotlegs.bender.extensions.vigilance::VigilanceExtension/log()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/extensions/vigilance/VigilanceExtension.as:50]
at
robotlegs.bender.framework.impl::LogManager/log()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/LogManager.as:89]
at
robotlegs.bender.framework.impl::Logger/error()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/Logger.as:78]
at
robotlegs.starling.extensions.contextView::ContextViewExtension/beforeInitializing()[C:\Users\Alessandro\Skydrive\Workspace\Personal\robotlegs-extension-starling\src\robotlegs\starling\extensions\contextView\ContextViewExtension.as:35]
at
MessageRunner/next()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/MessageDispatcher.as:152]
at
MessageRunner/run()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/MessageDispatcher.as:135]
at
robotlegs.bender.framework.impl::MessageDispatcher/dispatchMessage()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/MessageDispatcher.as:87]
at
robotlegs.bender.framework.impl::LifecycleTransition/enter()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/LifecycleTransition.as:191]
at
robotlegs.bender.framework.impl::Lifecycle/initialize()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/Lifecycle.as:149]
at
robotlegs.bender.framework.impl::Context/initialize()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/Context.as:159]
at
robotlegs.bender.extensions.contextView::StageSyncExtension/initializeContext()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/extensions/contextView/StageSyncExtension.as:84]
at
robotlegs.bender.extensions.contextView::StageSyncExtension/handleContextView()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/extensions/contextView/StageSyncExtension.as:66]
at
ObjectHandler/handle()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/ObjectProcessor.as:89]
at
robotlegs.bender.framework.impl::ObjectProcessor/processObject()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/ObjectProcessor.as:48]
at
robotlegs.bender.framework.impl::ConfigManager/addConfig()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/ConfigManager.as:78]
at
robotlegs.bender.framework.impl::Context/configure()[/Development/Projects/Robotlegs/robotlegs-framework/src/robotlegs/bender/framework/impl/Context.as:313]
at
RobotCouch()[/Users/steve/Documents/projects/Robotcouch/project/src/RobotCouch.as:45]</p>
<p>The full error</p>
<hr>
<p>// Here's the source code. Please ignore some of the import
messiness. package {</p>
<p>import com.fatredcouch.robotcouch.view.AppView;</p>
<p>import flash.display.DisplayObjectContainer;<br>
import flash.display.Sprite;<br>
import flash.display.StageAlign;<br>
import flash.display.StageScaleMode;</p>
<p>import robotlegs.bender.bundles.mvcs.MVCSBundle;<br>
import robotlegs.bender.extensions.contextView.ContextView;<br>
import robotlegs.bender.framework.api.IContext;<br>
import
robotlegs.starling.extensions.contextView.ContextViewExtension;<br>
import robotlegs.bender.framework.impl.Context;<br>
import robotlegs.starling.bundles.mvcs.StarlingBundle;</p>
<p>public class RobotCouch extends Sprite<br>
{</p>
<pre>
<code>protected var _context:IContext;
public function RobotCouch()
{
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
_context = new Context()
.install( MVCSBundle, StarlingBundle )
.configure( new ContextView(this as DisplayObjectContainer) );
}</code>
</pre>
<p>}</p>
<p>}</p></div>armoredblimptag:robotlegs.tenderapp.com,2009-10-18:Comment/279459592013-07-25T07:48:09Z2013-07-25T07:48:09ZProblem establishing ContextView (Robotlegs 2)<div><p>Hello Stephen,</p>
<p>Which Starling extension are you using and which version of
robotlegs 2?<br>
Are you getting the same error in a non Starling project?<br>
What is the StarlingBundle? What does it do?<br>
Where is your Starling configuration?</p>
<p>There are a couple of Starling examples/extensions written by
users out there. We can't guarantee that they'd work with the
latest version of robotlegs 2, but you can have a look at them to
learn how to create a context with starling.</p>
<p>In case you didn't know about them:</p>
<p><a href=
"https://github.com/Vj3k0/robotlegs-bender-example-SARS-integration">
https://github.com/Vj3k0/robotlegs-bender-example-SARS-integration</a><br>
<a href=
"https://github.com/brean/robotlegs2-starling-clock-example">https://github.com/brean/robotlegs2-starling-clock-example</a><br>
<a href=
"https://github.com/jamieowen/robotlegs2-starling-viewmap">https://github.com/jamieowen/robotlegs2-starling-viewmap</a><br>
<a href=
"https://github.com/lidev/robotlegs2-signals-feathers-flickr-example/">
https://github.com/lidev/robotlegs2-signals-feathers-flickr-example/</a></p>
<p>Also see this discussion:<br>
<a href=
"http://knowledge.robotlegs.org/discussions/robotlegs-2/4067-contextview-in-rl2-with-starling">
http://knowledge.robotlegs.org/discussions/robotlegs-2/4067-context...</a></p>
<p>Let us know how it goes. I'd take a look at your code, if you
attached your project or an example that reproduces your issue.</p>
<p>hth<br>
Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/279459592013-07-25T18:42:19Z2013-11-27T21:29:51ZProblem establishing ContextView (Robotlegs 2)<div><p>Thanks for the quick reply Ondina. The message threw me off and
I didn't think it was Starling related, but removing the Starling
bundle install is resolving the issue.</p>
<p>I'm continuing the hammer on this working with Starling, and
I'll post an update soon.</p>
<p>Thank you for the excellent links!</p></div>armoredblimptag:robotlegs.tenderapp.com,2009-10-18:Comment/279459592013-07-26T09:50:37Z2013-07-26T09:50:37ZProblem establishing ContextView (Robotlegs 2)<div><p>Hey Steve,</p>
<p>Glad you're back on track. I'm going to close this discussion,
but you can re-open it whenever you want, or open new discussions
for new issues.</p>
<p>Cheers,<br>
Ondina</p></div>Ondina D.F.