Delve debugger splits command line argument by space #117
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#117
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 have a program that is supposed to take a json string as input and run some token extraction logic. I'm using
flag.Parseto parse the string from the command line and this works when i run the compiled file. However, when i try to debug the code in neovim with delve through nvim-dap-go my string is split by space into separate arguments.Could there be some bug in the way
nvim-dap-gohandles delve? Because everything works fine from the command line. It only breaks when i run it with nvim-dap-go.Here's the source code:
So if I pass the string
'{"key": "value"}'to the program throughnvim-dap-go, it's split into'{"key":and"value"}'and so i get only the first half saved intojsonStringHere's my config:
Here are screenshots from the debugger vs the command line:
command line arguments and print out
delve arguments
delve print out
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.