Install haxe lime error

I recently tried to develop into haxe / lime, and I have two things that scared me. 1. I tried installing Lime with this command:

> haxelib install lime haxelib run lime setup 

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

2. When I open the Lime project in FD, I will 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 a 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). 
+5
source share
2 answers

for your first problem, it looks like you are not configuring the haxelib path.

You can configure the path for your libraries: haxelib setup

Here yo puts the path where you want your library to be in the repository.

And don't forget after installing lime: haxelib run lime setup , as he asked.

For your problem with FD, I suppose this could happen with the fact that you moved the lime folder to another folder. As a rule, you will never have to move lib to another folder, otherwise haxe will not know the location.

Unless I'm sorry, I am not using FD, but I am hiding or sublime text.

+4
source

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

Many forums recommend checking that the HAXEPATH environment HAXEPATH not set. In my case, it was not installed, but I got a similar lime error in what was posted here. Unlike what these forums were discussing by manually exporting the HAXEPATH variable, I was able to successfully run both the lime and openfl settings.

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

Here is 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 currently defined. If you have not defined the haxelib repository path, you can do this by running haxelib setup . On my system, the path was /usr/share/haxe/lib .

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

Complete setup

haxelib run lime setup
haxelib run openfl setup

Confirm that everything works

Run lime or openfl . You should receive a greeting from pop-ups from both.

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

+1
source

Source: https://habr.com/ru/post/1200620/


All Articles