Closed jcubic closed 6 months ago
Thanks for the report. For a bit more information, does this happen with every file you open or a single one? If the latter, do you mind sharing a copy of the document? You can do so privately if you prefer it not be on GitHub.
Also, it states that two backends are disabled, can you let me know what other flymake backend is used?
Ideally, if you can reproduce this using emacs -Q
and a very basic init file it would be helpful as well.
I tested it in two different markdown files. Can reproduce it in emacs -Q
, the second error is invisible unless you have debugger on error enabled.
I was able to reproduce your issue. Can you try out that pull request mentioned above, or using the branch fix/warnings
and let me know if this helps?
Sure, will check, that was pretty fast.
It's not fully fixed. What I had was the prompt and error that appear shortly after, it created recursive edit. But when I called [2]M-x exit-recursive-edit
from inside minibuffer I was able to give "y" to the prompt and didn't get the error again.
I'm not sure if the same was before, I just learned about recursive edit and how it exit it.
It is not entirely clear to me what you mean. I do not know if you are having the same issues. Can you please share the bare configuration that you used with emacs -Q
and an example file.
I still can reproduce with emacs -Q
. This is the file:
https://github.com/jcubic/lips-website/blob/docusaurus/docs/docs/scheme-intro/macros.md
And my config look like this:
(add-to-list 'load-path "/home/kuba/projects/emacs-modes/flymake-languagetool")
(setq flymake-languagetool-server-jar nil)
(setq flymake-languagetool-url "https://api.languagetool.org")
(require 'flymake-languagetool)
(defun markdown ()
(interactive)
(setq fill-column 100)
(if (let ((name (buffer-file-name)))
(or (string-match-p "jcubic/www/blog/repo" name)
(string-match-p "jcubic/www/jankiewicz" name)
(string-match-p "/pl/" name)))
(setq-local flymake-languagetool-language "pl-PL")
(setq-local flymake-languagetool-language "en-US"))
(flymake-languagetool-load)
(flymake-mode))
I open the file (linked above) and run M-x markdown, try to edit, and save.
Okay, I think the latest commit (0f8c1ed24858cf72bc84fdce88cb54fb9ba8ed65) on this branch should fix it. let me know whenever you have time. Thanks for your patience.
Yes, it seems to work now. Thanks.
When using the flymake-languagetool I got this GUI popup when I need to confirm to kill the process. First time seeing something like this. This happens when I save the file.
When I hover over flymake in the minibuffer it says
2 known backends, 0 running, 2 disabled
I also got this stack trace of of the time when the question is in minibuffer:
Sometimes I also end up with recursive editing mode after saving the file. This is when the question happen in minibuffer.
I'm using GNU Emacs 29.2 and just installed the package from Melpa.