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

Won't recognize that LanguageTool is installed #97

Open
AceofSpades5757 opened this issue Jan 1, 2021 · 0 comments
Open

Won't recognize that LanguageTool is installed #97

AceofSpades5757 opened this issue Jan 1, 2021 · 0 comments

Comments

@AceofSpades5757
Copy link

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"'
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

1 participant