HaxeFoundation / hashlink

A virtual machine for Haxe
https://hashlink.haxe.org/
MIT License
811 stars 158 forks source link

"Could not start 'hl' process, executable was not found in PATH. Restart VSCode or computer." #554

Open Ixanagi opened 2 years ago

Ixanagi commented 2 years ago

I was following this Heaps.io guide (Link to Guide: https://heaps.io/documentation/hello-hashlink.html) to learn about how to make my own game like "Dead Cells" but immediately encountered this issue:

image

In the Compile.hxml, I also tried using "-lib hldx" instead of "-lib hlsdl" as well I tried searching for solutions but to no use, I also can't follow other guide online if I can't get past this unfortunately. I really am following the guide to the tee and I do not know whats wrong.

NOTE: Besides Haxe & Heaps.io, I also downloaded the additional files using [haxelib install hlopenal haxelib install hlsdl haxelib install hldx]

Simn commented 2 years ago

Does running hl from command line work? If so, try restarting Visual Studio Code as it might not have picked up the updated PATH environment.

20026781nat commented 2 years ago

Hi, I also got the same problem encountered with this issue as seen below,

image

I tried running "hl" from my Command Prompt and it showed me this below image

I also tried running "hl" on the VSCode but it gave me this answer below: image

Simn commented 2 years ago

That means Hashlink is not (correctly) installed. For the binary distribution, you'll have to make sure that its directory is in your PATH environment variable so that Windows can find it.