Can't build VS code in manjaro KDE

==> Retrieving sources...
  -> Found code_x64_1.49.1.tar.gz
  -> Found visual-studio-code.desktop
  -> Found visual-studio-code-url-handler.desktop
==> Validating source files with sha256sums...
code_x64_1.49.1.tar.gz ... FAILED
visual-studio-code.desktop ... Passed
visual-studio-code-url-handler.desktop ... Passed
==> ERROR: One or more files did not pass the validity check!
Failed to build visual-studio-code-bin

Why would you want to build it yourself when it is in the offcial repo (including Archlinux)?

sudo pacman -Syu code

This means the PKGBUILD does not include the correct checksums.

Solution one

Contact the maintainer of said PKGBUILD and make the maintainer aware of the issue.

Solution two
Solve it using native Archlinux commands as follows - including explanations

  1. Ensure all necessary packages are available

    $ sudo pacman -Syu git base-devel --needed
  2. Clone the repo

    $ git clone
  3. Change folder to the newly cloned repo

    $ cd visual-studio-code-bin
  4. Update the PKGBUILD checksum section

    $ updpkgsums
  5. Build and install the package - and required dependencies

    $ makepkg -is
1 Like

I tried official repo but it includes unwanted dependencies that includes electron js

Visual Studio code is build on electron - you cannot avoid that.

yeah… but generally it doesn’t install along with that

Yes it does - you just don’t see it.

You see it with the repo version because electron has been separated from the editor.

Ohh, didn’t knew that