LanguageTool.nvim icon indicating copy to clipboard operation
LanguageTool.nvim copied to clipboard

undefined variable l:fix

Open RonanMacF opened this issue 4 years ago • 2 comments

Describe the bug asciicinema recording

when pressing f to fix on Summary window it returns an error as shown below

Error detected while processing function LanguageTool#errors#fix:
line    2:
E684: list index out of range: -21
E15: Invalid expression: a:error.replacements[a:sug_id].value
line    7:
E121: Undefined variable: l:fix

To Reproduce Steps to reproduce the behavior:

  1. Start server and run check
  2. navigate to summary window
  3. press 'f'

Desktop (please complete the following information):

  • OS: macOS

Additional context

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

using plugin commit 809e7d77fec834597f495fec737c59292a10025b

RonanMacF avatar Nov 15 '20 13:11 RonanMacF

Weird, the actual error seems to be

E684: list index out of range: -21

I'll be investigating that later.

vigoux avatar Nov 16 '20 08:11 vigoux

I have the same issue on NVIM v0.5.0-dev+1115-gc1fbc2ddf.

mawkler avatar Mar 02 '21 19:03 mawkler