Package Details: ltex-ls-bin 16.0.0-3

Git Clone URL: https://aur.archlinux.org/ltex-ls-bin.git (read-only, click to copy)
Package Base: ltex-ls-bin
Description: LTeX Language Server: LSP language server for LanguageTool with support for LaTeX, Markdown, and others
Upstream URL: https://github.com/valentjn/ltex-ls
Keywords: language latex lsp markdown server
Licenses: MPL2
Conflicts: ltex-ls
Provides: ltex-ls
Submitter: pu-007
Maintainer: pu-007 (leejuyuu)
Last Packager: leejuyuu
Votes: 10
Popularity: 1.06
First Submitted: 2022-01-23 12:31 (UTC)
Last Updated: 2023-09-29 15:22 (UTC)

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

1 2 Next › Last »

leejuyuu commented on 2023-09-29 15:23 (UTC)

@Freed Sorry for the delay! I updated the package.

Freed commented on 2023-09-23 10:55 (UTC)

would java-runtime>=11 be okay for you?

Great! :+1:

leejuyuu commented on 2023-09-23 08:00 (UTC) (edited on 2023-09-23 08:01 (UTC) by leejuyuu)

@Freed As ltex-ls requires JRE above 11, would java-runtime>=11 be okay for you? I think pacman will allow you to select the version if specified like that.

Freed commented on 2023-09-23 07:16 (UTC)

Both work for me. I advise change java-runtime=11 to java-runtime to avoid to install an extra java-runtime which only for ltex-ls-bin.

leejuyuu commented on 2023-09-22 17:48 (UTC)

@Freed Which JRE works for you? Both java-11-openjdk and java-20-openjdk work for ltex-ls on my machine. The doc also suggests jre>=11 should be okay.

Freed commented on 2023-09-22 12:39 (UTC)

You are right. A minimal jre is needed. Can we change java-runtime=11 to java-runtime to not install jre-11-openjdk?

$ archlinux-java status
Available Java environments:
  java-11-openjdk
  java-20-openjdk (default)
re11-openjdk  -R j
$ sudo pacman -R jre11-openjdk
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing jre11-openjdk breaks dependency 'java-runtime=11' required by ltex-ls-bin
$ ltex-ls --help
Usage: ltex-ls [-hV] [--[no-]endless] [--host=<host>] [--log-file=<logFile>]
               [--port=<port>] [--server-type=<serverType>]
LTeX LS - LTeX Language Server
      --[no-]endless         Keep server alive when client terminates.
  -h, --help                 Show this help message and exit.
      --host=<host>          Listen for TCP connections on host <host> (IP
                               address or hostname; only relevant if server
                               type is tcpSocket).
                               Default: localhost
      --log-file=<logFile>   Tee server/client communication and server log to
                               <logFile>. ${PID} is replaced by the process ID
                               of LTeX LS. The parent directory of <logFile>
                               must exist. If <logFile> is an existing
                               directory, then ltex-ls-${PID}.log is used as
                               filename.
      --port=<port>          Listen for TCP connections on port <port> (only
                               relevant if server type is tcpSocket). A value
                               of 0 will have the system automatically
                               determine a free port (the actual port number
                               will be printed to the log).
                               Default: 0
      --server-type=<serverType>
                             Run the server as type <serverType>. Valid values:
                               StandardStream, TcpSocket
                               Default: StandardStream
  -V, --version              Print version information and exit.

leejuyuu commented on 2023-09-03 08:55 (UTC)

Hello @Freed, seems like a Java runtime problem. However, this package works for me in openjdk-11 and openjdk-20. Could you paste the output of archlinux-java status on your machine.

Freed commented on 2023-08-31 15:28 (UTC)

I met

$ ltex-ls
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/bsplines/ltexls/LtexLanguageServerLauncher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:756)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:621)

leejuyuu commented on 2023-07-08 09:28 (UTC)

@yodaembedding Do you mean the issue described by j.mlr? Is OpenJDK 11 not working?

yodaembedding commented on 2023-07-08 09:18 (UTC)

I got this to work after setting my default Java to a version >=11.

# List available versions
archlinux-java status

# Set default
sudo archlinux-java set java-20-openjdk