dlang-community / DCD

The D Completion Daemon is an auto-complete program for the D programming language
GNU General Public License v3.0
349 stars 72 forks source link

std.socket.SocketOSException@std\socket.d(2820): Unable to connect socket #298

Open bubnenkoff opened 8 years ago

bubnenkoff commented 8 years ago

Last version of DCD that works for me fine was version released more then one year ago. I tried to migrate to new version, but every time I got next error: http://img.ctrlv.in/img/16/02/16/56c2d38b9257e.png

now I decided to update my DCD again and get same problem. I use dcd with Sublime. Is there any way to find why it's crush?

ghost commented 8 years ago

This error happens when the port is already used (by default 9166). I don't use Sublime but I've encountered recently the same error with CE when trying to wait for the server with a temp socket.

bubnenkoff commented 8 years ago

How to check what app use this port?

And is it's possible to inform user about it, instead of crushing?

2016-02-16 16:53 GMT+03:00 Basile Burg notifications@github.com:

This error happens when the port is already used (by default 9166). I don't use Sublime but I've encountered recently the same error with CE when trying to wait for the server with a temp socket.

— Reply to this email directly or view it on GitHub https://github.com/Hackerpilot/DCD/issues/298#issuecomment-184691312.

ghost commented 8 years ago

There is a tool for this in the Microsoft internal pack (formely sysinternals) called PortMon. Maybe even ProcessMonitor does it. Otherwise with the command netstat you can check if something uses it.

tofuninja commented 8 years ago

Just fyi, I was getting this from sublime as well using dkit, for me it was because dkit was not starting the server. Fixed when I ran "DKit: Restart DCD Autocompletion Server" from the sublime command box.

CyberShadow commented 5 years ago

http://img.ctrlv.in/img/16/02/16/56c2d38b9257e.png

The link is dead.

If this issue is not the result of a bug in DCD, then it should probably be closed.