jay-babu / mason-nvim-dap.nvim

GNU Affero General Public License v3.0
526 stars 36 forks source link

"ENOENT: no such file or directory" after launching LLDB: Launch #113

Open John-Boccio opened 10 months ago

John-Boccio commented 10 months ago

image

Sorry if this is a dumb question. I am new to neovim and am starting from this kickstart.nvim repository here: https://github.com/John-Boccio/nvim

The changes I have made are in the main branch, all it consists of is the following:

│diff --git a/init.lua b/init.lua                                                                                                                                                                                                                                                  │
│index a7667dd..281434c 100644                                                                                                                                                                                                                                                     │
│--- a/init.lua                                                                                                                                                                                                                                                                    │
│+++ b/init.lua                                                                                                                                                                                                                                                                    │
│@@ -218,8 +218,8 @@ require('lazy').setup({                                                                                                                                                                                                                                       │
│   -- NOTE: Next Step on Your Neovim Journey: Add/Configure additional "plugins" for kickstart                                                                                                                                                                                    │
│   --       These are some example plugins that I've included in the kickstart repository.                                                                                                                                                                                        │
│   --       Uncomment any of the lines below to enable them.                                                                                                                                                                                                                      │
│-  -- require 'kickstart.plugins.autoformat',                                                                                                                                                                                                                                     │
│-  -- require 'kickstart.plugins.debug',                                                                                                                                                                                                                                          │
│+  require 'kickstart.plugins.autoformat',                                                                                                                                                                                                                                        │
│+  require 'kickstart.plugins.debug',                                                                                                                                                                                                                                             │
│                                                                                                                                                                                                                                                                                  │
│   -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`                                                                                                                                                           │
│   --    You can use this folder to prevent any conflicts with this init.lua if you're interested in keeping                                                                                                                                                                      │
│diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua                                                                                                                                                                                                    │
│index 7fc783f..1bab69b 100644                                                                                                                                                                                                                                                     │
│--- a/lua/kickstart/plugins/debug.lua                                                                                                                                                                                                                                             │
│+++ b/lua/kickstart/plugins/debug.lua                                                                                                                                                                                                                                             │
│@@ -39,6 +39,8 @@ return {                                                                                                                                                                                                                                                        │
│       ensure_installed = {                                                                                                                                                                                                                                                       │
│         -- Update this to ensure that you have the debuggers for the langs you want                                                                                                                                                                                              │
│         'delve',                                                                                                                                                                                                                                                                 │
│+        'codelldb',                                                                                                                                                                                                                                                              │
│+        'cppdbg',                                                                                                                                                                                                                                                                │
│       },                                                                                                                                                                                                                                                                         │
│     }    

After going into my basic C++ test project, I ran :DapInstall codelldb. Then I set a break point and launched "LLDB: Launch" and provided the path to my executable. The error is shown in the screen shot.

github-actions[bot] commented 10 months ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

github-actions[bot] commented 10 months ago

This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

nickmarks00 commented 2 weeks ago

I am having the same issue as of today, please re-open if possible

jay-babu commented 2 weeks ago

I can reopen but I don’t use codelldb, so I have no plans on investigating any time soon

github-actions[bot] commented 2 days ago

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

nickmarks00 commented 16 hours ago

In case anyone comes across a similar issue, I resolved it by writing my own DAP configuration for cpp. It is as simple as following the steps described here. For me, doing this verbatim led to a working codelldb configuration.