-
Notifications
You must be signed in to change notification settings - Fork 10
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
E5108: Error executing lua ... Invalid 'group': 'JABS' #48
Comments
I just tested your config and it works for me. What version of Neovim are you on? Also, are you using the latest version of the plugin? |
I use nvim v0.9.0, and the plugin is latest JABS version. |
I haven't tested JABS with lazy.nvim yet, maybe the lazy loading is causing issues. Could you try setting the plugin to use |
I tried, and got the same error, but i think that problem is not with lazy, because my friend have Arch and he have a same config with JABS and lazy and it works well. |
Hello.
I have no config: require("jabs").setup({})
local keymap = vim.api.nvim_set_keymap
keymap('n', '<F8>', ':JABSOpen<CR>', {}) But it does open an empty overlayed window in the bottom right hand, so I'm wondering if another plugin might be conflicting with the popup drawing. |
@AlexisFinn could you provide the output of |
As an alternative you could check out this fork: https://github.com/jeff-dh/expJABS.nvim It's a refactored and enhanced version of JABS, that might not be affect by this issue. |
It makes sense that a "previous" aborted call to JABS causes the error mentioned by @Sanart0 . Since this branch of the JABS plugin uses a global state. An aborted call to JABS might cause a partially initialized global state. The second call might think the state is initialized (because a certain variable is set) and call the close function. Since the state is not initialized correctly the close call fails and causes another error (because it can not find a supposed to be registered group name that would have been registered if the first call would not have been aborted). Lines 615 to 618 in b6dbd1a
Switching the order of these three lines might(!) solve the first issue, but would also be a hack. The refresh call is what caused the error mentioned by @AlexisFinn , the set_autocmds functions registers the group name "JABS" that was not found in the error mentioned by @Sanart0.
So there would be a causing issue (like @AlexisFinn reported) which causes a error in the error handling of jabs (as reported by @Sanart0). |
@jeff-dh sorry for late answer. I can confirm using Also I'm not sure I know what you mean by
I don't know how to interpret this, I get it seems to be some kind of stack trace and if I had to guess which of the mentionned plugins in causing problems it would probably be |
I think you did everything right regarding the `:ls` command.
Does it really output `ligne`? Not `line`?
If that's the case, that's the issue! Are you running nvim in French?
Try to set the config value `sort_mru = true`, this might be a work
around.
Anyway, if the expJABS branch solves your issue, I would suggest to just
keep on going with it..... but it will have the same issue concerning
`line` vs `ligne` and the `sort_mru` work around should work aswell. I
might have a look at it and can try to add multilanguage support to
expJABS.
|
Yeah, the non English language of nvim is pretty sure the issue.....
JABS uses a regexp that "greps" for "line" to parse the output of
`:ls`, if nvim does not run in English... well... it can't find `line`
and thus calls some functions with nil values which causes a crash,
which causes a partially global state, which causes the other error.
|
So, it turned out that the reason why expJABS is not affected by this
issue is, that `sort_mru = true` is the default in expJABS otherwise it
produces very similar issues.
I added "multi language support" to expJABS (at least for the `line`
issue). Could you give the latest expJABS a try with explicitly setting
`sort_mru = false` to test it and whether there are other issues
concerning multi language support?
Thanks!
|
Hello,
i have a problem with JABS, when i run it (like :JABSOpen), i get an error.
For plugins i use Lazy.
This is my neovim lua config for JABS:
This is error message:
The text was updated successfully, but these errors were encountered: