Problem: Warning messages via vim.notify do not retain stack trace,
which makes errors or bugs happened on the adapters' side difficult
to troubleshoot. E.g.:
neotest-python: vim/_editor.lua:0: E5560: Vimscript function must not be called in a lua loop callback
Solution: Use xpcall, instead of pcall to access the stacktrace
information, and use it when showing warning (error) messages. E.g.:
Problem: Warning messages via
vim.notify
do not retain stack trace, which makes errors or bugs happened on the adapters' side difficult to troubleshoot. E.g.:Solution: Use
xpcall
, instead ofpcall
to access the stacktrace information, and use it when showing warning (error) messages. E.g.: