Hello,
this week I first installed the vscode Lix extension and I think it’s fantastic. So easy to set up a haxe project. This should really be advertised more, as way to start with haxe.
But I can’t get c++ compilation to work. Is this not supported yet or a bug?
This are the steps I did.
removed my previous haxe installation to have a fresh start
haxe and haxelib are no longer recognized in the terminal
In vscode
Haxe: Initialise Project
The message appears “Path to Haxe executable is not valid: ‘haxe.exe’. Please check your settings.” That’s ok because I don’t have haxe installed.
Lix: Initialise Project
I selected “local”
Now I can compile the Hello World example. Great!
When I change the build.hxml to cpp compilation
–cpp bin
The compilation process hangs.
I also tried to install hxcpp with Lix. Still doesn’t work.
Anybody else knows more about this?
I’ve actually had some issues getting lix to work with hxcpp as well. However, for me it doesn’t hang, it just prints a “Library hxcpp is not installed” error. So far I thought it might be something with lix itself, not the lix extension… But it actually seems to work fine when compiling from the command line (npx haxe build.hxml).
Perhaps there’s some unfortunate interaction between how the Haxe extension’s VSCode build tasks work and how lix works… I seem to remember talking about process vs shell tasks with somebody (@kevinresol?)
I had the “Library hxcpp is not installed” error when Haxe and hxcpp were already installed on the system and I added the lix stuff later to the project. (by Lix: Initialise Project)
It seems there were some issues with lix and hxcpp in the past. lix-hxcpp repo. So they could be resolved by now.
I seem to remember talking about process vs shell tasks with somebody
Hm, looks like using a vscode.ShellExecution for tasks instead of vscode.ProcessExecution doesn’t help much either, so I’m not really sure what’s going on…
Ok, this should finally work now. Turns out there were two separate issues, one in vshaxe (fixed in 2.18.0), and one in haxeshim (the EPIPE one mentioned here, fixed in lix 15.8.5).