Debug test configuration can't build test binary #104
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#104
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?
Note: I am talking about the vanilla "dap" debug test option that is registered (that I assume is supposed to debug the test file under the cursor) as opposed to the "debug an individual test" option.
Actions Taken
After installing nvim-dap-go (along with nvim-dap), while most debugging options work as expected, the "Debug test" option cannot build the test binary.
Steps to reproduce
:lua require('dap').continue()What Happened
Received an error building the test binary due to undefined functions in the test (that are definitely defined in the same package).
It appears that when you try to test a single file, the required go files are not supplied alongside the test file:
go test somefile_test.go somefile.goWhat I Expected to Happen
The tests are built and run successfully.
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.