hxp icon indicating copy to clipboard operation
hxp copied to clipboard

Issue on Haxe 4

Open Arcnor opened this issue 6 years ago • 2 comments

I'm trying to fix a problem with a script using HXP. The script contains:

		Sys.exit (System.runScript ("tools/Tools.hx", [
			
			"-main", "Tools",
			"-lib", "hxp",
			"-lib", "lime",
			"-D", "disable-cffi"
			
		], ["myCommand", "otherArgs"]));

...and hxp is generating the following Haxe command line:

haxe -cp C:\Users\arcnor\AppData\Local\Temp/temp_10785548 -cp C:\Project\lime-project\tools Tools -main Tools -lib hxp -lib lime -D disable-cffi -D hxp-interp --run myCommand otherArgs

...which is causing Error: Class name must start with an uppercase letter.

The problem seems to be that hxp is passing the arguments to the script I want to run as --run <args> but Haxe interprets that as the name of a module. Before Haxe 4 this was passed using -- which I guess does the same as bash (end of command options) but now it just doesn't work.

Arcnor avatar Apr 17 '20 12:04 Arcnor

Did you find a solution to this?

tomcashman avatar Sep 10 '23 19:09 tomcashman

Hey, no sorry, never did and I stopped using Haxe quite a while ago, good luck!

Arcnor avatar Sep 10 '23 19:09 Arcnor