Package Details: visual-studio-code-bin 1.99.0-3

Git Clone URL: https://aur.archlinux.org/visual-studio-code-bin.git (read-only, click to copy)
Package Base: visual-studio-code-bin
Description: Visual Studio Code (vscode): Editor for building and debugging modern web and cloud applications (official binary version)
Upstream URL: https://code.visualstudio.com/
Licenses: custom: commercial
Conflicts: code
Provides: code, vscode
Submitter: dcelasun
Maintainer: dcelasun
Last Packager: dcelasun
Votes: 1508
Popularity: 19.00
First Submitted: 2017-12-18 19:14 (UTC)
Last Updated: 2025-04-04 15:24 (UTC)

Required by (22)

Sources (7)

Pinned Comments

dcelasun commented on 2017-11-15 06:20 (UTC) (edited on 2020-02-06 21:33 (UTC) by dcelasun)

FREQUENTLY ASKED QUESTIONS (read before flagging or commenting!)

  • What is the difference between this package and the one in the community repo?

This is the official binary distribution from Microsoft. The one in the community repo is an unofficial build made from source. Beyond the license difference and branding, there are some proprietary features not available in the open source version.

  • There is a new version out, why is the package not updated?

Please check this page before flagging as out-of-date. If there is no new version on that page, it's not yet released. A tag on Github is NOT a release! If you can see the new version on the updates page but the AUR package is still not updated, flag it and give it time. It's usually done within a day or two.

  • I'm using an AUR helper (yay, yaourt etc.) and I can't install it. Why?

Sometimes AUR helpers do weird things. Download the tarball and install it manually with makepkg -si. If that works, report the problem to your AUR helper's upstream, not here.

  • When I install this package xdg-open uses vscode, not my file manager! How do I fix this?

Install shared-mime-info-gnome. Also see this reddit thread.

  • Why is $X a dependency? I don't like it.

Just because $X is not required to open the app, doesn't mean there is nothing that depends on it. Always search the comment history on AUR to see if that dependency has been previously discussed before writing your own comment. Still nothing? Then use namcap to make sure it's really not needed. If namcap doesn't complain, please leave a comment here and I'll investigate.

  • Something is broken with the app, where do I report it?

The problem might be a packaging issue (wrong paths, dependencies, icons), so please write a comment here first. If you don't get a reply, or if someone says it's an upstream issue, you can report it on Github.

  • I have a problem with this package, can I email you?

No, you won't get a reply. Please stop doing this. Leave a comment here instead and be patient.

Latest Comments

1 2 3 4 5 6 .. 81 Next › Last »

dcelasun commented on 2025-04-04 15:23 (UTC)

@heftig thanks, done!

heftig commented on 2025-04-04 11:59 (UTC) (edited on 2025-04-04 12:00 (UTC) by heftig)

To be correct, you should consider adding the $pkgver to the downloaded file names. Then you can't get into the situation where the cache is incorrect. Something like this:

diff --git c/PKGBUILD i/PKGBUILD
index 312ead1..07077b6 100644
--- c/PKGBUILD
+++ i/PKGBUILD
@@ -22,9 +22,9 @@ optdepends=('glib2: Needed for move to trash functionality'
             'org.freedesktop.secrets: Needed for settings sync'
              # See https://github.com/MicrosoftDocs/live-share/issues/4650
             'icu69: Needed for live share' )
-source=(code.desktop.in::https://raw.githubusercontent.com/microsoft/vscode/${pkgver}/resources/linux/code.desktop
-        code-url-handler.desktop.in::https://raw.githubusercontent.com/microsoft/vscode/${pkgver}/resources/linux/code-url-handler.desktop
-        code-workspace.xml.in::https://raw.githubusercontent.com/microsoft/vscode/${pkgver}/resources/linux/code-workspace.xml
+source=(code-${pkgver}.desktop.in::https://raw.githubusercontent.com/microsoft/vscode/${pkgver}/resources/linux/code.desktop
+        code-${pkgver}-url-handler.desktop.in::https://raw.githubusercontent.com/microsoft/vscode/${pkgver}/resources/linux/code-url-handler.desktop
+        code-${pkgver}-workspace.xml.in::https://raw.githubusercontent.com/microsoft/vscode/${pkgver}/resources/linux/code-workspace.xml
         ${_pkgname}-bin.sh)
 source_x86_64=(code_x64_${pkgver}.tar.gz::https://update.code.visualstudio.com/${pkgver}/linux-x64/stable)
 source_aarch64=(code_arm64_${pkgver}.tar.gz::https://update.code.visualstudio.com/${pkgver}/linux-arm64/stable)
@@ -60,9 +60,9 @@ _pkg() {
 }

 prepare() {
-  _set_meta_info "${srcdir}/code.desktop.in" > "${srcdir}/code.desktop"
-  _set_meta_info "${srcdir}/code-url-handler.desktop.in" > "${srcdir}/code-url-handler.desktop"
-  _set_meta_info "${srcdir}/code-workspace.xml.in" > "${srcdir}/code-workspace.xml"
+  _set_meta_info "${srcdir}/code-${pkgver}.desktop.in" > "${srcdir}/code.desktop"
+  _set_meta_info "${srcdir}/code-${pkgver}-url-handler.desktop.in" > "${srcdir}/code-url-handler.desktop"
+  _set_meta_info "${srcdir}/code-${pkgver}-workspace.xml.in" > "${srcdir}/code-workspace.xml"
 }

 package() {

billypilgrim commented on 2025-04-04 09:52 (UTC)

Apologies for not reading comments properly... Clearing the cache did the job.

kr3c1k commented on 2025-04-04 09:51 (UTC)

I had the same problem with this package. It was throwing an error at code.desktop.in .... FAILED. But as @dcelasun wrote, clearing the AUR helper cache helped.

dcelasun commented on 2025-04-04 09:28 (UTC) (edited on 2025-04-04 09:29 (UTC) by dcelasun)

@billypilgrim are you building in a clean directory? Looks like your AUR helper has cached things.

billypilgrim commented on 2025-04-04 09:24 (UTC)

FYI the checksums need to be updated:

==> Validating source files with sha256sums...
    code.desktop.in ... FAILED
    code-url-handler.desktop.in ... Passed
    code-workspace.xml.in ... Passed
    visual-studio-code-bin.sh ... Passed
==> ERROR: One or more files did not pass the validity check!
error: failed to download sources for 'visual-studio-code-bin-1.99.0-2': 
error: packages failed to build: visual-studio-code-bin-1.99.0-2

abique commented on 2025-04-04 09:05 (UTC)

Thank you very much for the quick fix!

dcelasun commented on 2025-04-04 08:48 (UTC)

@abique sorry about that, should be fixed now.

abique commented on 2025-04-04 08:43 (UTC) (edited on 2025-04-04 08:43 (UTC) by abique)

==> Validating source files with sha256sums... code.desktop.in ... FAILED

ViToni commented on 2025-03-13 11:27 (UTC)

@UntalentedFailure

You can set your own default start flags since https://aur.archlinux.org/cgit/aur.git/commit/?h=visual-studio-code-bin&id=a0595836467bb205fcabb7e6d44ad7da82b29ed2