Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to only use the http langtool server? How can I debug LanguageTool returned with status 1 #5

Closed
contra-bit opened this issue Jun 24, 2021 · 3 comments
Assignees
Labels
invalid This doesn't seem right question Further information is requested

Comments

@contra-bit
Copy link

I start my languagetool on boot with systemd.

LanguageTool returned with status 1

Jun 24 16:41:04 NAME languagetool[49404]: WARN  o.l.language.LanguageIdentifier Cannot consider noopLanguages because not in fastText mode: [en, de]

These are the only error messages I have recived

@PillFall
Copy link
Owner

PillFall commented Jun 24, 2021

Yeah, you can use a standalone or already created HTTP Server. You only need to config the URL and Port. There is no need to start the server from Emacs. This was solved in v0.4.0.

In your .emacs you only need to add:

(setq languagetool-server-url "http://whateverlocation") ;; without trailing forward slash

(setq languagetool-server-port 8081) ;; The port to the server.
;; If you access through http://localhost/api/v2/check for example. This should be set to 80

Then you can check the buffer using languagetool-server-mode

P.S. If you are having trouble with the init of LanguageTool Server from systemd. I suggest you to post a issue in LanguageTool GitHub page (link)

@PillFall PillFall self-assigned this Jun 24, 2021
@PillFall PillFall added the question Further information is requested label Jun 24, 2021
@PillFall
Copy link
Owner

As I get no response and this must be invalid (you are referring to the behavior of LanguageTool itself, not to the Emacs package). I'm going to close and mark the issue as invalid.

@PillFall PillFall added the invalid This doesn't seem right label Jun 28, 2021
@telenieko
Copy link

(setq languagetool-server-url "http://whateverlocation") ;; without trailing forward slash

(setq languagetool-server-port "8081") ;; The port to the server.
;; If you access through http://localhost/api/v2/check for example. This should be set to 80

Note that the port has to be a number:

(setq languagetool-server-url "http://whateverlocation") ;; without trailing forward slash
(setq languagetool-server-port 8081) ;; The port to the server.

Otherwise, you will be greeted with:

languagetool-server-mode-on: Format specifier doesn’t match argument type

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants