8/26/2023 0 Comments Languagetool 3.9![]() ![]() However, future languagetool versions might contain different jar files and our patch would need to be adjusted each time. With Arch Linux it needs to contain the complete classpath information as provided by the languagetool wrapper: /usr/share/languagetool:/usr/share/java/languagetool/annotations.jar::/usr/share/java/languagetool/slf4j-nop.jar The "LT Path" setting theoretically requires the languagetool server path: "/usr/share/java/languagetool/languagetool-server.jar". if (ltPath = "" || !QFileInfo(ltPath).exists()) return Ĭonnect(javaProcess, SIGNAL(finished(int)), javaProcess, SLOT(deleteLater())) Ĭonnect(this, SIGNAL(destroyed()), javaProcess, SLOT(deleteLater())) +++ -898,7 +898,7 void GrammarCheckLanguageToolJSON::tryTo This works but requires patching the source and is probably not very future-proof. It is possible to disable the file check for the classpath and fill the "LT Path" setting with the classpath information provided by the wrapper. While TeXstudio automatically starts languagetool, the process is not terminated when TeXstudio is closed and the option "Help > Check LanguageTool" causes various kinds of errors. The workaround proposed in a languagetool bug report works only partially. If no file is found, languagetool is not automatically started and thus not usable. The issue now is that TeXstudio assumes that the setting "LT Path" is a file and checks its existence. bin/java -cp /usr/share/languagetool:/usr/share/java/languagetool/annotations.jar:/usr/share/java/languagetool/bcprov-jdk15on.jar::/usr/share/java/languagetool/slf4j-nop.jar -p 8081 ![]() TeXstudio recognizes the server afterwards. Languagetool in Arch Linux uses a wrapper (/usr/bin/languagetool) to collect classpath information and only then runs the jar like this. WARNING: running in HTTP mode, consider using for encrypted connectionsĮxception in thread "main" : org/languagetool/language/LanguageIdentifierĪt .(TextChecker.java:77)Īt 2TextChecker.(V2TextChecker.java:42)Īt .(LanguageToolHttpHandler.java:59)Īt .(HTTPServer.java:99)Īt .main(HTTPServer.java:138)Ĭaused by: : Īt (URLClassLoader.java:381)Īt (ClassLoader.java:424)Īt $AppClassLoader.loadClass(Launcher.java:338)Īt (ClassLoader.java:357) Java -cp /usr/share/java/languagetool/languagetool-server.jar -p 8081 However this doesn't work and trying to run the server manually causes this error: LT Path: /usr/share/java/languagetool/languagetool-server.jar While languagetool can be started manually when needed, TeXstudio will not automatically start and end the process as intended.Īccording to the official documentation following configuration for "Options > Configure TeXstudio > Language Checking" is fine: Languagetool's directory structure in Arch Linux differs from upstream and causes an issue with TeXstudio integration. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |