Back to LanguageTool Homepage - Privacy - Imprint

LT on MAC Missing 'text' parameter error


(Radan Suba) #1

Hi,
I would like to have LanguageTool on my mac running as server and later used in TexStudio.
I've installed Java 9.x and LanguageTool 3.2.
When I launch LanguageTool server through LanguageTool GUI and open

http://localhost:8081/v2/check?language=en&text=my+text

in the internet browser i got following:
This XML file does not appear to have any style information associated with it. The document tree is shown below.



However for http://localhost:8081/ in browser I got:
Error: java.lang.IllegalArgumentException: Missing 'text' parameter
at org.languagetool.server.LanguageToolHttpHandler.handle(LanguageToolHttpHandler.java:202)
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)

Is this proper response? I guess not. Any clue what could I do? Thanks

P.S: The firewall is switched off.


(Daniel Naber) #2

LanguageTool 3.2 doesn't offer the new API (with v2 in the path). For http://localhost:8081/ you get the expected response, as there was no text parameter. http://localhost:8081/?language=en-US&text=my+texd should work.


(Radan Suba) #3

yes, this works. thanks.

First thing solved. The second thing is connecting to TexStudio. When I run TS and write simple "this is a example" no underlining is visible. Any clue?