Open zachsamuels opened 5 years ago
I have this issue too, can you help us resolve this @viraja1
you need to modify grammarcheck/__init_\.py
function get_server_cmd(port=None)
doesn't work with new versions of java
here is what i changed it to to make it work:
def get_server_cmd(port=None):
try:
cmd = cache['server_cmd']
except KeyError:
java_path, jar_path = get_jar_info()
cmd = [java_path, '--add-modules', 'java.xml.bind', '-cp', jar_path, 'org.languagetool.server.HTTPServer']
cache['server_cmd'] = cmd
return cmd if port is None else cmd + ['-p', str(port)]
all that is different is i added '--add-modules', 'java.xml.bind',
after java_path,
in cmd
variable
i'm sure the proper way of doing this would be to check the java version, and only add this if needed, because it might break if you try using it this way with an old version of java
Hi! Since this project has been abandoned, I started a new fork over at https://github.com/jxmorris12/language_tool_python.
My version supports new versions of Java and LanguageTool. language-check is stuck on Java 8 and LanguageTool 3.2; latest versions are Java 14 and LanguageTool 4.9!
I'm happy to help you with your issue if you raise it over at my repository! Thanks!
When trying to run the check function I am running into the error:
grammar_check.ServerError: http://127.0.0.1:8081: [Errno 104] Connection reset by peer
Here is the full Traceback:Is there any reason for this and/or a way to fix it?