Open perceg opened 2 years ago
@perceg I was also experiencing these errors on Arch, but this config worked best for me (I'm using setup.el)
(setup (:straight langtool)
(:option langtool-java-classpath
"/usr/share/languagetool:/usr/share/java/languagetool/*"
langtool-language-tool-jar
"/usr/share/java/languagetool/languagetool-commandline.jar"
langtool-java-bin "/usr/bin/java"
langtool-default-language "en-GB"
langtool-mother-tongue "en"
langtool-java-user-arguments '("-Dfile.encoding=UTF-8"))
(defun langtool-autoshow-detail-popup (overlays)
(when (require 'popup nil t)
;; Do not interrupt current popup
(unless (or popup-instances
;; suppress popup after type `C-g' .
(memq last-command '(keyboard-quit)))
(let ((msg (langtool-details-error-message overlays)))
(popup-tip msg)))))
(:option langtool-autoshow-message-function
'langtool-autoshow-detail-popup))
Hope that's helpful!
Following the languagetool update from 5.5-2 to 5.6-1, langtool in emacs (langtool-check) starts but then exits abnormally with error 1. After I downgraded languagetool back to 5.5-2 langtool is again working as intended.
I'm running two Arch linux based distros, Manjaro and Endevaour, and the above described issue is present in both.