tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/246-the-definition-of-base-class-context-was-not-foundRobotlegs: Discussion 2018-10-18T16:35:21Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T09:38:18Z2011-01-20T09:38:18ZThe definition of base class Context was not found<div><p>Hi Kyle - that does sound weird!</p>
<p>Any chance your resource path is pointed at the folder above,
which might still give you code completion but would think the
package was - for example - robotlegs.org.robotlegs.mvcs.Context
?</p>
<p>I guess if you've tried both swc and source that doesn't make
sense anyway.</p>
<p>I don't use FlashBuilder, but I'll also tweet a request incase
anyone else has run into it.</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T09:44:56Z2015-10-19T23:47:54ZThe definition of base class Context was not found<div><p>Hi Kyle,</p>
<p>Are you using the SignalsCommandMap or any other RL extension? I
have had issues where I couldnt find some of the core RL classes
when using the SWC version of the SignalsCommandMap.</p>
<p>What you are experiencing where you can link through to the code
is indeed weird however. Its almost as if Eclipse can locate the
Context but the flex compiler cannot. There aren't any odd
permissions things going on are there?</p>
<p>Mike</p></div>mike.canntag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T10:06:02Z2011-01-20T10:06:02ZThe definition of base class Context was not found<div><p>Hi Kyle,</p>
<p>Mike raises a good point, I also am not a FB user, however a
couple of thoughts spring to mind and it would be useful to see
your project Flex Build Path properties, specifically Library
Paths.</p>
<p>Look in your . actionScriptProperties file and see what
libraryPathEntry values you have and how they are being included in
your compile. I jotted down some notes on this aspect here <a href=
"http://www.newtriks.com/?p=802">Linking Libraries in Flex using
mxmlc</a></p>
<p>Simon</p></div>simontag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T10:52:04Z2011-01-20T10:52:04ZThe definition of base class Context was not found<div><p>Hello<br>
I could reproduce the error 1017 only by removing the libs
folder(containing the robotlegs.swc):<br>
FlashBuilder -> Properties -> Flex Build Path -> libs
-> Remove<br>
Normally when you add a file to the libs folder Flah Builder will
automatically build the path for it. For some reasons your Flash
Builder doesn’t do that.</p>
<p>So the solution is:<br>
FlashBuilder -> Properties -> Flex Build Path ->Add SWC
Folder -> Browse to the folder containing your robotlegs.swc
file and add the folder to your build path<br>
If you already have a libs folder try adding the swc (Add SWC)</p>
<p>Hope that helps.<br>
Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T10:52:33Z2011-01-20T10:52:33ZThe definition of base class Context was not found<div><p>Oh, I see, Simon already answered your question while I was
editing my reply.</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T14:40:20Z2011-01-27T23:32:52ZThe definition of base class Context was not found<div><p>Thank you all for your quick input! Unfortunately, I am still
unable to<br>
resolve the issue. To answer a few questions:<br>
1) I am not using any plugins for RL<br>
2) I have mapped a directory called "libs" in my build path which
contains<br>
the RL swc (however, I have also tried mapping directly to the swc
file, as<br>
well as adding the source folder into my compile path. You can see
current<br>
properties of the .actionscript file in the attached image.</p>
<p>I have also attached an image of my Buil Path options from Flash
Builder. On<br>
a side note, I was able to create a successful test project last
night using<br>
the same RL swc file (after banging my head for a half-hour I
finally found<br>
the article noting that you have to check the compile .swc option
in Flash<br>
for it to properly compile, someone might want to think about
surfacing this<br>
information higher up in the documentation, seems like a pretty
big<br>
"gotcha"). This tells me that my .swc and inclusion methods should
be ok (as I am doing the same thing in my broken project). The next
step seems to be<br>
to recreate the entire project structure from scratch (which will
be<br>
extremely time consuming), so if anyone has any other suggestions,
they<br>
would be greatly appreciated!</p>
<p>Thanks again for all the input!</p>
<p>On Thu, Jan 20, 2011 at 2:52 AM, Ondina D.F. <<br>
<a href=
"mailto:tender+dccb868598070ddae6fc2a4ca3a11215052480e60@tenderapp.com">
tender+dccb868598070ddae6fc2a4ca3a11215052480e60@tenderapp.com</a><<a href="mailto:tender%2Bdccb868598070ddae6fc2a4ca3a11215052480e60@tenderapp.com">tender%2Bdccb868598070ddae6fc2a4ca3a11215052480e60@tenderapp.com</a>><br></p>
<blockquote>
<p>wrote:</p>
</blockquote></div>Kyletag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T14:41:26Z2011-01-27T23:32:52ZThe definition of base class Context was not found<div><p>And here's the screenshots I mentioned in my previous reply.</p></div>Kyletag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T14:42:47Z2011-01-20T14:42:47ZThe definition of base class Context was not found<div><p>Rather than re-create the entire project from scratch, could you
create a new project and just attempt to include an instance of
Context as a var while you narrow down the linking problem?</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T14:46:10Z2011-01-27T23:32:53ZThe definition of base class Context was not found<div><p>Hey Stray,<br>
Do you mean the specific context file that is throwing the errors?
i.e.<br>
Create a new project, then set the projects context file as the
problematic<br>
file (copy it into the new project)? Perhaps you could provide a
bit more<br>
detail on what exactly you're thinking here..</p>
<p>I did create a test project last night with a new context file,
a basic view<br>
and mediator, and a document class and application mediator, and
was able to<br>
get it to run successfully. Not sure if this is what you are
talking about.</p>
<p>Thanks!</p>
<p>On Thu, Jan 20, 2011 at 6:43 AM, Stray <<br>
<a href=
"mailto:tender+dccb868598070ddae6fc2a4ca3a11215052480e60@tenderapp.com">
tender+dccb868598070ddae6fc2a4ca3a11215052480e60@tenderapp.com</a><<a href="mailto:tender%2Bdccb868598070ddae6fc2a4ca3a11215052480e60@tenderapp.com">tender%2Bdccb868598070ddae6fc2a4ca3a11215052480e60@tenderapp.com</a>><br></p>
<blockquote>
<p>wrote:</p>
</blockquote></div>Kyletag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T15:20:26Z2011-01-20T15:20:26ZThe definition of base class Context was not found<div><p>Hey Kyle,<br>
Can you see the robotlegs swc under your Referenced Libraries (FB
Package Explorer) and the Context.abc under org.robotlegs.mvcs
there?</p>
<p>What I do when something goes really wrong with a
project’s settings in FB is:</p>
<ol>
<li>right click on the project in the Package Explorer, choose
Delete<br></li>
<li>radiobutton: DO NOT DELETE CONTENTS !!<br></li>
<li>go to the folder of the project on your hard-disk<br></li>
<li>delete :bin-debug, .settings, .actionScriptProperties,
.flexProperties, .project<br></li>
<li>and eventually the libs content<br></li>
<li>don’t delete src !!<br></li>
<li>go back to FB, create a new Flex Project with the same name
(RLTest) and location<br>
The structure of your project will be intact, you’ll just
have new settings.</li>
</ol>
<p>Does that help?<br>
Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T15:28:12Z2011-01-27T23:32:53ZThe definition of base class Context was not found<div><p>Hey Ondina,<br>
Looking at the referenced libs, there are no classes displayed
under the RL swc (i.e. no twirldown option). I have to run out the
door, but I will try your above suggestion as soon as I get back
and let you know how it goes. Thanks for the idea!</p></div>Kyletag:robotlegs.tenderapp.com,2009-10-18:Comment/48296252011-01-20T17:36:49Z2011-01-27T23:32:53ZThe definition of base class Context was not found<div><p>Ondina,<br>
That seems to have done the trick! I recreated the project, then
re-linked the libs directory (thus forcing a recompile/inclusion of
the RL lib) and voila! When I dig into the referenced libraries now
I can see the class inclusions for the RL Lib.</p>
<p>Thank you guys all so much for your help!</p>
<p>-Kyle</p></div>Kyle