Package Details: texlab-git r776.d752c2f-2

Git Clone URL: https://aur.archlinux.org/texlab-git.git (read-only)
Package Base: texlab-git
Description: An implementation of the Language Server Protocol for LaTeX
Upstream URL: https://github.com/latex-lsp/texlab
Keywords: LaTeX lsp texlab
Licenses: MIT
Conflicts: texlab, texlab-bin
Submitter: he-la
Maintainer: he-la
Last Packager: he-la
Votes: 0
Popularity: 0.000000
First Submitted: 2019-05-03 13:56
Last Updated: 2019-09-06 14:30

Required by (0)

Sources (1)

Pinned Comments

he-la commented on 2019-09-06 14:33

Hey everyone, sorry for the delay. I still cannot get a consistently successful build on all of my systems, but it works in a basic docker container and hence hopefully works for a lot of scenarios, so I decided to update the package regardless of the remaining issues. If you run into any issues and figure out how to resolve them, please shoot me a message. Alternatively, use the non-git "texlab" package from the aur.

Latest Comments

PythonNut commented on 2019-09-13 02:34

Also depends on node and npm?

he-la commented on 2019-09-06 14:33

Hey everyone, sorry for the delay. I still cannot get a consistently successful build on all of my systems, but it works in a basic docker container and hence hopefully works for a lot of scenarios, so I decided to update the package regardless of the remaining issues. If you run into any issues and figure out how to resolve them, please shoot me a message. Alternatively, use the non-git "texlab" package from the aur.

efoerster commented on 2019-08-20 16:46

Hey, I have create a versioned AUR package (https://aur.archlinux.org/packages/texlab/) with the newest version. Feel free to adopt it.

lucc commented on 2019-07-24 11:35

A new version has been released. Maybe you can update the PKGBUILD for the new rust version

https://github.com/latex-lsp/texlab/releases/tag/v1.2.0

I started to patch the PKGBUILD locally and came this far:

diff --git a/PKGBUILD b/PKGBUILD
index c77e2c6..c8ba6c9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,14 @@

 _pkgname=texlab
 pkgname=${_pkgname}-git
-pkgver=r254.0d1575f
+pkgver=r635.23f3228
 pkgrel=1
 pkgdesc="An implementation of the Language Server Protocol for LaTeX"
 arch=('any')
 url="https://github.com/latex-lsp/texlab"
 license=('MIT')
 depends=('java-runtime')
-makedepends=('git' 'gradle')
+makedepends=('git' 'rust' 'npm')
 source=('texlab-git::git+https://github.com/latex-lsp/texlab.git')
 md5sums=('SKIP')

@@ -20,23 +20,24 @@ pkgver() {

 build () {
    cd "$srcdir/${pkgname}"
-   chmod +x gradlew
-   ./gradlew build
+   pushd citeproc
+   npm install
+   npm run dist
+   popd
+   cargo build --release
 }

 package() {
    cd "$srcdir/${pkgname}"
    mkdir -p "${pkgdir}/usr/share/licenses/${_pkgname}"
-   mkdir -p "$pkgdir/usr/share/java/${_pkgname}"
+   mkdir -p "${pkgdir}/usr/bin"

-   cp LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
-   chmod 644 "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
-   cp "build/libs/texlab.jar" "$pkgdir/usr/share/java/${_pkgname}"
+   install -m 644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+   install -m 644 src/data/completion.json somewhere  # TODO
+   install target/release/texlab "${pkgdir}/usr/bin/"
+}

-   echo ""
-   echo "IMPORTANT:"
-   echo "The texlab.jar server has been installed under:"
-   echo "    /usr/share/java/${_pkgname}"
-   echo "Configure your editor plugin to point here!"
-   echo ""
+test () {
+   cd "$srcdir/${pkgname}"
+   cargo test --all
 }

But as you can see I could not figure out if and where to install the completion database.

wbthomason commented on 2019-07-02 16:18

Thanks!

he-la commented on 2019-07-02 16:03

Thanks. I will be updating ASAP.

wbthomason commented on 2019-07-02 15:33

texlab has officially switched the master branch over to the Rust rewrite of the server. An updated PKGBUILD should follow the instructions here: https://github.com/latex-lsp/texlab#building to build the new version; dependencies will include npm and cargo, while the Java dependencies can be removed.