simrat39 / rust-tools.nvim

Tools for better development in rust using neovim's builtin lsp
MIT License
2.17k stars 158 forks source link

Cancelling debuggables errors due to lack of choice #305

Closed rockerBOO closed 1 year ago

rockerBOO commented 1 year ago
Error executing vim.schedule lua callback: ...ker/start/rust-tools.nvim/lua/rust-tools/debuggables.lua:79: attempt to index a nil value
stack traceback:
        ...ker/start/rust-tools.nvim/lua/rust-tools/debuggables.lua:79: in function 'on_choice'
        .../packer/start/dressing.nvim/lua/dressing/select/init.lua:71: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

Should check if choice is nil and do nothing.

lua/rust-tools/debuggables.lua#L75-L82

Thanks!

simrat39 commented 1 year ago

Fixed in https://github.com/simrat39/rust-tools.nvim/pull/299