Closed cedx closed 3 years ago
I'm running into Failed to call haxe because Error: spawnSync haxe ENOENT
too which seems to be a Windows issue.
Haxe is executed directly here: https://github.com/lix-pm/haxeshim/blob/8ffc3518cb2b8a65a2b115ba4aa122a8193c2214/src/haxeshim/HaxelibCli.hx#L91
Whereas in other places there's an extension (and path) added: https://github.com/lix-pm/haxeshim/blob/8ffc3518cb2b8a65a2b115ba4aa122a8193c2214/src/haxeshim/HaxeInstallation.hx#L16
See https://lib.haxe.org/documentation/creating-a-haxelib-package/:
I have a project (
which
, see https://lib.haxe.org/p/which/2.0.2/files/ or https://github.com/cedx/which.hx) that provides aRun
root class in order to be able to do:I don't have a
main
field in thehaxelib.json
file. It works fine withhaxelib
but not withlix
(using version 15.10.1 with Haxe 4.1.5 on Windows 10). Instead, I get the following error:If I edit the
which.hxml
file and add:I get the following error:
If I edit the
haxelib.json
file and add:I get the following error:
EDIT: probably related to these issues... https://github.com/lix-pm/haxeshim/issues/68 https://github.com/lix-pm/haxeshim/issues/48