rhysd / vim-grammarous

A powerful grammar checker for Vim using LanguageTool.
1.1k stars 41 forks source link

Won't recognize that LanguageTool is installed #97

Open AceofSpades5757 opened 3 years ago

AceofSpades5757 commented 3 years ago

OS: Windows

Running :GrammarousCheck will always attempt to download LanguageTool, and fail due to the spaces in my path (gives an error when trying to create the directory showing the path stopping at the first space). Manually downloading and extracting it will do the same thing. I've confirmed it was the correct download with my WSL Vim that actually ran the automatic download and ran the command correctly.

I think the spaces in the path to my vim-grammarous plugin are causing the issue, since it won't recognize that I manually downloaded and extracted the files to the correct location.

Fix: To just make it work, I manually set the g:grammarous#languagetool_cmd variable to use the languagetool-commandline.jar file. Not ideal, but it works. :)

let g:grammarous#languagetool_cmd='java -jar "C:\Users\My User with Spaces\vimfiles\plugged\vim-grammarous\misc\LanguageTool-5.2\languagetool-commandline.jar"'