clemos / haxe-sublime-bundle

Sublime Text bundle for Haxe programming language
Apache License 2.0
237 stars 85 forks source link

Starting Haxe server on port 6001 error: Error starting Haxe server /usr/local/bin --wait 6001: [Errno 13] Permission denied #139

Closed jah2488 closed 10 years ago

jah2488 commented 10 years ago

Trying to get haxe up and running on my new MBP has landed me with this error and I'm not sure what to do about it.

I can compile the code fine from the command line, but I can't figure out why sublime is having permission errors when trying to run the haxe bin from usr/local/bin.

backtrace from sublime console

Starting Haxe server on port 6002
error: Error starting Haxe server /usr/local/bin --wait 6002: [Errno 13] Permission denied
Running /usr/local/bin -lib flixel -lib openfl -cp source -D tools=1.3.2 -D FLX_NO_DEBUG -D lime_native -D no-compilation -D display -D mac -D desktop --macro allowPackage('flash') -cp export/mac64/neko/haxe --macro keep("Main") --connect 6002 --cwd /Users/Justin/Projects/games/small/Input -main ApplicationMain -neko export/mac64/neko/obj/ApplicationMain.n
Traceback (most recent call last):
  File "HaxeComplete in /Users/Justin/Library/Application Support/Sublime Text 3/Installed Packages/Haxe.sublime-package", line 1946, in run
  File "exec in /Applications/Sublime Text.app/Contents/MacOS/Packages/Default.sublime-package", line 70, in __init__
  File "X/subprocess.py", line 818, in __init__
  File "X/subprocess.py", line 1416, in _execute_child
PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 524, in run_
    return self.run(**args)
  File "HaxeComplete in /Users/Justin/Library/Application Support/Sublime Text 3/Installed Packages/Haxe.sublime-package", line 1953, in run
AttributeError: 'module' object has no attribute 'getcwdu'
Starting Haxe server on port 6003
error: Error starting Haxe server /usr/local/bin --wait 6003: [Errno 13] Permission denied
Running /usr/local/bin -lib flixel -lib openfl -cp source -D tools=1.3.2 -D FLX_NO_DEBUG -D lime_native -D no-compilation -D display -D mac -D desktop --macro allowPackage('flash') -cp export/mac64/neko/haxe --macro keep("Main") --connect 6003 --cwd /Users/Justin/Projects/games/small/Input -main ApplicationMain -neko export/mac64/neko/obj/ApplicationMain.n
Traceback (most recent call last):
  File "HaxeComplete in /Users/Justin/Library/Application Support/Sublime Text 3/Installed Packages/Haxe.sublime-package", line 1946, in run
  File "exec in /Applications/Sublime Text.app/Contents/MacOS/Packages/Default.sublime-package", line 70, in __init__
  File "X/subprocess.py", line 818, in __init__
  File "X/subprocess.py", line 1416, in _execute_child
PermissionError: [Errno 13] Permission denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 524, in run_
    return self.run(**args)
  File "HaxeComplete in /Users/Justin/Library/Application Support/Sublime Text 3/Installed Packages/Haxe.sublime-package", line 1953, in run
AttributeError: 'module' object has no attribute 'getcwdu'

system info stuff

Haxe Compiler 3.1.3
-
Haxe Library Manager 3.1.0-rc.4
-
Sublime Text Build 3059
-
OS X 10.9.2
clemos commented 10 years ago

Your haxe_path seems wrong, it needs to be complete, probably /usr/local/bin/haxe

jah2488 commented 10 years ago

@clemos That makes most sense. Do you know of the best way of going about setting that?

clemos commented 10 years ago

You need to add it to your User Settings file (Preferences > Settings - User). Apparently, you've changed it at some time, because it should normally default to just "haxe"

jah2488 commented 10 years ago

@clemos Yep that did it. I had a few other issues I was dealing with that changing the path fixed, but obviously its caused this one. Everything is good now. Thanks for your help. Just really needed someone else's eyes on it.