Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add cwd argument to delve #81

Merged
merged 1 commit into from
May 2, 2024
Merged

Conversation

fredrikaverpil
Copy link
Contributor

fixes #80

@@ -55,6 +55,7 @@ local function setup_delve_adapter(dap, config)
command = config.delve.path,
args = args,
detached = config.delve.detached,
cwd = config.delve.cwd,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this is necessary. This setup_delve_adapter() function is only executed when nvim-dap starts the delve server in DAP mode. The cwd shouldn't matter in this case as it is the client who provides the necessary parameters to start a debug session. Can you please clarify why this is necessary?

Copy link
Owner

@leoluz leoluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is discussed in the issue this feature is incomplete but acceptable to be merged.
Thank you.

@leoluz leoluz merged commit 5faf165 into leoluz:main May 2, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set cwd for dlv
2 participants