vigoux / LanguageTool.nvim

An asynchronous grammar checker for Neovim using LanguageTool
Other
81 stars 3 forks source link

Error calling LanguageToolFixAtPoint #12

Open RonanMacF opened 3 years ago

RonanMacF commented 3 years ago

Describe the bug asciicinema recording

Error detected while processing function LanguageTool#fixErrorAtPoint[1]..LanguageTool#errors#fix[1]..LanguageTool#errors#highlightRegex:
line    3:
E716: Key not present in Dictionary: "fromy == a:error.toy"
E15: Invalid expression: a:error.fromy == a:error.toy
line   17:
E121: Undefined variable: l:location_prefix
E15: Invalid expression: '\V' . l:location_prefix . '\<'     . LanguageTool#errors#getText(a:error)     . '\>\ze'
Error detected while processing function LanguageTool#fixErrorAtPoint[1]..LanguageTool#errors#fix:
line    2:
E716: Key not present in Dictionary: "replacements[a:sug_id].value"
E15: Invalid expression: a:error.replacements[a:sug_id].value
line    4:
E716: Key not present in Dictionary: "source_win)"
E116: Invalid arguments for function win_gotoid
line    7:
E716: Key not present in Dictionary: "fromy . ',' . a:error.toy . 's/' . l:location_regex . '/' . l:fix . '/'"

To Reproduce Steps to reproduce the behavior:

  1. Start server and run check
  2. navigate to summary window
  3. go to last error and call :LanguageToolFixAtPoint

Expected behavior A clear and concise description of what you expected to happen.

Screenshots asciicinema above Desktop (please complete the following information):

Additional context

NVIM v0.5.0-dev
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: 
Compiled by nixbld

using plugin commit 809e7d77fec834597f495fec737c59292a10025b