void-linux / void-linux/void-packages
LanguageTool does not start with TeXstudio
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 3.4k
- Forks
- 2.8k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 299
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
- Start TeXstudio
- Add path to languagetool-server.jar to configuration.
- Check LanguageTool from TeXstudio
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing how the configured /usr/share/java/languagetool/languagetool-server.jar is launched with the working languagetool --http -p 8081 command. Reproduce the NoClassDefFoundError for org/slf4j/LoggerFactory and trace the LanguageTool package's Java invocation and dependencies. Done means TeXstudio's LanguageTool check reports the status as working.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100