File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ All notable changes to this project will be documented in this file.
6
6
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
7
7
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
8
8
9
+ ## [ 5.1.5] - 2024-08-05
10
+
11
+ ### Fixed
12
+
13
+ - Health: Warn if no debug adapters have been detected.
14
+
9
15
## [ 5.1.4] - 2024-08-02
10
16
11
17
### Fixed
Original file line number Diff line number Diff line change @@ -126,6 +126,15 @@ local function check_config(config)
126
126
end
127
127
end
128
128
129
+ local function is_dap_enabled ()
130
+ if not pcall (require , ' dap' ) then
131
+ return false
132
+ end
133
+ local rustaceanvim = vim .g .rustaceanvim or {}
134
+ local opts = type (rustaceanvim ) == ' function' and rustaceanvim () or rustaceanvim
135
+ return vim .tbl_get (opts , ' dap' , ' adapter' ) ~= false
136
+ end
137
+
129
138
local function check_for_conflicts ()
130
139
start (' Checking for conflicting plugins' )
131
140
require (' rustaceanvim.config.check' ).check_for_lspconfig_conflict (error )
@@ -271,6 +280,9 @@ function health.check()
271
280
]] ,
272
281
})
273
282
end
283
+ if adapter == false and is_dap_enabled () then
284
+ warn (' No debug adapter detected. Make sure either lldb or codelldb is available on the path.' )
285
+ end
274
286
for _ , dep in ipairs (external_dependencies ) do
275
287
check_external_dependency (dep )
276
288
end
You can’t perform that action at this time.
0 commit comments