If an extension is trying to write to /opt/visual-studio-code
instead of ~/.code
, it's the extension that's broken, not this package. Please report it upstream.
Search Criteria
Package Details: visual-studio-code-bin 1.95.3-1
Package Actions
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: | 1465 |
Popularity: | 14.57 |
First Submitted: | 2017-12-18 19:14 (UTC) |
Last Updated: | 2024-11-15 11:08 (UTC) |
Dependencies (17)
- alsa-lib
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR, glibc-eac-rocoAUR)
- gnupg (gnupg-gitAUR, gnupg-largekeysAUR)
- gtk3 (gtk3-no_deadkeys_underlineAUR, gtk3-classicAUR, gtk3-classic-xfceAUR, gtk3-patched-filechooser-icon-viewAUR)
- libnotify (libnotify-gitAUR)
- libsecret
- libxkbfile
- libxss
- lsof (lsof-gitAUR)
- nss (nss-hgAUR)
- shared-mime-info
- xdg-utils (busking-gitAUR, xdg-utils-slockAUR, mimiAUR, mimi-gitAUR, xdg-utils-handlrAUR, openerAUR, xdg-utils-mimeoAUR, mimejs-gitAUR)
- glib2 (glib2-gitAUR, glib2-selinuxAUR, glib2-patched-thumbnailerAUR) (optional) – Needed for move to trash functionality
- icu69AUR (icu69-binAUR) (optional) – Needed for live share
- libdbusmenu-glib (optional) – Needed for KDE global menu
- org.freedesktop.secrets (keepassxc-gitAUR, gnome-keyring-gitAUR, pass-secrets-gitAUR, keepassxc-allow-aur-extension-originAUR, keepassxc-allow-aur-extension-origin-binAUR, pass-secret-service-binAUR, dssdAUR, pass-secret-service-gitAUR, bitw-gitAUR, gnome-keyring, keepassxc, kwallet, kwallet5) (optional) – Needed for settings sync
Required by (20)
- azure-sphere-sdk (requires code) (optional)
- code-appicons (requires code)
- code-features (requires code)
- code-features-insiders (requires code)
- code-icons (requires code)
- code-marketplace (requires code)
- code-nautilus-git (requires code) (optional)
- dokytree (requires code) (optional)
- dokytree-git (requires code) (optional)
- meta-package-manager (requires code) (optional)
- meta-package-manager-git (requires code) (optional)
- nautilus-code (requires code) (optional)
- neopo-git (optional)
- nwscript-code (requires code)
- rust-analyzer-vscode-git (requires code)
- stm32pio (requires code) (optional)
- unity-editor-lts (optional)
- unreal-engine-bin (requires code) (optional)
- vscode-xdg-patch-hook (requires code) (optional)
- vscode-xdg-patch-hook (requires vscode) (optional)
Sources (7)
dcelasun commented on 2024-10-10 08:59 (UTC)
witt.9099 commented on 2024-10-10 02:53 (UTC)
Request for joint maintenance
witt.9099 commented on 2024-10-10 02:52 (UTC)
Permission issues after installation
After installing with the cp -r "${srcdir}/$(_pkg)/"* "${pkgdir}/opt/${_pkgname}"
command, there will be permission issues when using the Custom CSS and JS Loader
extension. You need to use the sudo chown -R $(whoami) /opt/visual-studio-code
command to modify it. Please use the install command instead.
machomacho commented on 2024-09-17 04:44 (UTC) (edited on 2024-09-17 07:36 (UTC) by machomacho)
@carterli
I am in China and also had trouble downloading this file, even when using a reliable VPN. It isn't a GFW issue, it seems to be a DNS resolution issue.
I was able to fix it by adding an IP for a raw.githubusercontent.com datacenter to my /etc/hosts file, as described here.
Not sure how much of a permanent solution this is, but after editing /etc/hosts I was able to install the updated package using yay with no issues.
database64128 commented on 2024-09-14 02:38 (UTC)
@carteli If you live in China and have trouble accessing GitHub, you can use the prebuilt package provided by archlinuxcn.
A bit of advice: If you don't circumvent the GFW, you essentially have no access to most of the AUR. Eventually you'll need some package that's only available on the AUR, and you'll have to find a way to do it.
marmis commented on 2024-09-14 00:59 (UTC)
Hello, @carteli, is there a reason for not using raw.githubusercontent.com
? This package is based on .tar.gz
provided by Microsoft (see the download page), but that archive is missing Desktop files, so the PKGBUILD fetches these missing files from raw.githubusercontent.com/microsoft/vscode
. These are the official files from Microsoft repositories, hosted, reviewed and distributed by them. The other three options are:
- get them from one of the other archives (
.deb
or.rpm
), which would download an additional 100 MB of data, for just 3 files of size 1.2 kB in total; - clone the upstream repository (from 160 MB to 1.1 GB), and extract the 3 files from that;
- the previous way, maintain a copy of these files in AUR repositories, which might (and actually did) get outdated with time.
carterli commented on 2024-09-13 11:42 (UTC)
Hello. How can I avoid downloading files from raw.githubusercontent.com
?
dcelasun commented on 2024-09-11 05:01 (UTC)
Don't install -debug
packages. You can also avoid building them by disabling debug
in /etc/makepkg.conf
.
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!)
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.
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.
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.xdg-open
uses vscode, not my file manager! How do I fix this?Install shared-mime-info-gnome. Also see this reddit thread.
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.
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.
No, you won't get a reply. Please stop doing this. Leave a comment here instead and be patient.