as3hx
as3hx copied to clipboard
Uncaught exception - std@sys_read_dir (closed solution does not work for me)
Almost exactly the same setup as https://github.com/HaxeFoundation/as3hx/issues/46
neko run.n source/as3/ out/
Called from sys.io.FileOutput::$statics line 1
Called from Run::main line 102
Called from Run::loop line 33
Called from sys.FileSystem::readDirectory line 85
Uncaught exception - std@sys_read_dir
I tried to leave out the out/ I get:
Usage: as3tohx [options] sourceDir [outdir]
Options:
-no-cast-guess as3tohx will not try to handle MyClass(obj) casts
-no-func2dyn will not change Function types to Dynamic
-uint2int transforms all uint to Int
-vector2array will convert Vectors to haxe Arrays
-debug-expr will output debug information
-debug-inferred-type will output inferred type debug information
-convert-flexunit will convert FlexUnit metadata and calls to munit form
outdir defaults to './out'
Do you know any other solution that could help? When I use the haxelib released version (1.0.2) it works.
This error is caused by having an existing "out" folder. It seems as3hx is unable to handle passing an already created directory as the "out" argument.
Ideally this could be fixed by checking if the folder exists: if true use it else create it.
@saralarsson why not just delete the folder (instead of leaving out the parameter which is "out" per default. i agree to @Tiago-Ling check if the folder exist, at least print a nicer warning.