question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Socket not found on Yosemite with brew and ST3

See original GitHub issue
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'

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:18

github_iconTop GitHub Comments

2reactions
mkalygincommented, Dec 9, 2015

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.

0reactions
SimpleAppcommented, May 7, 2016

Note to the people skipping the thread and jumping directly to the end : the version provided on Package Control isn’t up to date at this point. In my case i had to manually fix the “sublime_completion/mix.exs” file myself (see https://github.com/vishnevskiy/ElixirSublime/issues/18). You may want to install the plugin manually rather than rely on package control.

You may want to look at your tempdir for a ElixirSublime.log file (use “echo $TMPDIR” in terminal to find it) to troubleshoot your particular issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Frequently Asked Questions about Visiting Yosemite in 2023
If you try to find availability on Recreation.gov and it says reservations are not yet released, it means no more reservations are available...
Read more >
Homebrew cask option not recognized? - Stack Overflow
As of 2021, the answer to this question for me was that instead of brew cask install myprogram. I should run: brew install...
Read more >
Untitled
Dr dudenhoefer erie, Our solar system planets pluto, Basen zalesie cennik, Enbridge adams station, Aperture ring not working, Hope drone godspeed you black ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found