Closed Orest58008 closed 2 months ago
Thanks for the issue!
This seems to happen because 'mini.completion' tries to show signature information and fails due to an upstream error.
I don't have any LSP server for Ada files installed (and would like to keep it that way if possible), so would you mind getting some debug information to help solve this issue?
Here are the steps:
:lua _G.log, orig = {}, vim.lsp.util.stylize_markdown; vim.lsp.util.stylize_markdown = function(...) table.insert(_G.log, {...}); return orig(...) end
. This will wrap offending core function to track how it was called.:lua vim.fn.append(0, vim.split(vim.inspect(_G.log), '\n'))
. This will put some new lines at the top of the current buffer.{ { 4, { "```ada", "procedure Put_Line\n (Item : String)", "```" }, {
wrap_at = 80
} } }
Thanks for the follow up!
This is indeed an upstream Neovim issue which got resolved in (hopefully soon to be released) 0.10 version. However, I did an update which should make this type of signature lines work on Neovim<0.10.
Thank you for your time, the commit solved the issue!
Contributing guidelines
Module(s)
mini.completion
Description
mini.completion crashes when trying to complete inside open open brackets in Ada.
The LSP server is ada_language_server of version 24.0.4, configured with
require'lspconfig'.als.setup {}
and I have jiangmiao/auto-pairs installedNeovim version
v0.9.5
Steps to reproduce
Put_Line
)(
)Expected behavior
No response
Actual behavior
Gives this error: