ElixirSublime: Socket not found on Yosemite with brew and ST3

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 358, in on_query_completions
    res = callback.on_query_completions(v, prefix, locations)
  File "/Users/user/Library/Application Support/Sublime Text 3/Packages/ElixirSublime/elixir_sublime.py", line 270, in on_query_completions
    if not session.send('COMPLETE', expand_selection(view, locations[0], aliases=aliases)):
  File "/Users/user/Library/Application Support/Sublime Text 3/Packages/ElixirSublime/elixir_sublime.py", line 189, in send
    self.socket.send(str.encode(cmd))
AttributeError: 'NoneType' object has no attribute 'send'

About this issue

Most upvoted comments

I’ve investigated this issue (Win 10 x64, ST3 Build 3083). By looking at the source code I’ve found that you can find log file in %TEMP%\ElixirSublime.log. And the log file was really helpful.

My log file had the following content:

Could not find Hex, which is needed to build dependency :poison
Shall I install Hex? [Yn] ** (Mix) Could not find an SCM for dependency :poison from SublimeCompletion.Mixfile

So the reason of this error is a missing Hex package manager. To install it run the following command: mix local.hex.

After that the socket.timeout: timed out error was fixed. Then I’ve got another error in ST3 console:

Traceback (most recent call last):
  File "C:\tools\sublime\sublime_plugin.py", line 312, in on_activated_async
    callback.on_activated_async(v)
  File "C:\tools\sublime\Data\Packages\ElixirSublime\elixir_sublime.py", line 254, in on_activated_async
    self.on_load_async(view)
  File "C:\tools\sublime\Data\Packages\ElixirSublime\elixir_sublime.py", line 259, in on_load_async
    ElixirSession.ensure(os.path.dirname(filename))
  File "C:\tools\sublime\Data\Packages\ElixirSublime\elixir_sublime.py", line 160, in ensure
    session.connect()
  File "C:\tools\sublime\Data\Packages\ElixirSublime\elixir_sublime.py", line 183, in connect
    for lib_path in find_ebin_folders(self.mix_project):
  File "C:\tools\sublime\Data\Packages\ElixirSublime\elixir_sublime.py", line 82, in find_ebin_folders
    for lib in os.listdir(lib_path):
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\Michael\\Desktop\\elixir-course\\streamers\\_build/dev/lib\\*.*'

The reason of this error is that I haven’t run mix run for the first time. So running this command fixed the issue.

Hope these bugs will be fixed soon and the info provided by me will be useful.

Thanks, Michael.