haxe-sublime-bundle icon indicating copy to clipboard operation
haxe-sublime-bundle copied to clipboard

Path problems on El Capitan

Open jonathonyule opened this issue 9 years ago • 6 comments

When trying to build from Sublime Text 3 on El Capitan I'm getting an error

sh: neko: command not found [Finished in 0.1s with exit code 127] [cmd: ['/usr/local/lib/haxe/haxelib', 'run', 'openfl', 'test', 'Project.xml', 'cpp', '-debug']] [dir: /Users/jonathonyule/dev/default] [path: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/lib/haxe]

In the settings I've tried setting the paths directly

"haxe_path" : "/usr/local/lib/haxe/haxe", "haxe_library_path" : "/usr/local/lib/haxe/std", "haxelib_path" : "/usr/local/lib/haxe/haxelib",

Any one have an idea of where I could start?

jonathonyule avatar Nov 18 '15 04:11 jonathonyule

Having exactly the same problem. Could you find any solution?

aenriquezgentile avatar Dec 09 '15 15:12 aenriquezgentile

It happens with the haxe_run_build command as well, but not if --connect 6001 is removed from the flags!

After some testing it looks like neko isn't actually being called from the sublime pugin at all, it looks like it's happening somewhere on the haxe-side of things. The haxe installation should have symlinked /usr/local/bin/neko to /usr/local/lib/neko/neko, so neko should be accessible through $PATH.

A quick and dirty fix is to disable rootless and create symlinks to haxe and neko in /usr/bin ie: sudo ln -sf /usr/local/bin/haxe /usr/bin/haxe and sudo ln -sf /usr/local/bin/neko /usr/bin/neko

A better fix might be to figure out why some part of the haxe build isn't seeing neko through $PATH

haxiomic avatar Jan 15 '16 19:01 haxiomic

I'm sorry but I can't really test on OSX right now. There is certainly something wrong with PATH or more probably with NEKOPATH (see http://nekovm.org/doc/begin) I'm not too much in favor of adding this as a configuration variable in the bundle, I think it should be fixed when installing haxe...

clemos avatar Jan 18 '16 10:01 clemos

hello ! i just ran into this problem and fixed it with fixMAcPath package control https://packagecontrol.io/packages/Fix%20Mac%20Path

postite avatar Feb 12 '16 06:02 postite

please excuse if im respawning this thread. did anyone get a good result from this on el crapitan? i did install fix mac path, but still problem of it saying its building, but not producing anything

settings are as such

{
"haxe_path" : "/usr/local/lib/haxe",
"haxe_library_path" : "/usr/local/lib/haxe/std",
"haxelib_path" : "/usr/local/lib/haxe/lib"
}

lewislepton avatar Sep 17 '16 14:09 lewislepton

hmmm. weird. seems to have kickstarted back up

EDIT scrap that. back to normal and now not picking up. seems to be that maybe its the amount of time waiting. its odd

lewislepton avatar Sep 17 '16 14:09 lewislepton