From: zoof <zoof@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [ISSUE] LanguageTool does not start with TeXstudio
Date: Tue, 21 Feb 2023 14:59:03 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42372@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2910 bytes --]
New issue by zoof on void-packages repository
https://github.com/void-linux/void-packages/issues/42372
Description:
### Is this a new report?
Yes
### System Info
Void 6.1.12_1 x86_64 GenuineIntel notuptodate rFF
### Package(s) Affected
LanguageTool-5.8_1, texstudio-4.4.1_1
### Does a report exist for this bug with the project's home (upstream) and/or another distro?
_No response_
### Expected behaviour
Opening TeXstudio, configure "LT Path" to `/usr/share/java/languagetool/languagetool-server.jar`. Clicking Help -> Check LanguageTool is expected to show that LanguageTool is configured correctly:
```
which java: /usr/bin/java
JAVA: java
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-void-r3)
OpenJDK 64-Bit Server VM (build 11.0.12+7-void-r3, mixed mode)
Real-time checking is enabled.
Grammar checking is enabled.
Tries to start automatically.
LT current status: working
LT-URL: http://localhost:8081/v2/check
```
### Actual behaviour
Instead:
```
which java: /usr/bin/java
JAVA: java
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment (build 11.0.12+7-void-r3)
OpenJDK 64-Bit Server VM (build 11.0.12+7-void-r3, mixed mode)
Real-time checking is enabled.
Grammar checking is enabled.
Tries to start automatically.
LT current status: error
LT-URL: http://localhost:8081/v2/check
```
Executing the jar command to start LanguageTool shows:
```
$ languagetool --http -p 8081 INT
2023-02-21 13:52:51 +0000 Setting up thread pool with 10 threads
WARN: no common words file defined for Japanese - this language might not be correctly auto-detected
WARN: no common words file defined for Khmer - this language might not be correctly auto-detected
2023-02-21 13:52:54 +0000 Starting LanguageTool 5.8 (build date: 2022-07-02 14:50:13 +0000, 82e790a) server on http://localhost:8081...
2023-02-21 13:52:54 +0000 Server started
^C% ~ > java -jar /usr/share/java/languagetool/languagetool-server.jar INT 38s
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at org.languagetool.server.Server.<clinit>(Server.java:40)
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 1 more
```
On the other hand, running the Void packaged LanguageTool binary from the command line (`languagetool --http -p 8081`) does work.
### Steps to reproduce
1. Start TeXstudio
2. Add path to languagetool-server.jar to configuration.
3. Check LanguageTool from TeXstudio
reply other threads:[~2023-02-21 13:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42372@inbox.vuxu.org \
--to=zoof@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).