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

Langtool exiting abnormally after languagetool update from 5.5-2 to 5.6-1 #62

Open
perceg opened this issue Feb 1, 2022 · 1 comment

Comments

@perceg
Copy link

perceg commented Feb 1, 2022

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.

@johnhamelink
Copy link

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants