Is there any way to run kha with code completion in haxedevelop ?
-
HaxeDevelop
@wad1m https://github.com/Kode/Kha/wiki/Examples
"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":
flash flash-resources
linux
linux-build
linux-resources
project-flash.hxml
project-flash.hxproj
project-flash-intellij
project-linux.hxml
project-linux.hxproj
project-linux-intellij
temp -
HaxeDevelop
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
module.js:471
throw err;
^
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)
at bootstrap_node.js:505:3
C:\Users\Ultimate\Desktop\New folder>
-
HaxeDevelop
Just realized i had the
.hxproj
project file in the build folder all this time.
For some reason i was looking up for similar build as Kode StudioF1->init
optionNow 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
.hx
files 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 )
-
HaxeDevelop
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.