Hopefully, there is no bug with language de-DE in this version (command line). On my system, it appearently does not find the hunspell library. With other lanuages as en-GB all is fine.
Matthias
File test.txt contains ‘Test’, here is the output:
java -jar ../LT/LanguageTool-4.8/languagetool-commandline.jar --language de-DE test.txt
Warning: At the moment, your platform (Windows) is not supported by the official XGBoost maven package; ML-based suggestion reordering is disabled.
Expected text language: German (Germany)
Working on test.txt...
Dez 28, 2019 8:28:07 PM org.bridj.BridJ log
INFORMATION: Library not found : hunspell
Dez 28, 2019 8:28:07 PM org.bridj.BridJ log
INFORMATION: Library not found : hunspell
...
Exception in thread "main" java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError
at org.languagetool.MultiThreadedJLanguageTool.performCheck(MultiThreadedJLanguageTool.java:175)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:755)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:731)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:714)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:673)
at org.languagetool.JLanguageTool.check(JLanguageTool.java:657)
at org.languagetool.commandline.CommandLineTools.checkText(CommandLineTools.java:106)
at org.languagetool.commandline.CommandLineTools.checkText(CommandLineTools.java:82)
at org.languagetool.commandline.Main.runOnFile(Main.java:194)
at org.languagetool.commandline.Main.main(Main.java:466)
Caused by: java.util.concurrent.ExecutionException: java.lang.UnsatisfiedLinkError
at java.util.concurrent.ForkJoinTask.get(Unknown Source)
at org.languagetool.MultiThreadedJLanguageTool.performCheck(MultiThreadedJLanguageTool.java:172)
... 9 more
Caused by: java.lang.UnsatisfiedLinkError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.util.concurrent.ForkJoinTask.getThrowableException(Unknown Source)
... 11 more
Caused by: java.lang.UnsatisfiedLinkError: dumonts.hunspell.bindings.HunspellLibrary.Hunspell_create(JJ)J
at dumonts.hunspell.bindings.HunspellLibrary.Hunspell_create(Native Method)
at dumonts.hunspell.bindings.HunspellLibrary.Hunspell_create(HunspellLibrary.java:25)
at org.languagetool.rules.spelling.hunspell.Hunspell.<init>(Hunspell.java:46)
at org.languagetool.rules.spelling.hunspell.Hunspell.getInstance(Hunspell.java:59)
at org.languagetool.rules.spelling.hunspell.HunspellRule.init(HunspellRule.java:378)
at org.languagetool.rules.de.GermanSpellerRule.init(GermanSpellerRule.java:859)
at org.languagetool.rules.spelling.hunspell.HunspellRule.match(HunspellRule.java:142)
at org.languagetool.JLanguageTool.checkAnalyzedSentence(JLanguageTool.java:847)
at org.languagetool.JLanguageTool$TextCheckCallable.getOtherRuleMatches(JLanguageTool.java:1313)
at org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:1245)
at org.languagetool.JLanguageTool$TextCheckCallable.call(JLanguageTool.java:1208)
at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(Unknown Source)
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
With Windows 7 Professional. 64-bit OS. Java 8 update 231:
D:\lt48>java -jar languagetool-commandline.jar --language de-DE test.txt
Warning: At the moment, your platform (Windows) is not supported by the official XGBoost maven package; ML-based suggest
ion reordering is disabled.
Expected text language: German (Germany)
Working on test.txt...
Time: 20046ms for 1 sentences (0.0 sentences/sec)
D:\lt48>
My idea was that @matze might still be using an old 32-bit machine / OS maybe? I don’t have Windows to test here and currently it seems LT is working on some installations of Windows and not on others.