golang / vscode-go

Go extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=golang.Go
Other
3.89k stars 751 forks source link

Editing import path freezes whole system #1912

Closed prakharmaurya closed 2 years ago

prakharmaurya commented 2 years ago

As I edit the line of import path a bit. It just freezes whole system. Only thing can only be done is to force shutdown system and it happening again and again from yesterday. I left my system overnight even display didn't gone dim. Tried to open terminal and restart desktop environment from different shortcuts but just nothing happens.

Tried

  1. Reinstalled Go Extension

Go specs

Operating System: Garuda Linux KDE Plasma Version: 5.23.3 KDE Frameworks Version: 5.88.0 Qt Version: 5.15.2 Kernel Version: 5.15.5-zen1-1-zen (64-bit) Graphics Platform: X11 Processors: 4 × Intel® Core™ i5-7200U CPU @ 2.50GHz Memory: 7.6 GiB of RAM Graphics Processor: Mesa Intel® HD Graphics 620

Steps to reproduce the behavior:

I don't know exactly

hyangah commented 2 years ago

@prakharmaurya If it happens repeatedly, can you share the example to reproduce the problem?

And, please enable tracing and share the gopls trace if you can still manage to inspect vscode's Output channel when problem happens? (Instruction: https://github.com/golang/vscode-go/blob/master/docs/troubleshooting.md#collect-gopls-information)

prakharmaurya commented 2 years ago

Yes It happens to every time when I edit import path of any package but I couldn't get any trace output at time of freeze. System just freezes. If there is a file which records the trace that may survive the restart. It is happening to me from last 5 days. I tried to updated everything OS VS code Go Extension. It still happens. Thank You for response.

suzmue commented 2 years ago

Sorry without the trace, we aren't going to be able to do anything about this :( If you can try having the trace window open maybe you can screenshot it?

Please feel free to reopen if you have more info.