-
Notifications
You must be signed in to change notification settings - Fork 645
I get an infinite save pop up while saving a go file #3141
Comments
It looks like you are working both outside of your GOPATH and outside of a module. Is this intentional? |
I am not working from outside GOPATH. This is a dummy code inside my src folder. My understanding is that everything inside src folder is supposed to work. I have been doing it for many projects before module came into picture. This code used to work just fine a few days ago. Let me know if I am missing a piece here. I would be happy to get it resolved by few tweeks. I didn't have this issue before updating to go 1.4.1. It was working fine with 1.4.0. It asked me to update gotools and since then I have this issue. |
Do you mean that the path to the file is something like Can you please capture your |
I couldn't open localhost:6060 to capture this information.because gopls hangs my computer. I have removed it from my bin files. Than only I can work. Now I can't take advantage of vscode features at least I can work. With gopls installed every time I hit save. My computer hangs and I have to reboot it. |
Is there a way I can go to the previous version of gopls. that worked for me. It was working fine before I upgraded golang to 1.14.1. I just need to start working on go projects and this is stopping me from using any feature vscode has for golang. |
Before downgrading can you try the following command from the root of your workspace?
You can pick up the previous version of gopls by running Available versions are https://pkg.go.dev/golang.org/x/tools/gopls?tab=versions If VS Code still responds, can you check the "View: Toggle Output" -> "gopls" channel from drop down menu (or |
+1 to all of @hyangah's suggestions above. FWIW, the save pop-ups are caused by a more recent version of VS Code, so I don't think that downgrading However, if |
I updated the gopls to the latest version 0.4.0 but it still had the same problem. I had to restart my computer because everything got stuck. and I went to the src folder of my gopath. but
|
Please fix it anyhow. It is stopping me from working on vscode at all. Because not working is something I can handle. But rebooting the entire Laptop again and again is not something I can do handle. |
Can you confirm the version of Please take a look at the recent |
I updated gopls to version 0.4.0 and vscode version to1.44.0. Now it is better than before. but My computer still got stuck and I had to restart it. but since then go command has become slow for me as well. go run command takes like forever to compile. I am again removing gopls so that I can work on projects. Please fix it ASAP. as it is hindering people like me to work properly. |
It's difficult for me to understand your issue without the answer to my question above:
If so, it sounds like you're encountering the "At your own risk" case described under the GOPATH mode section in golang/go#36899, which I linked above. The work-around to it would be opening just the single Go file you are working on, which As I suggested above, disabling |
I'm trying to centralize the discussions about this bug into one issue, so I'm going to close this in favor of #3179. |
Duplicate of #3179 |
I am working on Windows system. My Issue is exactly like this one #3105
It all started yesterday when I updated go to 1.4.1 and then vscode asked me to update a few pacakges.
This is the result of gopls
The text was updated successfully, but these errors were encountered: