Is there any way to run kha with code completion in haxedevelop ?
Yes i have tried that, but i don't seem to have the khamake in my cmd path. could you provide an example ?
"Navigate to the directory and execute node Kha/make flash. This will create a FlashDevelop project file in a build subdirectory. You can load and build this project directly. "
I tried to do
"node Kha/make linux"
"node Kha/make flash"
Here is my "Empty/build":
sorry i might be missing something here.
this is what i have done:
- created an empty folder in desktop
- ran the script
this is what i get:
C:\Users\Ultimate\Desktop\New folder> node Kha/make flash
Error: Cannot find module 'C:\Users\Ultimate\Desktop\New folder\Kha\make'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:390:7)
at startup (bootstrap_node.js:150:9)
Just realized i had the
.hxprojproject file in the build folder all this time.
For some reason i was looking up for similar build as Kode Studio
Now i did figure out how to execute this command in any empty folder like so:
C:\Users\Ultimate\Desktop\New folder> node C:\HaxeToolkit\haxe\lib\kha\git\make html5
I understand this script requires the configuration files to be present since I'm getting this error:
Neither Kha directory nor project file (khafile.js) found
So basically I'm looking for something like a HaxeDevelop template for kha , or some method to see the
.hxfiles in the build project so i could run & debug straight from HaxeDevelop.
If that's not possible right now, i have no technical troubles in running and debugging from KodeStudio ( It's just a bit buggy with the auto-completion and very slow on my system )
You can't run a Kha project without a khafile. Run node /some/path/make --init to create a basic Kha project (same as F1->init) , then /some/path/make html5 will work and you get your HaxeDevelop project. Or maybe do /some/path/make flash because HaxeDevelop still can only debug flash projects AFAIK. The khafile defines the structure of your project (where assets, shaders and Haxe sources are). You should also call khamake every time you add assets or shaders to your project, HaxeDevelop knows nothing about those.