Error Automatically Installing Lime - Uncaught exception - [file_contents,/haxelib.json]

I’m following the OpenFL setup guide here: http://www.openfl.org/documentation/setup/install-lime/

When I try C:>haxelib run lime setup

I get the following exception:

Called from ? line 1
Called from CommandLineTools.hx line 1300
Called from CommandLineTools.hx line 25
Called from CommandLineTools.hx line 64
Called from CommandLineTools.hx line 1026
Called from /usr/lib/haxe/std/neko/_std/sys/io/File.hx line 30
Uncaught exception - [file_contents,/haxelib.json]

I tried uninstalling and reinstalling lime but the setup just won’t work. I’m going to try it manually next.

I tried the manual install instructions on the site linked in the post above however I received a similar exception:

C:\Users\Arthur Payne>haxelib run lime setup
Called from ? line 1
Called from CommandLineTools.hx line 1300
Called from CommandLineTools.hx line 25
Called from CommandLineTools.hx line 64
Called from CommandLineTools.hx line 1026
Called from /usr/lib/haxe/std/neko/_std/sys/io/File.hx line 30
Uncaught exception - [file_contents,/haxelib.json]

I forgot to mention earlier, I’m installing on Windows 7.

The error seems to indicate there was a problem reading the haxelib.json file.
Could you check manualy if it exists, (in your haxe installation folder) lib/lime/2,0,0/haxelib.json?
If it exists maybe try accessing it in the console (using something like the type command) to see if you have the rights to read it.

Well, this is a funny pickle.

When I do this: C:\Users\Arthur Payne>haxelib install lime

I get this: You already have lime version 2.0.0 installed

But I can’t find any of the files from Lime on my system anywhere I look. Is it possible it’s giving me a false positive on the install?

Not totally impossible if the installation was only partially successful but that means there’s a least something installed.

Check the path where haxelib thinks lime is installed with haxelib path lime.

I may have found the problem. It seems I still had an older verson of Haxe installed. I’ll remove it and the current version and reinstall the current version, and see if that changes things.

Yes! That seems to have fixed it. haxelib run lime setup is working now!

1 Like