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

Error chdir crashes #207

Closed
ruby0x1 opened this issue Apr 27, 2015 · 7 comments
Closed

Error chdir crashes #207

ruby0x1 opened this issue Apr 27, 2015 · 7 comments

Comments

@ruby0x1
Copy link

ruby0x1 commented Apr 27, 2015

/usr/lib/haxe/std/neko/_std/Sys.hx:87: characters 2-24 : Error chdir /Applications/Sublime
tools/haxelib/Main.hx:309: characters 17-43 : Called from
tools/haxelib/Main.hx:1508: characters 2-22 : Called from
--macro:1: character 0 : Called from
Aborted

Trying to use haxelib on 3.2.0-rc.3 version, is irregularly broken.
It looks related to paths with spaces in them, as the only time I have this issue is when that is the case.
#191 could be related, I have used haxelib setup to a custom location.
#197 mentions this, but somehow ends with a PR for HG support, I have no idea how those relate.

This is becoming rather problematic in practice, as it affects all IDE's being able to query haxelib reliably, returning invalid results and sometimes errors in "unrelated" code, because the assumption is that haxelib isn't returning errors on stdout.

I'm filing the issue so that I can also look into it, hopefully when I have some time, but since there is so much going on behind the scenes with haxelib right now that isn't user facing, I have to assume it might already be fixed, somewhere.

Advice welcome!

@ruby0x1
Copy link
Author

ruby0x1 commented Apr 27, 2015

Definitely related to spaces:

$ mkdir test
$ cd test
$ haxelib run something
//works
$ cd ../
$ mkdir "test test"
$ cd test\ test/
$ haxelib run something
//unrelated errors

Here's a paste from the above:

sven$ pwd
/Users/sven/dev/test test
sven$ haxelib run flow
Unknown command test
Haxe Library Manager 3.2.0-rc.3  ... usage info

@ruby0x1
Copy link
Author

ruby0x1 commented May 2, 2015

Also crashes : missing dev paths.

haxelib dev libname ~/some_path/
rm -rf ~/some_path/
haxelib run libname
Error chdir ~/some_path/

@back2dos
Copy link
Member

back2dos commented May 2, 2015

Can you please open a separate issue for the latter and also make
suggestions as to what the behavior should be in that case?

On Sat, May 2, 2015 at 6:03 AM, Sven Bergström notifications@github.com
wrote:

Also crashes : missing dev paths.

haxelib dev libname ~/some_path/
rm -rf ~/some_path/
haxelib run libname
Error chdir ~/some_path/


Reply to this email directly or view it on GitHub
#207 (comment)
.

@ruby0x1
Copy link
Author

ruby0x1 commented May 2, 2015

I'm still trying to figure out exact problems without spamming the list, but sure I can move it to another issue.

@chichilatte
Copy link

Yep, i had this problem. I removed the space in a folder name and that fixed it. Thanks @underscorediscovery! (this was on OSX 10.7, haxelib 3.2.0-rc.3)

@KeyMaster-
Copy link

Just also bumped into this problem. My way of fixing it was to put double quotes around the working directory that is passed to haxelib in the haxelib executable script, like so:
exec haxe -D haxelib_client=3.2.0-rc.3 --run tools.haxelib.Main -cwd "$OLDCWD" $@ (instead of simply -cwd $OLDCWD)

@nadako
Copy link
Member

nadako commented Mar 12, 2016

As I understand, this too is now "fixed" by the fact haxelib is not a shell script anymore, but a nekoboot-ed executable (#291)

@nadako nadako closed this as completed Mar 12, 2016
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

5 participants