Issue Running Debugger on Tests: __debug_bin: no such file or directory #37
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
NeonXP/nvim-dap-go#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am having some trouble running
nvim-dap-go. It is likely a config error, but I have not been able to figure out what is wrong with how I am setting things up so I decided to open an issue and see if someone knows what I am doing wrong.Setup:
Note:
dap_go.setup({})does not work eitherMy go lsp config:
Keymaps:
When I have my cursor in a test file and do
<leader>dtI get the following in logs:I have swapped out the values path for
$PATHin the above log.I am not sure what other information would help with knowing what is wrong, but I know that running the following command works via command line:
go test --tags unit ./...Is there something I am doing wrong with my setup?
Please let me know if there are any pieces of information that would be helpful to include.
I also face the same issue.
starting debug session './lambdas/adjuster : TestSuite_Adjuster'... Error on launch: Failed to launch: could not launch process: open /home/slim/repos/svi/__debug_bin: no such file or directoryI am not sure but it seems dap is having problems compiling your project. Have you tried asking in the nvim-dap project?
I have not opened an issue there as I was not aware that that would be the root cause of the problem.
You can try running the test and after you get the error run
:DapShowLog. Maybe you find useful info there.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
If someone else is having this problem, please take a look at this similar issue:
https://github.com/golang/vscode-go/issues/2234