From 5823403923ecef73504a7cfaeff85990af200eb3 Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Sat, 1 Jun 2024 11:11:42 +0200 Subject: [PATCH] Point to available adapters if config references missing adapter --- lua/dap.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/dap.lua b/lua/dap.lua index fea8f565..2a4f33a4 100644 --- a/lua/dap.lua +++ b/lua/dap.lua @@ -603,9 +603,9 @@ function M.run(config, opts) ) elseif adapter == nil then notify(string.format( - 'The selected configuration references adapter `%s`, but dap.adapters.%s is undefined', + 'Config references missing adapter `%s`. Available are: %s', config.type, - config.type + table.concat(vim.tbl_keys(M.adapters), ", ") ), vim.log.levels.ERROR) else notify(string.format(