Skip to content

Commit

Permalink
fix(dap): check if codelldb is nil
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleTealeaf committed Dec 1, 2023
1 parent 67bbfc8 commit 3a517ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rustaceanvim/config/internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ local RustaceanDefaultConfig = {
local result = false
local has_mason, mason_registry = pcall(require, 'mason-registry')
local mason_has_codelldb, codelldb = has_mason and pcall(mason_registry.get_package, 'codelldb') or false, nil
if mason_has_codelldb then
if mason_has_codelldb and codelldb ~= nil then
local mason_codelldb_path = compat.joinpath(codelldb:get_install_path(), 'extension')
local codelldb_path = compat.joinpath(mason_codelldb_path, 'adapter', 'codelldb')
local liblldb_path = compat.joinpath('lldb', 'lib', 'liblldb')
Expand Down

0 comments on commit 3a517ca

Please sign in to comment.