Open stdedos opened 4 years ago
Does this issue comes with a suggestion for improvement? The other option is to ignore errors by default and hide any possible legit error.
I really don't understand what is the purpose of this issue if it is not start a conversation about possible better approaches but is not the case :thinking:
The suggestion is:
I can understand somehow what
swallow_startup_errors
wall of error means
If I knew what the problem is, or was able to somehow understand it, we could discuss about something. If I don't know, I can only say: "Anaconda barfed - here's what it tried to tell me"
Even the code provided at the Console Logs seems broken (or I am doing something wrong - enlighten me)
That error is telling you that for unknown reasons to the plugin, it is having a hard time trying to connect the ST3 side with the background server side and that it failed 21 times to do in 2 seconds. That can be fine or can make the plugin to don't work at all and it might surface other issues that you can have in your setup.
The code, looks like is missing quotes around the path for the UNIX socket file and then that AF_INET
should be AF_UNIX
as you are trying to access a UNIX socket and not a TCP endpoint, will take a look to the code that generates that code, apart from that I can not tell you anything about this, if anaconda works fine for you, just set the swallowing option to true and call it day.
[...] if anaconda works fine for you, just set the swallowing option to true and call it day.
In all honesty, Anaconda never fully worked for me the way I expected it to work.
So, I am not sure what works and what not 😕
I have a similar error when opening a file through drag and drop (in Origami):
<Anaconda.anaconda_lib.workers.local_worker.LocalWorker object at 0x130000229C4DE8CC0> initial check failed because:
connection to localhost:53849 timed out after 0.2s. tried to conned 7 times during 2.0 seconds
check that there is Python process executing the anaconda jsonserver.py script running in your system. If there is, check that you can conned to your localhost writing the following script in your Sublime Text 3 console:
import socket socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect("("localhost", 53849)")
If anaconda works just fine after you received this error and the command above worked you can make anaconda to do not show you this error anymore setting the 'swallow_startup_errors' to 'true' in your configuration file.
I get this popup periodically, too. Anaconda works as expected. The problem with the suggested resolution is that the snippet contains a syntax error:
suggested:
import socket; socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect("("localhost", 49878)")
should be:
import socket; socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect(("localhost", 49878))
Expected Behaviour
I can debug
swallow_startup_errors
wall of errorActual Behaviour
Steps to Reproduce
??
ST3, Anaconda and OS versions
3211 / ?? / Ubuntu 16.04
ST3 Console Logs
Anaconda's JsonServer Logs
Note: Anaconda's JsonServer logs can be found in:
A lot of data, with a lot of names and A LOT of history. You'll have to settle for: