You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting the issue. I collected a strace and it appears that gocode is trying to set the SO_BROADCAST option on the UNIX socket, which unfortunately WSL does not support currently. socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3 setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = -1 EINVAL (Invalid argument)
I have opened a bug for this, but it won't make the cut for the Anniversary update release. But, it should get fixed post that. If you can also post what is that you are trying to do with gocode, then when the bug gets fixed, we can validate the rest of your workflow also.
Try gocode on build 14915. We added support for SO_BROADCAST so that should help. I was able to do an apt-get install gocode and run gocode with no errors.
I should point out that we do not support snap apps.
Olivier Paroz (@oparoz) - Thanks. If you can collect a strace of the failing command strace -o <trace_file> -ff <command> and share out the trace file, we can see what socket option the command is failing at. Also, do try it on 14915.
Activity
sunilmut commentedon Jun 23, 2016
Thanks for reporting the issue. I collected a strace and it appears that gocode is trying to set the SO_BROADCAST option on the UNIX socket, which unfortunately WSL does not support currently.
socket(PF_LOCAL, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3 setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = -1 EINVAL (Invalid argument)I have opened a bug for this, but it won't make the cut for the Anniversary update release. But, it should get fixed post that. If you can also post what is that you are trying to do with gocode, then when the bug gets fixed, we can validate the rest of your workflow also.
And, thanks for trying out WSL!
tirpen commentedon Jun 23, 2016
Hi. Thank you for taking this into account.
Gocode is called by deoplete-go inside nvim to provide code completion. It is a common workflow for Go development both in Mac and Linux.
therealkenc commentedon Jun 24, 2016
I don't use vim or go, but
gocode -sock="tcp"starts.oparoz commentedon Aug 13, 2016
Sunil Muthuswamy (@sunilmut)
Here is the use case for me
russalex commentedon Sep 1, 2016
Try gocode on build 14915. We added support for SO_BROADCAST so that should help. I was able to do an apt-get install gocode and run gocode with no errors.
I should point out that we do not support snap apps.
sunilmut commentedon Sep 1, 2016
Olivier Paroz (@oparoz) - Thanks. If you can collect a strace of the failing command
strace -o <trace_file> -ff <command>and share out the trace file, we can see what socket option the command is failing at. Also, do try it on 14915.tirpen commentedon Sep 3, 2016
Our Gocode + nvim use cases work as intended after 14915, Russ Alexander (@russalex).
Thank you for addressing this.