Package Details: visual-studio-code-insiders

Git Clone URL: (read-only)
Package Base: visual-studio-code-insiders
Description: Editor for building and debugging modern web and cloud applications (insiders version)
Upstream URL:
Licenses: custom: commercial
Provides: visualstudiocode, vscode
Submitter: dcelasun
Maintainer: dcelasun
Last Packager: dcelasun
Votes: 14
Popularity: 0.460062
First Submitted: 2016-11-22 07:44
Last Updated: 2018-06-24 06:30

Pinned Comments

dcelasun commented on 2016-11-22 07:48

IMPORTANT: This package always installs the latest insider build (see pkgver() function), so if you want daily updates, just run "makepkg -si" everyday and it will update. I won't be updating pkgver every single day.

Latest Comments

scippio commented on 2018-06-04 13:26

Ok... I downloaded via packer-color -S visual-studio-code-insiders -G and it's working now...

scippio commented on 2018-06-04 12:40

It's in clean directory:

ls -lah
total 16K
drwxr-xr-x 2 scippio scippio 4.0K Jun  4 14:39 .
drwxr-xr-x 3 scippio scippio 4.0K Jun  4 14:36 ..
-rw-r--r-- 1 scippio scippio 2.3K Jun  4 14:14 PKGBUILD
-rw-r--r-- 1 scippio scippio  397 Jun  4 14:15 visual-studio-code-insiders.desktop

dcelasun commented on 2018-06-04 12:35

Sorry, I can't reproduce. Can you try with a clean build directory, so it will download the file again instead of using the local one.

scippio commented on 2018-06-04 12:30

I think the problem is in pkgver():

$(curl -ILs -o /dev/null -w %{url_effective}; echo "${ADDR[5]}"
bash: No such file or directory

scippio commented on 2018-06-04 12:25


# Maintainer: D. Can Celasun <can[at]dcc[dot]im>

pkgdesc="Editor for building and debugging modern web and cloud applications (insiders version)"
arch=('x86_64' 'i686')
license=('custom: commercial')
provides=('vscode' 'visualstudiocode')
depends=(fontconfig libxtst gtk2 python cairo alsa-lib gconf nss gcc-libs libnotify libxss gvfs)
pkgver() {
    if [ "${CARCH}" = "x86_64" ]; then
        IFS='/' read -ra ADDR <<< $(curl -ILs -o /dev/null -w %{url_effective}; echo "${ADDR[5]}" | sed 's/code-insider-//g' | sed 
's/_amd64.tar.gz//g' | sed 's/-/./g'
        IFS='/' read -ra ADDR <<< $(curl -ILs -o /dev/null -w %{url_effective}; echo "${ADDR[5]}" | sed 's/code-insider-//g' | sed 
's/_i386.tar.gz//g' | sed 's/-/./g'
package() {
  if [ "${CARCH}" = "i686" ]; then

  install -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -d "${pkgdir}/opt/${pkgname}"
  install -d "${pkgdir}/usr/bin"
  install -d "${pkgdir}/usr/share/applications"
  install -d "${pkgdir}/usr/share/icons" 

  install -m644 "${srcdir}/${_pkg}/resources/app/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  install -m644 "${srcdir}/${_pkg}/resources/app/resources/linux/code.png" "${pkgdir}/usr/share/icons/${pkgname}.png"
  install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"

  cp -r "${srcdir}/${_pkg}/"* "${pkgdir}/opt/${pkgname}" -R
  ln -s /opt/${pkgname}/bin/code-insiders "${pkgdir}"/usr/bin/code-insiders
$ makepkg -si

==> Making package: visual-studio-code-insiders (Mon Jun  4 14:23:06 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found code_x64_1.24.0.1527860790.tar.gz
  -> Found visual-studio-code-insiders.desktop
==> Validating source_x86_64 files with sha256sums...
    code_x64_1.24.0.1527860790.tar.gz ... Skipped
    visual-studio-code-insiders.desktop ... Passed
==> Extracting sources...
  -> Extracting code_x64_1.24.0.1527860790.tar.gz with bsdtar
==> Starting pkgver()...
Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]...

  -n, --quiet, --silent
                 suppress automatic printing of pattern space
  -e script, --expression=script
                 add the script to the commands to be executed
  -f script-file, --file=script-file
                 add the contents of script-file to the commands to be executed
                 follow symlinks when processing in place
  -i[SUFFIX], --in-place[=SUFFIX]
                 edit files in place (makes backup if SUFFIX supplied)
  -l N, --line-length=N
                 specify the desired line-wrap length for the `l' command
                 disable all GNU extensions.
  -E, -r, --regexp-extended
                 use extended regular expressions in the script
                 (for portability use POSIX -E).
  -s, --separate
                 consider files as separate rather than as a single,
                 continuous long stream.
                 operate in sandbox mode (disable e/r/w commands).
  -u, --unbuffered
                 load minimal amounts of data from the input files and flush
                 the output buffers more often
  -z, --null-data
                 separate lines by NUL characters
      --help     display this help and exit
      --version  output version information and exit

If no -e, --expression, -f, or --file option is given, then the first
non-option argument is taken as the sed script to interpret.  All
remaining arguments are names of input files; if no input files are
specified, then the standard input is read.

GNU sed home page: <>.
General help using GNU software: <>.
==> ERROR: pkgver is not allowed to be empty.
==> ERROR: pkgver() generated an invalid version: 

dcelasun commented on 2018-06-04 12:21

You are most definitely doing something wrong. Can you share the exact steps (including downloading the package) you took?

scippio commented on 2018-06-04 12:18

I donwloaded latest PKGBUILD and get: ==> ERROR: pkgver is not allowed to be empty. ==> ERROR: pkgver() generated an invalid version:

dcelasun commented on 2018-06-04 11:30

That's already fixed, update your PKGBUILD.

scippio commented on 2018-06-04 11:00

after upgrade of makepkg/pacman etc... :

==> ERROR: provides contains invalid characters: ','

dcelasun commented on 2018-06-02 17:13

Fixed, thanks.

All comments