haxelime-haxe

Could not find template file flash/hxml when installing haxe lime


I recently tried to develop in haxe/lime and I have two things that freaked me out. 1. I tried to install Lime by this command:

> haxelib install lime
haxelib run lime setup

and it automatically installed Lime in "c:/" and I need to move the files to "lib" to haxe folder.

2.when i open Lime project in FD i get this error:

> Called from ? line 1
Called from CommandLineTools.hx line 995
Called from CommandLineTools.hx line 23
Called from CommandLineTools.hx line 108
Called from CommandLineTools.hx line 190
Called from platforms/FlashPlatform.hx line 91
Called from /usr/lib/haxe/std/neko/_std/sys/io/File.hx line 30
Uncaught exception - Invalid field access : __s

end when i try to build the project i get this error:

> Warning: Could not find template file: flash/hxml
Warning: Could not find template file: flash/haxe
Fatal error: exception Failure("File not found bin/flash/haxe/release.hxml")
Build halted with errors (haxelib.exe).

Solution

  • for your first problem, it's looks like you don't configure haxelib path.

    You can set up the path for your libraries with : haxelib setup

    Here yo put the path where you wants your lib to be store.

    And don't forget after you install lime to do : haxelib run lime setup like it's asked.

    For your problem with FD I suppose that's can come with the fact you moved your lime folder to another folder. Generally you never have to move a lib to another folder or haxe will not know is location.

    If it's not sorry, I don't use FD but hide or sublime text.