我已经在LanguageTools的论坛中询问了,但是说它似乎是Texstudio的一个问题,它不会将语言参数发送到服务器。你知道可能是什么问题吗? 我正在使用Linux mint 17.2,Java 8和TexStudio 2.6.6 来自服务器的Stacktrace:
2016-05-13 11:38:08 An error has occurred. Access from 127.0.0.1, text length 14. Stacktrace follows:
java.lang.IllegalArgumentException: '<none>' is not a language code known to LanguageTool. Supported language codes are: ast-ES, be-BY, br-FR, ca-ES, ca-ES-valencia, da-DK, de, de-AT, de-CH, de-DE, de-DE-x-simple-language, el-GR, en, en-AU, en-CA, en-GB, en-NZ, en-US, en-ZA, eo, es, fa, fr, gl-ES, is-IS, it, ja-JP, km-KH, lt-LT, ml-IN, nl, pl-PL, pt, pt-BR, pt-PT, ro-RO, ru-RU, sk-SK, sl-SI, sv, ta-IN, tl-PH, uk-UA, xx-XX, zh-CN. The list of languages is read from META-INF/org/languagetool/language-module.properties in the Java classpath. See http://wiki.languagetool.org/java-api for details.
at org.languagetool.Languages.getLanguageForShortName(Languages.java:153)
at org.languagetool.server.LanguageToolHttpHandler.getLanguage(LanguageToolHttpHandler.java:488)
at org.languagetool.server.LanguageToolHttpHandler.checkText(LanguageToolHttpHandler.java:382)
at org.languagetool.server.LanguageToolHttpHandler.handle(LanguageToolHttpHandler.java:209)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2016-05-13 11:38:08 An error has occurred. Access from 127.0.0.1, text length 16. Stacktrace follows:
java.lang.IllegalArgumentException: '<none>' is not a language code known to LanguageTool. Supported language codes are: ast-ES, be-BY, br-FR, ca-ES, ca-ES-valencia, da-DK, de, de-AT, de-CH, de-DE, de-DE-x-simple-language, el-GR, en, en-AU, en-CA, en-GB, en-NZ, en-US, en-ZA, eo, es, fa, fr, gl-ES, is-IS, it, ja-JP, km-KH, lt-LT, ml-IN, nl, pl-PL, pt, pt-BR, pt-PT, ro-RO, ru-RU, sk-SK, sl-SI, sv, ta-IN, tl-PH, uk-UA, xx-XX, zh-CN. The list of languages is read from META-INF/org/languagetool/language-module.properties in the Java classpath. See http://wiki.languagetool.org/java-api for details.
at org.languagetool.Languages.getLanguageForShortName(Languages.java:153)
at org.languagetool.server.LanguageToolHttpHandler.getLanguage(LanguageToolHttpHandler.java:488)
at org.languagetool.server.LanguageToolHttpHandler.checkText(LanguageToolHttpHandler.java:382)
at org.languagetool.server.LanguageToolHttpHandler.handle(LanguageToolHttpHandler.java:209)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:83)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:82)
at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:675)
at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:79)
at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:647)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
答案 0 :(得分:0)
好的,我可以解决它。问题是,我使用了包管理器的2.6.6版。使用texstuido.org的2.10版解决了这个问题。