Skip to content

Issue on Haxe 4 #22

@Arcnor

Description

@Arcnor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions