Package Details: lua-language-server-git 2.5.5.r0.g4f74c75c-1

Git Clone URL: https://aur.archlinux.org/lua-language-server-git.git (read-only, click to copy)
Package Base: lua-language-server-git
Description: Lua Language Server coded by Lua
Upstream URL: https://github.com/sumneko/lua-language-server
Licenses: MIT
Conflicts: lua-language-server
Provides: lua-language-server
Submitter: MoSal
Maintainer: KokaKiwi
Last Packager: KokaKiwi
Votes: 11
Popularity: 0.000000
First Submitted: 2019-08-15 19:05 (UTC)
Last Updated: 2021-12-17 11:06 (UTC)

Required by (1)

Sources (2)

Latest Comments

1 2 3 Next › Last »

wbthomason commented on 2021-10-05 21:05 (UTC)

Unfortunately, this package seems to be broken again - I get a failure during package() that platform.lua no longer exists at the expected path.

CantoroMC commented on 2021-05-24 01:21 (UTC)

Please, update the PKGBUILD, the source code has changed and the included patches seems to not be necessary anymore and make the pkgbuild fails.

This works for me, both building and using:

# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
# Contributor: Mohammad AlSaleh <CE.Mohammad.AlSaleh at gmail dot com>

pkgname=lua-language-server-git
_pkgname="${pkgname%-git}"
pkgver=1.20.2.r26.g1c1b62b4
pkgrel=1
license=('MIT')
pkgdesc='Lua Language Server coded by Lua'
url='https://github.com/sumneko/lua-language-server'
arch=('x86_64')
depends=('lua')
makedepends=('ninja' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=(
  "${pkgname}::git+https://github.com/sumneko/${_pkgname}.git"
  'wrapper'
)
sha256sums=(
  'SKIP'
  'd61e2b4544bb3a4ef052f7d1c6dbc14a3bfd45e0488d231cccdd553b7e22243b')

pkgver() {
  cd "${pkgname}"

  ( set -o pipefail
    git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
      printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

prepare() {
  cd "${pkgname}"

  git submodule update --init --recursive
}

build() {
  cd "${pkgname}"

  ninja -C 3rd/luamake -f compile/ninja/linux.ninja
  ./3rd/luamake/luamake rebuild
}

package() {
  cd "${pkgname}"

  install -dm0755 "${pkgdir}/usr/lib/${_pkgname}"
  cp -a bin/Linux/* "${pkgdir}/usr/lib/${_pkgname}"

  install -dm0755 "${pkgdir}/usr/share/${_pkgname}"

  cp -a \
    main.lua platform.lua debugger.lua \
    locale script meta \
    "${pkgdir}/usr/share/${_pkgname}"

  install -Dm0755 ../wrapper "${pkgdir}/usr/bin/${_pkgname}"
}

ouuan commented on 2021-05-16 01:14 (UTC)

Please add this:

provides=('lua-language-server')
conflicts=('lua-language-server')

CantoroMC commented on 2021-05-13 05:20 (UTC)

In the pkg repository there are three patches, two of those are the same file and they are obsolete. Please consider to fix those issues.

iiiiiiiiiiii commented on 2021-05-01 13:32 (UTC)

Some 3rd party tests are being run and are failing for me:

==> Starting build()...
ninja: Entering directory `3rd/luamake'
[50/59] cp -afv build/linux/bin/bootstrap luamake
'build/linux/bin/bootstrap' -> 'luamake'
[51/59] cp -afv 3rd/bee.lua/bootstrap/main.lua build/linux/bin/main.lua
'3rd/bee.lua/bootstrap/main.lua' -> 'build/linux/bin/main.lua'
[57/59] build/linux/bin/bootstrap 3rd/bee.lua/test/test.lua
OS:         Linux
Arch:       x86_64
Compiler:   GCC 10.2.0
CRT:        libstdc++ 20200723 glibc 2.33
DEBUG:      false
..........................F................................................................
Failed tests:
-------------
1) filesystem.test_relative
filesystem error: status: Input/output error [/mnt/c/a/b/c]
stack traceback:
    3rd/bee.lua/test/test_filesystem.lua:270: in local 'relative'
    3rd/bee.lua/test/test_filesystem.lua:272: in upvalue 'filesystem.test_relative'

Ran 91 tests in 0.398 seconds, 90 successes, 1 failures
[58/59] cp -afv build/linux/bin/bee.so bee.so
'build/linux/bin/bee.so' -> 'bee.so'
FAILED: build/linux/_/test
build/linux/bin/bootstrap 3rd/bee.lua/test/test.lua
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...

CantoroMC commented on 2021-04-14 05:05 (UTC)

Please consider fixing the build function with ninja -C 3rd/luamake -f compile/ninja/linux.ninja

wbthomason commented on 2021-04-13 13:34 (UTC)

It looks like the build system may have changed? I get an error that ninja/linux.ninja does not exist while building 3rd/luamake.

therisen06 commented on 2020-12-08 07:52 (UTC)

Still broken for me. Directories need to be created recursively:

diff -rupN old/library.lua new/library.lua
--- old/library.lua 2020-12-08 08:43:23.756092023 +0100
+++ new/library.lua 2020-12-08 08:43:33.945957321 +0100
@@ -179,7 +179,7 @@ local function compileMetaDoc()

     m.metaPath = metapath:string()
     m.metaPaths = {}
-    fs.create_directory(metapath)
+    fs.create_directories(metapath)
     local templateDir = ROOT / 'meta' / 'template'
     for fullpath in templateDir:list_directory() do
         local filename = fullpath:filename() 

wbthomason commented on 2020-11-28 03:27 (UTC)

Also, I believe the PKGBUILD needs to copy the meta/template directory during the install step