So I have a pure AS3 AIR FlashDevelop project that has been using the 1.0.279 swc for the last year or so now (this is the swc that had been part of the Flixel Community port project).
Every time I've tried to update to a newer swc in the past I've run into this same problem, so I've stuck with 1.0.279. This has been fine for the most part, but I am running into issues where Genome2D does not appear to be initialising for some players (perhaps a Windows 10 + Intel HD issue), so I've been trying again to get a newer version running to see if it resolves it.
Whenever I try to build the project on a newer swc I get :
Error: null
Build halted with errors (fcsh).
This isn't necessarily a FlashDevelop issue, as the "Error: null" comes from mxmlc, the Flex command line compiler (java based).
I've tried it on a bare bones project and found that any reference to something within the genome package prevents it from building.
e.g.
package
{
import com.genome2d.Genome2D;
import flash.display.Sprite;
public class Main extends Sprite
{
public function Main()
{
var g:Genome2D;
}
}
}
I attempted to build with FlashDevelop, but also without via command line with:
mxmlc -external-library-path+=lib\Genome2D.swc -- src/Main.as
which gives:
Loading configuration file C:\Users\ocana\AppData\Local\FlashDevelop\Apps\flexairsdk\4.6.0+24.0.0\frameworks\flex-config.xml
Error: null
If I simply comment out the var g:Genome2D; line, it'll build a swf. I also had a full line of g:Genome2D = Genome2D.getInstance(), or even just instantiating a GRectangle, and it also fails.
I've tried this with the swc from the repo bin (both current and previous versions in the past) as well as building from source (my haxe knowledge is practically zero, so I'm just doing 'haxe build.xml'. not sure if there are any other settings to play around with).
I've tried setting the xmlxc warnings flag to false, with no change. (this seemed to have resolved similar problems for others in the past)
I've tried re-setting all the <warn-...> attributes in flex-config.xml (and air-config.xml, as that is what the FlashDevelop Air project uses).
I've tried with both the combined Flex+Air (4.6.0+24) that FlashDevelop downloads (with versions down to 4.6.0+16), and the standalone Flex 4.6 sdk downloaded directly from adobe site.
And again if I just switch back to the 1.0.279 swc in very instance of this simple test scenario it will build a swf
mxmlc -external-library-path+=lib\Genome2D_1_0_279.swc -- src/Main.as
I've tried on two different machines.
If I enable verbose class loading for java (in jvm.config in the flex /bin), for the later swc I get
for 1.0.279 I get
So the failure seems to get as far as
[Loaded macromedia.asc.semantics.ObjectValue$ObjectValueCompare from file:/C:/Users/ocana/Documents/G2dAir/flex/lib/asc.jar]
[Loaded macromedia.asc.parser.MetaDataEvaluator from file:/C:/Users/ocana/Documents/G2dAir/flex/lib/asc.jar]
before quitting.
I'm not sure if there is a way to get more verbose output from java.
Is there some incompatibility with the later swcs, or how they are built in haxe, and 32bit JRE that mxmlc uses?
Is anyone else seeing this issue?
Am I missing something complete obvious??
Thanks for any help