Open swarnendubiswas opened 3 years ago
Hmm... I cannot reproduce this error.
Make sure you have valid path for flycheck-languagetool-server-jar
and make sure the port is available on your machine, default is 8081.
Also have a look in the buffer *LanguageTool server*
(note the leading space) to see if there are any helpful errors there.
Is this fixed by commit b6d0b1515418e5821241ac04143a12997c3bb240?
Hey all. So I ended up here because I was seeing the same thing on a new installation, MacOS specifically. It was just because I hadn't yet installed the JRE.
I was seeing the same thing on a new installation, MacOS specifically. It was just because I hadn't yet installed the JRE.
With what version of flycheck-languagetool
? I had hoped that this has been fixed.
I was seeing the same thing on a new installation, MacOS specifically. It was just because I hadn't yet installed the JRE.
With what version of
flycheck-languagetool
? I had hoped that this has been fixed.
I'm running 20211107.1001
.
Hmm. What does M-x
flycheck-verify-checker
languagetool
say when a JRE isn't installed? We now check for a java
executable before trying to activate the checker, but I wonder if that check fails on MacOS for some reason.
@swarnendubiswas are you able to run the language tool server? Did you try run this command: java -cp languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --allow-origin
I have just encountered this problem recently. Do note though I used flymake not flycheck, but since there is a thread here already, and the code seems fairly similar in at least the places I have made some modifications.
I suspect it's because for some reason the server has been started, but the process is not live anymore. For OSX, it would spawn new application named java but is in fact the HTTPServer, I closed it without knowing that which is most likely part of the cause of this error. So now flymake-languagetool--started-server
is t, but (process-live-p (get-process "languagetool-server"))
returns nil
.
What I did for my quick fix was to comment out the following lines:
(unless flymake-languagetool--started-server
(setq flymake-languagetool--started-server t))
So that flymake-languagetool--start-server
will be called every time, but it shouldn't create additional server instances, as there is a process-live-p
check.
Hi,
Suppose I have a text buffer or a file with the following content.
The flycheck checkers are set as follows.
I do not use
proselint
and have disabled it, so the rest of theFlycheck checkers
buffer should not be relevant.Flycheck-languagetool
throws the following error when I invokeflycheck-buffer
.Here is my
flycheck-languagetool
configuration.