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

error when spelllang language include cjk #92

Open
jdhao opened this issue Sep 19, 2020 · 0 comments
Open

error when spelllang language include cjk #92

jdhao opened this issue Sep 19, 2020 · 0 comments

Comments

@jdhao
Copy link

jdhao commented Sep 19, 2020

My setting for spelllang:

set spelllang=en,cjk

If add the following setting:

let g:grammarous#use_vim_spelllang = 1

When I run :GrammarousCheck, I will get an error :

|| vim-grammarous: Grammar check failed: java.lang.IllegalArgumentException: 'en,cjk' is not a language code known to LanguageTool. Supported language codes are: ar, ast-ES, be-BY, br-FR, ca-ES, ca-ES-valencia, da-DK, de, de-AT, de-CH, de-DE, de-DE-x-simple-language, el-GR, en, en-AU, en-CA, en-GB, en-NZ, en-US, en-ZA, eo, es, fa, fr, ga-IE, gl-ES, it, ja-JP, km-KH, nl, pl-PL, pt, pt-AO, pt-BR, pt-MZ, pt-PT, ro-RO, ru-RU, sk-SK, sl-SI, sv, ta-IN, tl-PH, uk-UA, zh-CN. The list of languages is read from META-INF/org/languagetool/language-module.properties in the Java classpath. See http://wiki.languagetool.org/java-api for details.

The option string supported by vim and languagetool are not the same, hence the error. Maybe just strip the option string before sending it to languagetool?

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