SiebelsTim / hack-sublime

Hack's typechecker & autocompletion inside Sublime Text
30 stars 4 forks source link

Osx fixes #2

Closed girvo closed 10 years ago

girvo commented 10 years ago

This is a dirty hack (I don't really expect you to accept this PR, more just wanted to show what I was talking about in my issue), that changes the plugin to search sublime.Window.folders() for .hhconfig as well as the folder of the current file.

It also includes a small function that will search for hh_client on your $PATH, instead of hoping it'll just be there. Both have been tested and appear to work in OS X :)

SiebelsTim commented 10 years ago

Okay, I got earlier to it than I thought :P I merged your PR and fixes some errors I encountered on linux. And now hh_client handles the absence of .hhconfig

Thank you!

girvo commented 10 years ago

No, thank you! :D