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

debug: require a dev version of delve when operating in Delve DAP mode #794

Closed
hyangah opened this issue Oct 15, 2020 · 6 comments
Closed
Assignees
Labels
Debug Issues related to the debugging functionality of the extension. FrozenDueToAge
Milestone

Comments

@hyangah
Copy link
Contributor

hyangah commented Oct 15, 2020

Delve DAP is under active development. Many new features and bug fixes the Delve DAP adapter
depends on will be most likely not available with the stable version of Delve.

Pin required versions with extension release, and ask for update when Delve DAP adapter is used
and the current delve version is older than the required version.

@suzmue @polinasok

Related: #487

@hyangah hyangah added the Debug Issues related to the debugging functionality of the extension. label Oct 15, 2020
@polinasok
Copy link
Contributor

polinasok commented Oct 20, 2020

According to @aarzilli, delve "makes one release roughly every 6 months around the time when Go rc1 comes out." Middway releases happen, but are not guaranteed. So to be able to pick up new changes for the new experimental adapter quickly, we definitely need to pin to more recent dev versions, i.e. picking specific commits we like.

@polinasok
Copy link
Contributor

Another thought. Since users might be switching between stable and experimental adapters, we should be careful not to wipe out stable delve to be used with the stable adapter with some recent experimental commit. There should be two separate delve binaries.

@gopherbot
Copy link
Collaborator

Change https://golang.org/cl/297189 mentions this issue: src/goInstallTools: install dlv-dap (dev version of dlv)

@gopherbot
Copy link
Collaborator

Change https://golang.org/cl/297190 mentions this issue: build,.github/workflows: install dlv-dap

@hyangah
Copy link
Contributor Author

hyangah commented Mar 25, 2021

@suzmue found an issue with the first installation and is preparing a fix for this in https://go-review.googlesource.com/c/vscode-go/+/303235

@hyangah hyangah reopened this Mar 25, 2021
gopherbot pushed a commit that referenced this issue Mar 25, 2021
Preparation for https://go-review.googlesource.com/c/vscode-go/+/297189/

Updates #794

Change-Id: I4f83911f6e5304f6bb2e470f79caa7578e40742d
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/297190
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
gopherbot pushed a commit that referenced this issue Mar 29, 2021
dlv-dap needs to appear in the list of missing tools in order for
the user get the prompt to install.

Additionally, if they already have dlv-dap installed, we do want
dlv-dap to appear as a tool to update, since we are building from
master.

If the user has declined to install, do not attempt to prompt,
because it will do nothing. Instead, continue with the debugging
session without attempting to install so the error will show up
later.

Updates #794

Change-Id: If5922c950fde621d4c666e06bcc149413674ed9d
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/303235
Trust: Suzy Mueller <suzmue@golang.org>
Run-TryBot: Suzy Mueller <suzmue@golang.org>
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
@gopherbot
Copy link
Collaborator

Change https://golang.org/cl/303235 mentions this issue: src/goTools.ts: add dlv-dap to the configured tools

@hyangah hyangah closed this as completed Mar 30, 2021
@suzmue suzmue added this to the v0.24.0 milestone Mar 31, 2021
@golang golang locked and limited conversation to collaborators Mar 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Debug Issues related to the debugging functionality of the extension. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

4 participants