jay-babu / mason-nvim-dap.nvim

GNU Affero General Public License v3.0
557 stars 39 forks source link

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

Closed John-Boccio closed 1 month ago

John-Boccio commented 1 year 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 1 year 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 1 year 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 3 months ago

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

jay-babu commented 3 months 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 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!

nickmarks00 commented 2 months 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.

jay-babu commented 2 months ago

@nickmarks00 can you create a PR with the diff?

nickmarks00 commented 2 months ago

Hey, yes I can, I'll get onto that shortly ☺️

On Sun, 22 Sept 2024, 11:20 Jay Patel, @.***> wrote:

@nickmarks00 https://github.com/nickmarks00 can you create a PR with the diff?

— Reply to this email directly, view it on GitHub https://github.com/jay-babu/mason-nvim-dap.nvim/issues/113#issuecomment-2366859548, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6U6XLIOKXXRUZEAHSGWR3ZX3U5BAVCNFSM6AAAAABNFQYTASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRWHA2TSNJUHA . You are receiving this because you were mentioned.Message ID: @.***>

nickmarks00 commented 2 months ago

So upon further investigation, there isn't actually any meaningful differences between the current configuration and the one I linked to. I am using lazy as my package manager, and so the actual issue was I had the plugin set to load on a command (DapContinue) rather than on an event like VeryLazy. This meant the order plugins were loaded once debugging started was probably awry, and hence why my problems were solved when I wrote my own adapter using the link supplied.

github-actions[bot] commented 1 month 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 1 month 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.