Package Details: code-git 1.91.0.r122257.gd2d053d84e2-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: TrialnError
Votes: 18
Popularity: 0.000000
First Submitted: 2017-12-18 23:10 (UTC)
Last Updated: 2024-06-08 19:56 (UTC)

Latest Comments

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

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

LinuxUserGD commented on 2019-11-11 15:02 (UTC) (edited on 2019-11-11 19:18 (UTC) by LinuxUserGD)

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 (UTC)

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.

LinuxUserGD commented on 2019-11-07 17:02 (UTC)

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 (UTC)

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 (UTC)

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 (UTC)

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.

LinuxUserGD commented on 2019-10-29 17:24 (UTC) (edited on 2019-11-03 11:44 (UTC) by LinuxUserGD)

I get this error using yay -S --devel --timeupdate --rebuild --mflags "mem_limit=7000" code-git:

gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.3.7-arch1-2-ARCH
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /run/media/user/user/yay/code-git/src/vscode/node_modules/nsfw

Edit: still fails when building fresh packages

Zrax commented on 2019-10-14 20:56 (UTC)

Package updated to bump up the default mem limit (6G) and switch back to electron 6.0.

LinuxUserGD commented on 2019-10-06 10:21 (UTC)

The build fails with the following error (using yay -S --devel code-git)

[12:15:24] Starting bundle-extensions-build ...
(node:107256) [DEP0097] DeprecationWarning: Using a domain property in MakeCallback is deprecated. Use the async_context variant of MakeCallback or the AsyncResource class instead.
[12:17:39] Bundled extension: python/extension.webpack.config.js...
[12:17:39] Bundled extension: git-ui/extension.webpack.config.js...
[12:17:41] Bundled extension: debug-auto-launch/extension.webpack.config.js...
[12:17:42] Bundled extension: debug-server-ready/extension.webpack.config.js...
[12:17:43] Bundled extension: grunt/extension.webpack.config.js...
[12:17:43] Bundled extension: gulp/extension.webpack.config.js...
[12:17:43] Bundled extension: jake/extension.webpack.config.js...
[12:17:46] Bundled extension: image-preview/extension.webpack.config.js...
[12:17:47] Bundled extension: configuration-editing/extension.webpack.config.js...
[12:17:47] Bundled extension: merge-conflict/extension.webpack.config.js...
[12:17:49] Bundled extension: php-language-features/extension.webpack.config.js...
[12:18:12] Bundled extension: npm/extension.webpack.config.js...
[12:18:16] Bundled extension: css-language-features/extension.webpack.config.js...
[12:18:16] Bundled extension: extension-editing/extension.webpack.config.js...
[12:18:24] Bundled extension: emmet/extension.webpack.config.js...
[12:18:28] Bundled extension: html-language-features/extension.webpack.config.js...
[12:18:28] Bundled extension: json-language-features/server/extension.webpack.config.js...
[12:18:28] Bundled extension: json-language-features/extension.webpack.config.js...
[12:18:34] Bundled extension: git/extension.webpack.config.js...
[12:18:38] Bundled extension: typescript-language-features/extension.webpack.config.js...
Unhandled Rejection at: Promise Promise {
  _bitField: 152305664,
  _fulfillmentHandler0:
   { Error: /run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts
   ./src/util/links.ts
   [tsl] ERROR in /run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(17,6)
         TS2304: Cannot find name 'const'.
   /run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts
   ./src/util/links.ts
   [tsl] ERROR in /run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(22,6)
         TS2304: Cannot find name 'const'.
   /run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts
   ./src/util/links.ts
   [tsl] ERROR in /run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(25,24)
         TS7006: Parameter 'knownScheme' implicitly has an 'any' type.
     message:
      '/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts\n./src/util/links.ts\n\u001b[90m[tsl] \u001b[39m\u001b[1m\u001b[31mERROR\u001b[39m\u001b[22m\u001b[1m\u001b[31m in \u001b[39m\u001b[22m\u001b[1m\u001b[36m/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(17,6)\u001b[39m\u001b[22m\n\u001b[1m\u001b[31m      TS2304: Cannot find name \'const\'.\u001b[39m\u001b[22m\n/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts\n./src/util/links.ts\n\u001b[90m[tsl] \u001b[39m\u001b[1m\u001b[31mERROR\u001b[39m\u001b[22m\u001b[1m\u001b[31m in \u001b[39m\u001b[22m\u001b[1m\u001b[36m/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(22,6)\u001b[39m\u001b[22m\n\u001b[1m\u001b[31m      TS2304: Cannot find name \'const\'.\u001b[39m\u001b[22m\n/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts\n./src/util/links.ts\n\u001b[90m[tsl] \u001b[39m\u001b[1m\u001b[31mERROR\u001b[39m\u001b[22m\u001b[1m\u001b[31m in \u001b[39m\u001b[22m\u001b[1m\u001b[36m/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(25,24)\u001b[39m\u001b[22m\n\u001b[1m\u001b[31m      TS7006: Parameter \'knownScheme\' implicitly has an \'any\' type.\u001b[39m\u001b[22m',
     plugin: 'webpack-stream',
     showProperties: true,
     showStack: false,
     __safety: { toString: [Function: bound ] } },
  _rejectionHandler0: undefined,
  _promise0: undefined,
  _receiver0: undefined } reason: { [Error: /run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts
./src/util/links.ts
[tsl] ERROR in /run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(17,6)
      TS2304: Cannot find name 'const'.
/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts
./src/util/links.ts
[tsl] ERROR in /run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(22,6)
      TS2304: Cannot find name 'const'.
/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts
./src/util/links.ts
[tsl] ERROR in /run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(25,24)
      TS7006: Parameter 'knownScheme' implicitly has an 'any' type.]
  message:
   '/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts\n./src/util/links.ts\n\u001b[90m[tsl] \u001b[39m\u001b[1m\u001b[31mERROR\u001b[39m\u001b[22m\u001b[1m\u001b[31m in \u001b[39m\u001b[22m\u001b[1m\u001b[36m/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(17,6)\u001b[39m\u001b[22m\n\u001b[1m\u001b[31m      TS2304: Cannot find name \'const\'.\u001b[39m\u001b[22m\n/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts\n./src/util/links.ts\n\u001b[90m[tsl] \u001b[39m\u001b[1m\u001b[31mERROR\u001b[39m\u001b[22m\u001b[1m\u001b[31m in \u001b[39m\u001b[22m\u001b[1m\u001b[36m/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(22,6)\u001b[39m\u001b[22m\n\u001b[1m\u001b[31m      TS2304: Cannot find name \'const\'.\u001b[39m\u001b[22m\n/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts\n./src/util/links.ts\n\u001b[90m[tsl] \u001b[39m\u001b[1m\u001b[31mERROR\u001b[39m\u001b[22m\u001b[1m\u001b[31m in \u001b[39m\u001b[22m\u001b[1m\u001b[36m/run/media/user/Windows/.cache/yay/code-git/src/vscode/extensions/markdown-language-features/src/util/links.ts(25,24)\u001b[39m\u001b[22m\n\u001b[1m\u001b[31m      TS7006: Parameter \'knownScheme\' implicitly has an \'any\' type.\u001b[39m\u001b[22m',
  plugin: 'webpack-stream',
  showProperties: true,
  showStack: false,
  __safety: { toString: [Function: bound ] } }
[12:18:41] The following tasks did not complete: vscode-linux-x64-min
[12:18:41] Did you forget to signal async completion?

*** 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 ~]$