Skip to content
New issue

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

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

Already on GitHub? # to your account

check dlv-dap requires 1.15+ #1692

Closed
hyangah opened this issue Aug 15, 2021 · 7 comments
Closed

check dlv-dap requires 1.15+ #1692

hyangah opened this issue Aug 15, 2021 · 7 comments
Labels
Debug Issues related to the debugging functionality of the extension. Documentation FrozenDueToAge

Comments

@hyangah
Copy link
Contributor

hyangah commented Aug 15, 2021

In https://stackoverflow.com/questions/68753251/couldnt-start-dlv-dap, #1686 (comment) and #1716, users report dlv-dap mode does not work with go versions earlier than 1.15.
Delve DAP is slightly newer than Delve 1.7.0, and Delve 1.7.0 dropped the official support on go1.14, but strictly speaking, go1.17 is not officially out when vscode 0.27.0 was released, so not supporting 1.14 was sudden. We need to understand what's not working with 1.14 and also document the version compatibility.

cc @suzmue @polinasok

@hyangah hyangah added Documentation Debug Issues related to the debugging functionality of the extension. DlvDAPDA labels Aug 15, 2021
@hyangah hyangah added this to the Backlog milestone Aug 15, 2021
@polinasok
Copy link
Contributor

We can use dlv with --check-go-version off.

@luojiego
Copy link

We can use dlv with --check-go-version off.

I can't find where to use this options. Can you tell me? Thanks.

@polinasok
Copy link
Contributor

@luojiego Try adding the following to your launch.json configuration:

"dlvFlags": ["--check-go-version=false"],

@luojiego
Copy link

@luojiego Try adding the following to your launch.json configuration:

"dlvFlags": ["--check-go-version=false"],

image
image
Thanks for your reply, it seems doesnt' work.

@polinasok
Copy link
Contributor

It looks like you are adding this setting to settings.json, not launch.json. Click "Open launch.json" in the error message to get access to individual configuration that you can select from Run And Debug drop-down.

@luojiego
Copy link

It looks like you are adding this setting to settings.json, not launch.json. Click "Open launch.json" in the error message to get access to individual configuration that you can select from Run And Debug drop-down.

Thank you very much!

@hyangah
Copy link
Contributor Author

hyangah commented Sep 7, 2021

Duplicate of #1692

@hyangah hyangah marked this as a duplicate of #1692 Sep 7, 2021
@hyangah hyangah closed this as completed Sep 7, 2021
@golang golang locked and limited conversation to collaborators Sep 7, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Debug Issues related to the debugging functionality of the extension. Documentation FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

4 participants