Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems with Code 1.53.X on CentOS 7 (100% CPU)?

Since upgrading to the latest VS Code (1.53.2) on my CentOS 7 host recently (64-bit x86), code chews up 100% of a core, indefinitely, every time I ran it (no extension installed).

When I downgraded code to 1.52.0 everything was fine again, CPU utilisation was normal; but when I upgraded again to 1.53.2 (or 1.53.0), the same 100% CPU utilisation problem reemerged.

See the problem in action here: https://www.youtube.com/watch?v=kicUYrwSY-A

Sounds like either something was broken in code 1.53.X, or could it be CentOS, now that Redhat is deprecating it. Hope someone has a solution, other than downgrading Code that is.

like image 244
Hai Vu Avatar asked Feb 17 '21 22:02

Hai Vu


1 Answers

We have a working solution on our side with:

  • CentOS Linux release 7.9.2009 (Core)
  • Visual Studio Code 1.58.2

Instead of installing it with yum package manager, we install it through snapcraft.io

First, install Snap on CentOS: https://snapcraft.io/docs/installing-snap-on-centos

sudo yum install epel-release -y
sudo yum install snapd -y
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap

And then, install Visual Studio Code through Snap:

sudo snap install code --classic
like image 109
Kevin Lemaire Avatar answered Oct 11 '22 04:10

Kevin Lemaire