as3boyan / RemoveObsoleteVersions

Removes obsolete versions of locally installed haxelibs
MIT License
9 stars 1 forks source link

remove haxelib_client #1

Open yupswing opened 9 years ago

yupswing commented 9 years ago

clearlibs removed my haxelib_client and I can't install or remove anything anymore... (maybe bug introduced by the last version?)

Remove /usr/lib/haxe/lib/clearlibs/1,0,4 ? (y/n/a) [y/n/a] ? y Main.hx:152: Removing file: /usr/lib/haxe/lib/clearlibs/1,0,4/haxelib.json Main.hx:152: Removing file: /usr/lib/haxe/lib/clearlibs/1,0,4/run.n Main.hx:163: Removing folder: /usr/lib/haxe/lib/clearlibs/1,0,4 Remove /usr/lib/haxe/lib/haxelib_client/3,2,0-rc,2 ? (y/n/a) [y/n/a] ? y

This is quite a big issue, check it out!

(To solve the issue download and install Haxe again)

EDIT: Probably your lib was right, I see now I've got installed the haxelib_client: [3.2.0-rc.3] But, the haxelib in my usr bin was pointing at the lib removed

/usr/bin/haxelib: line 3: cd: /usr/lib/haxe/lib/haxelib_client/3,2,0-rc,2/src/: No such file or directory
--macro:1: character 0 : Class not found : tools.haxelib.Main
as3boyan commented 9 years ago

Currently clearlibs treats haxelib_client as regular lib

Not sure how it works on your system, but on my system(Windows) seems like it runs same haxelib.exe, maybe it gets recompiled when I run haxe update.hxml