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

dap-dlv-go .env variables with special characters problem #758

Open
Daut opened this issue Oct 26, 2023 · 0 comments
Open

dap-dlv-go .env variables with special characters problem #758

Daut opened this issue Oct 26, 2023 · 0 comments

Comments

@Daut
Copy link

Daut commented Oct 26, 2023

Hi,

I've noticed that dap-dlv-go doesn't send .env file variables with special characters to the server properly.

It doesn't take ' into account, and cuts off the rest of the string at the first occurence of the special character. Here's an example:

# .env file
TEST='123#456?enable=true'
Sending: 
{
  "command": "launch",
  "arguments": {
    "type": "go",
    "request": "launch",
    "name": "Debug Project - Launch",
    "mode": "debug",
    "program": "/Users/tst/projects/dap-dlv-test/main.go",
    "envFile": "/Users/tst/projects/dap-dlv-test/.env",
    "env": {
      "TEST": "'123"
    },
    "host": "localhost",
    "debugServer": 63472,
    "dlvToolPath": "/Users/tst/go/bin/dlv"
  },
  "type": "request",
  "seq": 2
}
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

No branches or pull requests

1 participant