Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

install haxe lime error

Tags:

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).
like image 824
Michael Avatar asked Aug 18 '14 20:08

Michael


2 Answers

The accepted answer did not make sense to me so I decided to post a solution that worked on my system. It's worth noting that I'm on Ubuntu 14.04, not Windows. I could install neither lime nor openfl. I decided to include openfl details here as I could not find a solution for that either. The openfl error I received was Uncaught exception - Invalid field access: split.

Many forums recommend checking that the HAXEPATH environment variable is not set. In my case, it wasn't set, but I received a similar lime error to the one posted here. Contrary to what those forums advised, manually exporting the HAXEPATH variable allowed me to run both lime and openfl setups successfully.

One site also mentioned that the format lib is necessary, although I'm not sure how true this is. Please leave a comment if you can confirm or deny this.

Here's what I did:

Install openfl, lime, and format

haxelib install openfl
haxelib install lime
haxelib install format

Get the haxelib path, and export it

Running haxelib config will return the haxelib repository path as is currently defined. If you have not defined a haxelib repo path, you can do so by running haxelib setup. On my system the path was /usr/share/haxe/lib.

Export the haxelib path:
export HAXEPATH="`haxelib config`"

Complete the setup

haxelib run lime setup
haxelib run openfl setup

Confirm all is working

Run lime or openfl. You should receive a terminal splash welcome from both.

I added the above export entry to my bashrc file as these tools always require that the variable exists in my environment.

like image 38
aggregate1166877 Avatar answered Oct 17 '22 13:10

aggregate1166877


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.

like image 120
Maxime Mangel Avatar answered Oct 17 '22 12:10

Maxime Mangel