VS Code freezes & PC crashes when I start the server with go

What happened

When I edit the go file with the editor after starting the server with go run ***. Go, gocode-gomod consumes a lot of CPU and the editor freezes & the PC crashes ...

environment

solution??

Open the configuration file (setting.json) and add the following code to cure it.

setting.json


{
  "go.useLanguageServer": true,
}

Even so, it was still moving and it was just better ...

Cause

https://github.com/golang/vscode-go/issues/249#issuecomment-647902730

It seems that gocode-gomod, which displays candidates for go, is currently consuming a lot of memory, and is under maintenance and development has stopped. So he asked me to use gopls instead!

~~ Now you can concentrate on development with go ^^ ~~

Recommended Posts

VS Code freezes & PC crashes when I start the server with go
When I run the exe file with pyinstaller, my PC crashes.
Reload the server set up with gunicorn when changing the code
Edit the file of the SSH connection destination server on the server with VS Code
Impressions and memorandums when working with VS code for the first time
I tried Flask with Remote-Containers of VS Code
Try touching the micro: bit with VS Code + Python
I wrote you to watch the signal with Go
Settings when developing App Engine / Python apps with VS Code
I wrote the code for Japanese sentence generation with DeZero
Settings to debug the contents of the library with VS Code
When you access the web server, L Chika with Arduino
When I start service with systemd, I get command not found even though the path is passing
The latest NGINX is an application server! ?? I measured the benchmark of NGINX Unit with PHP, Python, Go! !!
Check the code with flake8
When I start the virtual environment of conda, the prompt of bash collapses
Get the strongest environment with VS Code, Remote-Containers and remote docker-daemon
Check server I / O device usage with the Linux iostat command
I studied with Kaggle Start Book on the subject of kaggle [Part 1]
I tried sending an email from the Sakura server with flask-mail
Debug settings in virtual environment when using Pipenv with VS Code