Package Details: code-git 1.102.0.r1.gc6e8ac1-1

Git Clone URL: https://aur.archlinux.org/code-git.git (read-only, click to copy)
Package Base: code-git
Description: OSS version of Visual Studio Code editor
Upstream URL: https://github.com/microsoft/vscode
Keywords: vscode
Licenses: MIT
Conflicts: code, vscode
Provides: code, vscode
Submitter: Zrax
Maintainer: oech3
Last Packager: oech3
Votes: 17
Popularity: 0.000000
First Submitted: 2017-12-18 23:10 (UTC)
Last Updated: 2025-06-24 02:23 (UTC)

Required by (18)

Sources (4)

Pinned Comments

oech3 commented on 2025-05-19 11:39 (UTC) (edited on 2025-05-21 13:40 (UTC) by oech3)

electron dependency is swapped with electronNM at packaging.

Minify is disabled by default (see bottom of build()).

Latest Comments

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

codebling commented on 2020-10-03 05:12 (UTC) (edited on 2020-10-03 05:48 (UTC) by codebling)

[01:07:17] The following tasks did not complete: vscode-linux-x64-min
[01:07:17] Did you forget to signal async completion?
...
Command 'systemd-run --service-type=oneshot --pipe --wait --pty -p DynamicUser=yes -p CacheDirectory=pikaur -E HOME=/tmp -p WorkingDirectory=/var/cache/pikaur/build/code-git makepkg --force' failed to execute.

What am I doing wrong? I'm not hitting the file limit cap (no EMFILE and "only" 20k file handles open).

No useful messages in logs

Oct 03 01:07:18 archlinux systemd[1]: run-u1892.service: Main process exited, code=exited, status=1/FAILURE
Oct 03 01:07:18 archlinux kernel: audit: type=1130 audit(1601701638.223:689): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=run-u1892 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Oct 03 01:07:18 archlinux audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=run-u1892 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
Oct 03 01:07:18 archlinux systemd[1]: run-u1892.service: Failed with result 'exit-code'.
Oct 03 01:07:18 archlinux systemd[1]: Failed to start /usr/bin/makepkg --force.

Works if I invoke makepkg directly in https://aur.archlinux.org/code-git.git. Not sure what fails when I use AUR wrapper.

crabvk commented on 2020-08-26 15:52 (UTC)

@Zrax

I think pkgver() function is wrong, it returns 1.38.0.r16029.g6be16f9a16 even for the newest master version.

We should use something like this

pkgver() {
    cd "${srcdir}/vscode"
    sed -En 's/"version": "([[:digit:]\.]+)",/\1_dev/p' package.json | tr -d ' \n'
}

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?