Package Details: code-git 1.66.0.r94376.gd5b0615eca7-1

Git Clone URL: https://aur.archlinux.org/code-git.git (read-only, click to copy)
Package Base: code-git
Description: The Open Source build of Visual Studio Code (vscode) editor - git latest
Upstream URL: https://github.com/microsoft/vscode
Keywords: vscode
Licenses: MIT
Conflicts: visual-studio-code-git
Provides: visual-studio-code-git
Submitter: Zrax
Maintainer: None
Last Packager: Zrax
Votes: 18
Popularity: 0.000008
First Submitted: 2017-12-18 23:10 (UTC)
Last Updated: 2022-03-16 15:49 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 Next › Last »

Robert314 commented on 2020-07-14 12:57 (UTC)

hunk failed at #34

fbianconi commented on 2020-07-10 17:43 (UTC)

@MCWertGaming

The problem is in the code-liveshare.diff there's a conflict on the line that's supposed to be patched, the workaround I've come up with is to edit the PKGBUILD, in the prepare function comment out or delete the line 67:

patch -p1 -i "${srcdir}/code-liveshare.diff"

and add the next line instead:

sed -i '39i "ms-vsliveshare.vsliveshare",' product.json

LinuxUserGD commented on 2020-05-24 07:58 (UTC)

Please change to nodejs-lts-erbium as it's the latest supported nodejs lts version.

MCWertGaming commented on 2020-05-05 20:30 (UTC) (edited on 2020-05-05 20:30 (UTC) by MCWertGaming)

Visual studio code is not compiling on latest commit, i get this error:

==> Starting prepare()...
patching file product.json
patching file product.json
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file product.json.rej
==> ERROR: A failure occurred in prepare().
    Aborting...

LinuxUserGD commented on 2019-12-14 13:06 (UTC) (edited on 2019-12-25 22:54 (UTC) by LinuxUserGD)

[13:52:36] Starting optimize-vscode ...
There is a dependency cycle between 'vs/workbench/contrib/remote/browser/remote' and 'vs/workbench/contrib/remote/browser/tunnelView'. The cyclic path follows:
vs/workbench/contrib/remote/browser/remote => 
vs/workbench/contrib/remote/browser/tunnelView => 
vs/workbench/contrib/remote/browser/remote
[13:52:41] 'vscode-linux-x64-min' errored after 5.53 min
[13:52:41] Error: Cannot do topological sort on cyclic graph, remaining nodes: ===anonymous2===,vs/workbench/workbench.desktop.main,vs/workbench/workbench.common.main,vs/workbench/contrib/remote/browser/remote,vs/workbench/contrib/remote/browser/tunnelView
    at topologicalSort (/run/media/user/user/yay/code-git/src/vscode/build/lib/bundle.js:460:15)
    at emitEntryPoints (/run/media/user/user/yay/code-git/src/vscode/build/lib/bundle.js:81:27)
    at Object.loader (/run/media/user/user/yay/code-git/src/vscode/build/lib/bundle.js:62:31)
    at Function.Module._invokeFactory (evalmachine.<anonymous>:1036:41)
    at Module.complete (evalmachine.<anonymous>:1046:36)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1663:20)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1675:30)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1675:30)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1675:30)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1675:30)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1675:30)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1675:30)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1675:30)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1675:30)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1675:30)
    at ModuleManager._onModuleComplete (evalmachine.<anonymous>:1675:30)

*** NOTE: If the build failed due to running out of file handles (EMFILE),
*** you will need to raise your max open file limit.
*** You can check this for more information on how to increase this limit:
***    https://ro-che.info/articles/2017-03-26-increase-open-files-limit
Error making: code-git
[user@archlinux code-git]$ 

Edit: Package now compiles fine for me. Thanks for making it working again!

AndreVallestero commented on 2019-12-13 15:55 (UTC)

Anyone trying to install VSCode for aarch64 (Devices such as Pinebook Pro) should look at the Headmelted VSCode package in the AUR. It has working binaries for aarch64.

johnramsden commented on 2019-12-12 07:13 (UTC)

What would be the recommended course of action for aarch64 considering electron6 isn't available?

colorfulsing commented on 2019-11-28 03:15 (UTC) (edited on 2019-11-28 03:18 (UTC) by colorfulsing)

Hi everyone!

For anyone that want to install it on aarch64 (like Pinebook Pro or Pi4) you need to edit PKGBUILD at line 9 to add 'aarch64' as follows:

arch=('i686' 'x86_64' 'armv7h' 'aarch64')

And then add this code to the case statement at line 38:

    aarch64)
        _vscode_arch=arm64
        ;;

If you have less than 8GB RAM on your system (like on Pinebook Pro or Pi4) then make sure to add a swap partition or swap file to increase your RAM before compiling.

Thank you very much @Zrax for creating this package, it has been incredibly useful to me and so many people!

For everyone like me that prefer a patch file, here is the Git patch:

diff --git a/PKGBUILD b/PKGBUILD
index 282fdd7..c692486 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=code-git
 pkgdesc='The Open Source build of Visual Studio Code (vscode) editor - git latest'
 pkgver=1.38.0.r1831.g3d3202804b
 pkgrel=1
-arch=('i686' 'x86_64' 'armv7h')
+arch=('i686' 'x86_64' 'armv7h' 'aarch64')
 url='https://github.com/microsoft/vscode'
 license=('MIT')
 depends=('electron' 'libsecret' 'libx11' 'libxkbfile' 'ripgrep')
@@ -35,6 +35,9 @@ case "$CARCH" in
     armv7h)
         _vscode_arch=arm
         ;;
+    aarch64)
+        _vscode_arch=arm64
+        ;;
     *)
         # Needed for mksrcinfo
         _vscode_arch=DUMMY