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

lua error message when closing Mason on

Open alexmaloteaux opened this issue 3 years ago • 4 comments
trafficstars

Problem description

when closing Mason i have systematicallly an error lua message :


Error executing vim.schedule lua callback: ...ck/packer/start/mason.nvim/lua/mason-core/ui/display.lua:495: Vim:E367: No such group: "--Deleted--"
stack traceback:
        [C]: in function 'nvim_del_augroup_by_id'
        ...ck/packer/start/mason.nvim/lua/mason-core/ui/display.lua:495: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

vim and Mason works without issue besides this message

Neovim version (>= 0.7)

NVIM v0.8.0 Build type: Release LuaJIT 2.1.0-beta3 Compiled by builduser

Features: +acl +iconv +tui See ":help feature-compile"

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/share/nvim"

Operating system/version

Linux amalo 5.15.73-1-lts #1 SMP Wed, 12 Oct 2022 10:21:34 +0000 x86_64 GNU/Linux

I've recently downloaded the latest plugin version of mason.nvim

  • [X] Yes

Actual behavior

error message

Expected behavior

no error message

Healthcheck output

none provided

Screenshots

No response

alexmaloteaux avatar Oct 14 '22 11:10 alexmaloteaux

Hello! Hm. Could you see if #553 (branch fix/ui-augroup-del) fixes this?

williamboman avatar Oct 14 '22 12:10 williamboman

still the same , however it seems that just , launching nvim , then Mason and quitting it (with escape), doesn't immediately trigger the error message. A minimum of "activity" is necessary, otherwise the error msg is not triggered.

Sorry for the poor description but i didnt found a pattern to have it 100% persistent :) br

alexmaloteaux avatar Oct 14 '22 13:10 alexmaloteaux

Which steps (from start to error) do you do to trigger this error?

williamboman avatar Oct 14 '22 14:10 williamboman

launch Mason with :Mason optionally do some activity like install/update/browse then quit with ESC

the issue start randomly from first up to 10+ launch, from there appears "almost" permanently on each subsequent launch

alexmaloteaux avatar Oct 14 '22 15:10 alexmaloteaux

I'm going to close this as there have not been any other reports regarding this, and I've been unable to reproduce.

williamboman avatar Feb 07 '23 20:02 williamboman

I experience the same problem, except the error is now in line 506. I can reproduce it with double-hitting the ESC key, therefore I guess the buffer is already being removed but the keybinding is still active and fires without being able to remove it. Do we know why pressing Esc is so much slower than q?

Error executing vim.schedule lua callback: ...ck/packer/start/mason.nvim/lua/mason-core/ui/display.lua:506: Vim:E367: No such group: "--Deleted--"
stack traceback:
        [C]: in function 'nvim_del_augroup_by_id'
        ...ck/packer/start/mason.nvim/lua/mason-core/ui/display.lua:506: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

WuerfelDev avatar Feb 15 '23 08:02 WuerfelDev

yes correct hitting 2 times esc trigger it for me each time

alexmaloteaux avatar Feb 15 '23 12:02 alexmaloteaux

I found this (https://www.johnhawthorn.com/2012/09/vi-escape-delays/) and noticed that my delay was caused by tmux. While the error still exists, now we avoid running into it.

WuerfelDev avatar Feb 20 '23 12:02 WuerfelDev