-
Notifications
You must be signed in to change notification settings - Fork 645
Go tools (gopls) stop working via Remote SSH after update to 0.11.5 #2767
Comments
Reverted remote vscode-go to 0.11.4. All works again. |
Thank you for the issue report. @1yefuwang1 and @enix223, I'll continue the discussion of #2768 here. Can you add a bit more information about your remote machines? @ramya-rao-a: Are you aware of any tools for debugging extensions running remotely? My best idea right now is that I can add some more debug logging to my version of the extension, package a new .vsix file, and ask someone to install it remotely and inspect the logs. |
Well, FWIW, I added a few log statements and rebuilt the extension on my fork (https://github.com/stamblerre/vscode-go/blob/master/Go-0.11.5.vsix). If you can download this file onto your remote machine, go to the Extensions menu and click the "..." in the top right corner, you will see the "Install from VSIX" option. If you select Go-0.11.5.vsix file I linked, you'll get the version of the extension with log statements. After reloading the VSCode window, you should see some logs from the extension (you can look at them using "View: Toggle Developer Tools"). If you could share those logs, that might at least help us begin understanding the problem. |
For clean setup I created a VM with Ubuntu Server 18.04.4 in the cloud (any VPS provider is fine). Installed Go and connect to it from VSCode via Remote - SSH from Windows machine. Install remote Go 0.11.5 and gopls. And it doesn't work. Downgraded to the version 0.11.4 and it start working. @stamblerre I'll try your build. |
You can actually debug a remote extension similarly to how they are debugged locally in the Extension Development Host. Clone the extension to the remote host and open that folder with the Remote-SSH extension. Then the extension debug launch config should work as normal. |
Here's log.
On a computer outside corporate network vscode-go 0.11.5 works. |
Figured out that plugin 0.11.5 stop working after updating gopls to v0.1.7. It works with previous version ( Steps to reproduce:
It seems that Go 0.11.5 only doesn't work with gopls v0.1.7 when there's a proxy. |
Are you seeing this behavior with the new beta version of the extension that Ramya pushed (https://github.com/microsoft/vscode-go/releases/tag/latest)? There really shouldn't be anything with |
0.11.6-beta.1 also doesn't work. I see that there're outgoing connections to the corporate proxy from inside VM in VirtualBox: When I use VM with Linux as remote machine in the cloud (that is outside of corporate network where there's a proxy), it tries to connect to the proxy host from VM anyway. I see the same errors in log:
|
No, after some timeout 0.11.6-beta.1 start working: In logs:
|
Yes, 0.11.6-beta.1 works with gopls v0.1.7 (need to wait some timeout until connection to the proxy fail). Thanks a lot! P.S. It's still strage that remote plugin on linux uses proxy settings from Windows host. Proxy has domain authentication that's why it fails on linux host in VirtualBox (or in the cloud where there's no proxy at all). |
I got this error output in Log(window) with go-extension 0.11.5:
|
@kidlj For the time being, can try the latest beta version? It has the fix to not block the starting of the language server when failing to connect to the proxy. |
Hello all, I have just released an update(0.11.6) where we have replaced the outgoing call with known hard-coded value of the latest version for gopls. This should fix the problem reported here. I have logged an issue #2776 to discuss next steps on how to make this check better, please feel free to provide your thoughts there. |
I'm using "Remote - SSH" plugin to work on a Go project. I have Windows host and VirtualBox with Ubuntu VM.
Steps to Reproduce:
Expected
gopls started on Ubuntu machine and VSCode language features work as expected.
Actual
gopls not started and nothing works: no tooltips, no completion, etc.
Comments
All works with local projects on Windows.
vscode-go 0.11.4 worked in Remote-SSH.
Version: 1.38.1 (user setup)
Commit: b37e54c98e1a74ba89e03073e5a3761284e3ffb0
Date: 2019-09-11T13:35:15.005Z
Electron: 4.2.10
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.18362
gopls version
golang.org/x/tools/gopls v0.1.7
golang.org/x/tools/gopls@v0.1.7 h1:YwKf8t9h69++qCtVmc2q6fVuetFXmmu9LKoPMYLZid4=
golang-vo version 0.11.5
The text was updated successfully, but these errors were encountered: