Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on Haxe 4 #22

Open
Arcnor opened this issue Apr 17, 2020 · 2 comments
Open

Issue on Haxe 4 #22

Arcnor opened this issue Apr 17, 2020 · 2 comments

Comments

@Arcnor
Copy link

Arcnor commented Apr 17, 2020

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.

@tomcashman
Copy link

Did you find a solution to this?

@Arcnor
Copy link
Author

Arcnor commented Sep 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants