brymer-meneses / grammar-guard.nvim

Grammar Guard is a Neovim plugin that checks your grammar as you write your LaTeX, Markdown or plain text document.
Apache License 2.0
154 stars 6 forks source link

Get signal error #20

Closed eyalk11 closed 2 years ago

eyalk11 commented 2 years ago

I am on windows, when I try to edit a tex file , it crashes "Client 12 exits with code 1 and signal 0".

I needed to specify the path manually.

require("lspconfig").grammar_guard.setup({capabilities = capabilities,
on_attach = on_attach,
  cmd = { 'C:\\Users\\ekarni\\AppData\\Local\\nvim-data\\lsp_servers\\ltex\\ltex-ls\\bin\\ltex-ls.bat' }, -- add this if you install ltex-ls yourself
    settings = {
        ltex = {
            enabled = { "latex", "tex", "bib", "markdown" },
            language = "en",
            diagnosticSeverity = "information",
            setenceCacheSize = 2000,
            additionalRules = {
                enablePickyRules = true,
                motherTongue = "en",
            },
            trace = { server = "verbose" },
            dictionary = {'c:\\temp\\words'},
            disabledRules = {},
            hiddenFalsePositives = {},
        },
    },
})
eyalk11 commented 2 years ago

Ok ,checking the log turns it interesting.

[ERROR][2022-08-05 22:22:14] .../vim/lsp/rpc.lua:430    "rpc"   "C:\\Users\\ekarni\\AppData\\Local\\nvim-data\\lsp_servers\\ltex\\ltex-ls\\bin\\ltex-ls.bat"    "stderr"    "java.lang.UnsupportedClassVersionError: org/bsplines/ltexls/LtexLanguageServerLauncher has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0"