-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Hi and thanks for making this plugin. I'm really interested by it covering Japanese (although vim spellcheck doesn't).
I installed languagetool on arch linux, and added the vim config:
$ yay -Ql languagetool | rg commandline.jar
languagetool /usr/share/java/languagetool/languagetool-commandline.jar" vimrc
Plug 'dpelle/vim-LanguageTool' " grammar checker supporting japanese
let g:languagetool_jar='/usr/share/java/languagetool/languagetool-commandline.jar'
set spelllang=en_us
"set spelllang=ja
"Customize colors in colorscheme
hi LanguageToolGrammarError guisp=blue gui=undercurl guifg=NONE guibg=NONE ctermfg=white ctermbg=blue term=underline cterm=none
hi LanguageToolSpellingError guisp=red gui=undercurl guifg=NONE guibg=NONE ctermfg=white ctermbg=red term=underline cterm=noneBut when I try to run :LanguageToolCheck, I'm getting:
Error detected while processing function <SNR>37_LanguageToolCheck:
line 43:
Command [java -jar /usr/share/java/languagetool/languagetool-commandline.jar -c utf-8 -d WHITESPACE_RULE,EN_QUOTES -l en-US --api /tmp/nvimMCUuQC/10 2> /tmp/nvimMCUuQC/11] failed with error: 1
line 46:
['Error: Unable to initialize main class org.languagetool.commandline.Main', 'Caused by: java.lang.NoClassDefFoundError: org/languagetool/rules/Rule']
Your documentation mentions installing the latest version of languagetool, and I seem to be using the version 5
$ yay -Qii languagetool
Name : languagetool
Version : 5.0-1
Description : An open source language checker
Architecture : any
URL : https://www.languagetool.org
Licenses : LGPL
Groups : None
Provides : None
Depends On : java-runtime-headless>=8
Optional Deps : java-runtime: needed for the GUI version [installed]
libxtst: needed for the GUI version [installed]
gtk2: needed for the GUI version [installed]
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 290.64 MiB
Packager : Andrzej Giniewicz <gginiu@gmail.com>
Build Date : Mon 29 Jun 2020 02:48:43 AM JST
Install Date : Fri 11 Sep 2020 10:45:39 AM JST
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
Backup Files :
(none)lf-araujo and mb720
Metadata
Metadata
Assignees
Labels
No labels