-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
layer=dap recovered panic: runtime error: invalid memory address or nil pointer dereference #3058
Comments
delve 1.6.1 is not compatible with go 1.18. |
Are you passing |
No I don't pass anything Look what I've found. golang/vscode-go@ab3d3a6 |
Shall I open an issue there to not use by default? |
@hyangah @polinasok IMO vscode-go shouldn't pass that option by default. I see that the motivation was that installing an old version of dlv was complicated, because of the |
The check was turned off and turned it into a warning after some flagging from Cloud Code. Sadly the warning goes unnoticed, especially after all the other things that get printed after :( |
I remember the Cloud Code discussion but this was added by golang/vscode-go@ab3d3a6 fixing golang/vscode-go#1716. Does cloud code have to use the same typescript adapter as the vscode-go that end users install? |
Cloud Code extension builds on top of vscode-go extension, so that is a factor, but not the only factor. You are right, and here it does look like the change was made in response to a user issue. Sadly I do not see an explanation in the PR/issue that explains all the context and why the decision was made. Maybe there was a plan to have more explicit prompts to sync up the outdated tools more aggressively? I think going back to an error has merit, but I would vote for more informative error messages since there was quite a bit of confusion in the past. For example, instead of
something like
Too much? |
I would prefer something more concise, to be honest. It seems to me that the possibility of upgrading delve would be implicit if we say that the current version is too old. |
For Cloud Code we were concerned about using Delve with older versions of Go. This sounds like a problem of using too new a version of Go. Failing seems to be the right thing to do in this case. |
That's a very good point. There is at least a chance that newer Delve is still compatible with old Go. There isn't much of a chance that old Delve is compatible with new Go. Checks in both directions are currently behind the same flag in Delve, so no easy way to turn off one without the other. |
Passing --check-go-version=false without informing the user leads to suppressing important warnings and confusion. Fixes go-delve/delve#3058 Change-Id: Ib5aea336f3ea8a0c6d859e5d82562da12dc54a9c Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/455175 TryBot-Result: kokoro <[email protected]> Run-TryBot: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Michael Pratt <[email protected]>
Closing since we've reenabled the version check in vscode-go. |
Hi there,
I am not sure if it's a duplicate or if it's an unrelated issue at all.
So sorry for that.
Just felt like it may be worth to report.
dlv version
)?go version
)?go version go1.18.3 linux/amd64
linux/amd64
Nothing special just, run a debug in VS Code.
It feels like to happen on next step call.
While breakpoints are working.
PS: yes... didn't get into gdb debug style yet (
The text was updated successfully, but these errors were encountered: