Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various errors when using haxelib from 3.1.3 in Ubuntu 14.04.2 #3924

Closed
baraujo opened this issue Feb 26, 2015 · 6 comments
Closed

Various errors when using haxelib from 3.1.3 in Ubuntu 14.04.2 #3924

baraujo opened this issue Feb 26, 2015 · 6 comments

Comments

@baraujo
Copy link

baraujo commented Feb 26, 2015

Steps:

  1. $ git clone --recursive git://github.com/HaxeFoundation/haxe.git && cd haxe
  2. git checkout 3.1.3
  3. $ make; sudo make install
  4. $ haxelib

Output:
/usr/lib/haxe/std/neko/_std/sys/io/FileInput.hx:60: characters 26-29 : Invalid package : std should be
std/Type.hx:32: characters 1-30 : Invalid package : std should be
std/Type.hx:33: characters 1-28 : Invalid package : std should be
std/Type.hx:64: characters 15-65 : Invalid package : std should be
std/Type.hx:94: characters 15-68 : Invalid package : std should be
std/Type.hx:159: characters 15-86 : Invalid package : std should be
/usr/lib/haxe/extra/haxelib_src/src/tools/haxelib/Main.hx:715: characters 32-55 : Class<sys.FileSystem> has no field absolutePath

Issue #3670 says that the first error line is caused by neko missing, but I've installed the Ubuntu version (2.0.0-3) to no avail. As for the other lines, I couldn't find anything.

@Simn
Copy link
Member

Simn commented Feb 26, 2015

Using Haxe 3.1.3 with git haxelib is not a good idea.

@baraujo
Copy link
Author

baraujo commented Feb 26, 2015

I was just trying to use HaxeFlixel, and they recommend using haxelib for installing, as stated in http://haxeflixel.com/download/; so, how should I proceed?

@waneck
Copy link
Member

waneck commented Feb 26, 2015

Can you try to run haxelib on a folder other than the haxe folder?
IIRC there was a problem when running haxelib that uses --run inside the haxe's folder. It's got something to do with std folder paths.

@baraujo
Copy link
Author

baraujo commented Feb 26, 2015

Ok, ran haxelib in another folder, the last error persists:

/usr/lib/haxe/extra/haxelib_src/src/tools/haxelib/Main.hx:715: characters 32-55 : Class<sys.FileSystem> has no field absolutePath

It seems haxelib was indeed using files from the haxe directory, somehow.

@waneck
Copy link
Member

waneck commented Feb 26, 2015

That's because the haxelib_src submodule isn't updated to the v.3.1.3 version. Please do a git submodule update where you've checked out haxe, and do a new make install

@baraujo
Copy link
Author

baraujo commented Feb 26, 2015

Thanks, this solved the issue, now haxelib is working as intended. Since there is no problem with the code itself and it was all caused by running a git checkout 3.1.3 and "misaligning" the repos, I'll close this issue.

Also, thanks for the speedy responses, this further motivates me to use Haxe :-)

@baraujo baraujo closed this as completed Feb 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants