Package Details: code-git 1.38.0.r5565.g8d1456e210-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: Zrax
Last Packager: Zrax
Votes: 14
Popularity: 0.41
First Submitted: 2017-12-18 23:10
Last Updated: 2020-01-13 20:28

Latest Comments

1 2 3 4 5 6 Next › Last »

hugegameartgd commented on 2019-12-14 13:06

[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

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

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

colorfulsing commented on 2019-11-28 03:15

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

hugegameartgd commented on 2019-11-11 15:02

I still get the same node-gyp error with electron6 pacman package (any node_modules/* module, e. g. native-watchdog, native-keymap, ...). I tried it with nodejs-lts-dubnium and nodejs.

Edit: Now it's

[20:16:18] 'vscode-linux-x64-min' errored after 14 min
[20:16:18] Error: Missing Electron option: version.
    at electron (/run/media/user/user/yay/code-git/src/vscode/node_modules/gulp-atom-electron/src/index.js:65:9)
    at /run/media/user/user/yay/code-git/src/vscode/build/gulpfile.vscode.js:271:10
    at /run/media/user/user/yay/code-git/src/vscode/build/lib/task.js:44:28
    at new Promise (<anonymous>)
    at _doExecute (/run/media/user/user/yay/code-git/src/vscode/build/lib/task.js:33:12)
    at _execute (/run/media/user/user/yay/code-git/src/vscode/build/lib/task.js:24:11)
    at vscode-linux-x64-min-ci (/run/media/user/user/yay/code-git/src/vscode/build/lib/task.js:63:19)
    at async _execute (/run/media/user/user/yay/code-git/src/vscode/build/lib/task.js:24:5)
    at async result (/run/media/user/user/yay/code-git/src/vscode/build/lib/task.js:63:13)
    at async _execute (/run/media/user/user/yay/code-git/src/vscode/build/lib/task.js:24:5)
    at async vscode-linux-x64-min (/run/media/user/user/yay/code-git/src/vscode/build/lib/task.js:63:13)

Zrax commented on 2019-11-07 21:46

I don't know anything about the electron provided by npm... I meant using the version provided by arch (e.g. by downloading from https://archive.archlinux.org/packages/e/electron/ ). When I tested the latest 6.1 version from there yesterday, it built correctly.

hugegameartgd commented on 2019-11-07 17:02

Also doesn't work with electron6 installed by npm (using sudo npm install electron@6-1-x -g --unsafe-perm=true --allow-root)

[user@archlinux code-git]$ electron --version
v6.1.4

I get

[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/11] ⡀ keytar
[2/11] ⡀ native-is-elevated
[3/11] ⡀ native-keymap
[4/11] ⡀ native-watchdog
error /run/media/user/user/yay/code-git/src/vscode/node_modules/native-is-elevated: Command failed.
Exit code: 1
Command: node-gyp rebuild
Arguments: 
Directory: /run/media/user/user/yay/code-git/src/vscode/node_modules/native-is-elevated
Output:
gyp info it worked if it ends with ok
gyp info using node-gyp@6.0.1
gyp info using node@12.13.0 | linux | x64
gyp info find Python using Python version 3.7.4 found at "/usr/bin/python3"
gyp http GET https://atom.io/download/electron/v12.13.0/node-v12.13.0-headers.tar.gz
gyp http 403 https://atom.io/download/electron/v12.13.0/node-v12.13.0-headers.tar.gz
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: 403 response downloading https://atom.io/download/electron/v12.13.0/node-v12.13.0-headers.tar.gz
gyp ERR! stack     at Request.<anonymous> (/usr/lib/node_modules/node-gyp/lib/install.js:187:14)
gyp ERR! stack     at Request.emit (events.js:215:7)
gyp ERR! stack     at Request.onRequestResponse (/usr/lib/node_modules/node-gyp/node_modules/request/request.js:1066:10)
gyp ERR! stack     at ClientRequest.emit (events.js:210:5)
gyp ERR! stack     at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:583:27)
gyp ERR! stack     at HTTPParser.parserOnHeadersComplete (_http_common.js:115:17)
gyp ERR! stack     at TLSSocket.socketOnData (_http_client.js:456:22)
gyp ERR! stack     at TLSSocket.emit (events.js:210:5)
gyp ERR! stack     at addChunk (_stream_readable.js:308:12)
gyp ERR! stack     at readableAddChunk (_stream_readable.js:289:11)
gyp ERR! System Linux 5.3.8-arch1-1
gyp ERR! command "/usr/lib/node_modules/node/lib/node_modules/node/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /run/media/user/user/yay/code-git/src/vscode/node_modules/native-is-elevated

sudo node-gyp install node-headers -g prints

gyp info it worked if it ends with ok
gyp info using node-gyp@6.0.1
gyp info using node@12.13.0 | linux | x64
gyp http GET https://nodejs.org/download/release/v12.13.0/node-v12.13.0-headers.tar.gz
gyp http 200 https://nodejs.org/download/release/v12.13.0/node-v12.13.0-headers.tar.gz
gyp http GET https://nodejs.org/download/release/v12.13.0/SHASUMS256.txt
gyp http 200 https://nodejs.org/download/release/v12.13.0/SHASUMS256.txt
12.13.0
gyp info ok 

but still same error.

Zrax commented on 2019-11-07 16:49

This package installs as "code-git" rather than "code", and to its own directory. Therefore, it can be installed side-by-side with either code-bin or code

mprom commented on 2019-11-07 16:02

Maybe I'm dumb, but shouldn't this be set to conflict with the code package? (https://www.archlinux.org/packages/community/x86_64/code/) At least I'm fairly certain they will start fighting about the right to the 'code' command.

Potentially the same issue exists for visual-studio-code-bin, visual-studio-code-insiders or even vscodium-bin

Zrax commented on 2019-11-06 22:04

For now, you'll need to install an old (6.x) version of electron to build code-git. I'll see about getting an electron6 package to avoid requiring an old version of the "main" electron package.