Haxe + Defold = ❤️

#41

Yeah, you’re right.

0 Likes

#42

No, you also have to archive (build) with bob.jar before reloading via HTTP

0 Likes

#43

How do you make your editor aware of the haxe defold library so it can do code prediction and checking? Not too familiar with Haxe, but intrigued by the idea of having the capabilities of a statically typed language.

2 Likes

#44

Hmm, it should just work with VS Code and the Haxe extension from its marketplace, because it picks up the .hxml file and uses that for completion.

There is a minor(ish) issue with building to Lua through VS Code with current Haxe versions, since it tries to build through the haxe’s compilation server and that is bugged in the current Haxe releases. You can avoid the bug by setting "haxe.enableCompilationServer": false in your VSCode workspace settings. (I really should add that to the README).

But that’s unrelated to the completion and other IDE services, that should just work. Could you give me more info (at least a full screenshot of the editor window :slight_smile: )?

3 Likes

#45

That would be quite annoying. Is there a plan to add something like
http://localhost:8001/post/@resource/build-and-reload in the Editor?

1 Like

#46

I only had the one file open with vscode, which was the problem. Opened it up from the projects root, and it picked up the build file. Took a minute or two for the code completions to be available, but they’re there now. Thanks!

2 Likes

#47

what to do if i want to use other lua libs in a haxe project?

0 Likes

#48

Replied in an issue you opened here: https://github.com/hxdefold/hxdefold/issues/12 :slight_smile:

2 Likes

#49

Thanks a lot for making this library. I’ve been testing it out the past few days and I really like it!
I’m used to static languages and had a bit of trouble adapting to lua when a project gets bigger than a few scripts. This makes it a lot easier for me.

0 Likes