Failed with yay
so I downloaded the tarball and install it manually with makepkg -si
but still can't update, got this error:
==> ERROR: Failure while downloading https://update.code.visualstudio.com/1.100.2/linux-x64/stable
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: | 1517 |
Popularity: | 17.76 |
First Submitted: | 2017-12-18 19:14 (UTC) |
Last Updated: | 2025-05-15 21:10 (UTC) |
Failed with yay
so I downloaded the tarball and install it manually with makepkg -si
but still can't update, got this error:
==> ERROR: Failure while downloading https://update.code.visualstudio.com/1.100.2/linux-x64/stable
Would you depends=(ripgrep);ln -sf /usr/bin/rg /pathto/app/node_modules/@vscode/ripgrep/bin/rg (code of Arch do)?
This was the original upstream issue for icu69. I don't use live share, so I'll remove it if anyone can confirm it's no longer needed.
Is icu69 still valid for ms-vsliveshare.vsliveshare-1.0.5948 ? I could not find any reason from it.
Where is the binary calls icu69 optionally?
Edit: would anyone ldd ing binary from https://learn.microsoft.com/en-us/visualstudio/liveshare/use/install-live-share-visual-studio-code ?
@heftig thanks, done!
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() {
Apologies for not reading comments properly... Clearing the cache did the job.
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.
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.