tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/356-getting-a-internal-build-error-when-using-robotlegsRobotlegs: Discussion 2018-10-18T16:35:30Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/90451222011-08-03T07:28:41Z2011-08-03T07:28:41ZGetting a "Internal build error" when using Robotlegs<div><p>Hi</p>
<p>I'm working on a fairly large project. The project has been
created by someone else and is more a prototype than anything else.
I am now trying to change this code into something that makes more
sense (useing: Robotlegs and Signals). Unfortunately I can't
refactor the code, but have to change it while keeping the code
running.</p>
<p>I have put robotlegs arround the old "framework", and change the
old files one by one, but sometimes I get this error: "An internal
build error has occurred. Right-click for more information." in
Flash Builder (More info: <a href=
"http://learn.adobe.com/wiki/display/Flex/Flex+Builder+3+Compiler+Errors">
http://learn.adobe.com/wiki/display/Flex/Flex+Builder+3+Compiler+Er...</a>,
log says: null Pointer error)</p>
<p>When I comment out a mediatorMap.mapView from the context and
bild, the error disapears, Then I can uncomment it again and it
works again for a while.</p>
<p>Any ideas, as of how to solve this bug?</p></div>Christentag:robotlegs.tenderapp.com,2009-10-18:Comment/90451222011-08-03T07:53:51Z2011-08-03T07:53:51ZGetting a "Internal build error" when using Robotlegs<div><p>Are you using Robotlegs as a SWC or source files?</p></div>Michal Wroblewskitag:robotlegs.tenderapp.com,2009-10-18:Comment/90451222011-08-03T08:24:50Z2011-08-03T08:24:50ZGetting a "Internal build error" when using Robotlegs<div><p>Hi Christen,</p>
<p>I remember getting this kind of error in FlexBuilder3, due to an
empty switch statement!<br>
Also external libraries (swc) can be the issue. It’s a nasty
error, sometimes hard to find.</p>
<p>I would try to run the project without robotlegs first.<br>
If the error disappears, the next questions are:</p>
<p>Do you have more than one view from that external project, that
you are mapping?<br>
If yes, is only one view causing this issue?<br>
Are you loading the project as an swc?</p>
<p>Can you show a snippet of your mappings?</p>
<p>Oh, I see, Mike has already answered:)</p>
<p>Ondina</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/90451222011-08-03T08:57:38Z2011-08-03T08:57:38ZGetting a "Internal build error" when using Robotlegs<div><p>Hi</p>
<p>I am using robotlegs as sourcefiles, because I was having
problems with the SWC.</p>
<p>But I am using signals-extension-SignalCommandMap.swc and
SwiftSuspenders-v1.5.1.swc</p>
<p>But I am not sure if they ar nesesary or are insluded in the
robotlegs framework.</p>
<p>I'm using FB 4</p>
<p>If I am not using Robotlegs, signals asf. I works fine. (Or it
did, right now it will not work at all)</p></div>Christentag:robotlegs.tenderapp.com,2009-10-18:Comment/90451222011-08-03T09:37:53Z2011-08-03T09:38:57ZGetting a "Internal build error" when using Robotlegs<div><p>Check if there are any errors like this using Robotlegs SWC.</p>
<p>If not try adding these lines to the compilator:</p>
<pre>
<code>-keep-as3-metadata+=Inject
-keep-as3-metadata+=PostConstruct</code>
</pre>
<p>And here you can get a similar topic: <a href=
"http://knowledge.robotlegs.org/discussions/problems/22-export-release-build-in-flash-builder">
http://knowledge.robotlegs.org/discussions/problems/22-export-relea...</a></p>
<p>Mike</p></div>Michal Wroblewskitag:robotlegs.tenderapp.com,2009-10-18:Comment/90451222011-08-03T09:38:28Z2011-08-03T09:38:28ZGetting a "Internal build error" when using Robotlegs<div><ul>
<li>if you use the robotlegs swc, swiftsuspenders is already
included in the framework library</li>
<li>if you use the robotlegs src, then you need the swiftsuspenders
src as well. Maybe you already know that in this case you need to
add -keep-as3-metadata+=Inject -keep-as3-metadata+=PostConstruct to
the compiler arguments, for the release build</li>
<li>if the project works fine without robotlegs+swiftsuspenders+
signals-extension-SignalCommandMap, then I guess the way you are
linking the libraries is the problem( Flex Build Path), or</li>
<li>if you fixed it in your build path, and you have just
robotlegs.swc and signals-extension-SignalCommandMap and it still
doesn’t work, then maybe signals-extension-SignalCommandMap
is the culprit. I can’t help you with that, but maybe
it’s an old version?</li>
<li>also try to Clean the project, see if any debugger instances
are still running, close the project, delete the settings and start
anew .</li>
</ul>
<p>Maybe Mike has some suggestions as well. Sorry for interfering,
actually.</p>
<p>Mike?</p></div>Ondina D.F.tag:robotlegs.tenderapp.com,2009-10-18:Comment/90451222011-08-03T09:40:04Z2011-08-03T09:40:04ZGetting a "Internal build error" when using Robotlegs<div><p>Hi Christen - I just wanted to add that "changing the code while
keeping things working" is the definition of refactoring - so you
<em>can</em> and <em>are</em> doing refactoring. Breaking stuff
isn't refactoring!</p>
<p>I'm guessing you don't have automated tests? I'd recommend
adding end-to-end tests for the key functionality if possible -
that way you know that you are preserving what works.</p>
<p>Stray</p>
<p>On 3 Aug 2011, at 10:56, Christen wrote:</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/90451222011-08-23T08:54:46Z2011-08-23T08:54:46ZGetting a "Internal build error" when using Robotlegs<div><p>Sorry for late replys.</p>
<p>Had some vecation and forgot about it.</p>
<p>I don't know what happend, but I stoped getting the error. I
think it was because I was using some classes both in the old and
new framework. Now I am making good progress converting the whole
project to robotlegs and signals.</p>
<p>Att: Stray and refactoring: I know. It's a longer story. But the
product is unstable while I am converting it, and other people are
using it as I worked on it. Fortunaly I have some time to fix it
now in a new branch.</p></div>Christen