Hi !
I try to test Haxe/Heaps today. I test the the Hashlink Hello World tutorial and I encounter severals issues.
-
The first the the tutorial propose to run the debugger by press F5, it’s not proposed to run “Haxe: Select Configuration”. I need to find this by myself. Seems the default name for the config is build.hxml but the tutorial ask to create a compile.hxml
-
After the first issue resolved, when I have another issue : I have an error on the terminal :
Fatal error: exception Failure("Couldn't connect on 127.0.0.1:6000")
. I can resolve that by runinng the following command :haxe -v --wait 6000
but that should not be runned by the Haxe extension ? -
After that I have a hello.hl (yeah) but that all. The debugger session run 1 second and stop and the game’s window don’t appeared. But if I run the hello.hl with the terminal command ‘hl bin/hello.hl’ the game start. That issue is the more problematic.
I investigate a little bit by running console.log in the Hashling extension folder (.vscode\extensions\haxefoundation.haxe-hl-1.4.2)
It seem the debugger don’t run the Hasklink extension code of the adapter.js (extensions.js is fine)
And I don’t know why.
Anyone can help me for these issues ?
Thank you very much.
My launch.json file
{
"version": "0.2.0",
"configurations": [
{
"name": "HashLink",
"request": "launch",
"type":"hl",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}\\bin\\hello.hl",
"preLaunchTask": {
"type": "haxe",
"args": "active configuration",
}
}
]
}
My build.hxml file :
-cp src
-lib heaps
-lib hldx
-D windowSize=1280x720
-hl bin/hello.hl
-main Main