Back to LanguageTool Homepage - Privacy - Imprint

LT, Checkmate & Mac?


#1

This is how I proceeded:

  • Specs: Mac High Sierra, Java 9, latest CM and LT versions
  • Install Checkmate
  • Install LT Standalone app
  • Configure LT to start the server with default settings (port 8081). Settings saved, LT closed and restarted
  • Configure Checkmate to use the server at http://localhost:8081/ and check document
  • In Checkmate I then get the message “Error with LanguageTool server. All LT checks are skipped from this text unit on. Server returned HTTP response code: 400 for URL: http://localhost:8081/?language=de&text=TINY-8” (browser Firefox, but this should be unimportant here)

Okay, this must be some firewall or Mac-specific issue, I assume, or any other setting. But which one? Any hint is welcome.


#2

In the meantime, I did the following
start the server* manually with java -cp languagetool-server.jar org.languagetool.server.HTTPServer (taken from the Ubuntu Wiki)

  • open the URL named there http ://localhost:8081/?language=de-DE&text=Das+ist+eine+Test.
  • now I get the response (only by opening the URL): Error: Missing arguments for LanguageTool API. Please see https ://languagetool.org/http-api/swagger-ui/#/default
  • when opening CheckMAte now, I get the same response from within CheclMate as above (Error with LanguageTool server. All LT checks are skipped from this text unit on. Server returned HTTP response code: 400 for URL: http://localhost:8081/?language=de&text=TINY-8)

Maybe this is due to any sandbox feature in High Sierra?


(Daniel Naber) #3

The correct URL is something like http://localhost:8081/v2/check?text=test&language=en-US


#4

Topic (at least partly) solved.

The Checkmate GUI allows to edit the URL, but it puts a slash. So for “text” it is

http ://localhost:8081/v2/check**/**?text=test&language=en-US (with http ://localhost:8081/v2/check)

or

http ://localhost:8081/v2/check?text=test&language=en-US (with http ://localhost:8081/v2 entered).

I will ask the folks at CheckMate to modify this.

By the way are the results always given out as JSON data (a kind of table, two colors, but not very eye-friendly). Is there any way to modify this? I do not know what it looks like in CheckMate, but this is far from ideal.


(Daniel Naber) #5

LT always return JSON data, it’s the add-on’s job then to display that in a user-friendly way. Calling the URLs from above is only useful for testing/development, not for users.


#6

Got it.

I did not use the latest CheckMate release.

:roll_eyes: