-
Notifications
You must be signed in to change notification settings - Fork 645
Better error message when non-signed Delve is installed #20
Comments
Yeah - I'm not sure of options for working around this, other than distributing our owned signed binary along with the plugin. Thoughts? |
The first thing might be to not tell users to |
So, from the delve Wiki: https://github.com/derekparker/delve/wiki/Building Installing on Mac OSX, there really doesn't seem to be anything regarding USER here. So, the self-signing cert seemed to work. I wonder what I'd need to do differently to make this work. Did you try this on Mac OS? Just curious... if others are having this experience. I also agree with @mattetti that I was almost drawn off by the go get. |
Alright, so after reinstalling with the cert, everything looks good with the exception of my local variables not showing up (but hovering them in my code displays the values) |
So, uninstalling delve, what did you do? I feel like I did it right the first time, but then after it didn't work, I did the |
@caledhwa I went into the delve repo that I go get'd, created a cert and used |
That's right - the instructions on installing Delve are here: https://github.com/derekparker/delve/wiki/Building. On OS X this requires creating a self-signed cert and then using that to I've modified the README to not suggest I'll leave this open to track reporting a better error message when a non-signed dlv binary is installed. |
We're now reporting back the errors from Delve itself, so you'll get the same somewhat cryptic error that Delve provides to tell you that you don't have a signed
That will be enough to easily search for the issue. I'll leave communicating this failure case more explicitly to Delve itself for now. |
Thanks for this! 👍 I just need to figure out what I did wrong when I signed Delve. |
FWIW - The most common issue I've seen has been accidentally missing this step:
|
I also got some errors while building delve. I had to do following to get additional packages and depenecies..(on Mac) Then CERT=dlv-cert make install worked and I am able to debug the programs. Looks like there are still some issues with adding variables to watch window ( or may be its user error). But glad to have gotten so far |
I am new to Go and Delve both, therefore, I am sure I am doing something wrong. I am on a Mac using OS X. I followed Derek's instructions for 'Building'. The last bullet item says: Run the following: CERT=dlv-cert make install, which will install the binary and codesign it. Which binary are we installing? When I ran the command at the command prompt in my home directory, I get the following response: Bharat:~ I named my cert 'dlv-cert'. Please help. |
@bruparel Sounds like you are not in the right directory. You need to be in the directory where you cloned https://github.com/derekparker/delve before you run |
@lukehoban Thank you. That worked. |
Hello I've installed delve via brew. So in terminal this command works perfect:
However I still get error in vscode:
launch.json
dlv version
go version
|
@erm0l0v I am facing an exact same issue, did you able to solve it? |
@erm0l0v I encounter this problem, too. dlv can work under terminal, but doesn't work under IDE vscode. help! |
Same issue.
When running a very simple Hello World. Breakpoints are "bypassed" and the program simply complete like if it is not in debug mode. It perfectly works with dlv command line. I'm on MacOSX 10.11.6, delve is installed from homebrew - certificate is well created. Simple Hello World program used.
|
@roblourens can you take a look at this? |
This seems kind of far from the original issue so hopefully I'm not missing a thread. @erm0l0v that error message @ThreeBearsDan Do you see that exact error message or do you just share the issue that it works via CLI but not vscode? Can you post the console output? @danbricedatascience What's your delve version? That was a delve bug at some point at least - https://github.com/derekparker/delve/issues/378 |
@roblourens Currently debug works for me well. Problem was in certificate. During first debug session OS ask me about root password and after filling password debug starts working in console but not in vs-code. This confused me and I am complained this problem. @ThreeBearsDan @danbricedatascience Please try to restart system and run debug if OS ask you about root password - that mean that you have some issue with certificate (as I understand). I did several steps to fix this problem and don't remeber which of the helped me. Probably it was manual installation of delve |
@roblourens Version: 0.11.0-alpha @erm0l0v Restart MacOS X does not change anything. I will try manual installation of delve instead of brew. |
@roblourens I am sorry for late reply. That work well now. I do nothing, just upgrade vsnode to Version 1.7.1. So I think it must be something wrong with vscode. |
@skeleton1231. @ameykpatil Let's use #717 to track the issue where you get the error
This is coming from delve it self and #717 is tracking this. @erm0l0v @ThreeBearsDan Glad to hear that you are unblocked now. Anyone else coming to this thread with the same error as above, please see #717 , #269 and https://github.com/derekparker/delve/issues/357 |
Thanks! I solved the problem, here is my step:
|
I can
But no dice from VSCode. Any thoughts?
I did code sign dlv and all the dlv tools work as running
sudo
Result
When using a main.go with a very simple 3 line program which outputs a string to stdout, a breakpoint can be set, but when running, the only feedback I get is that the debug bar shows and appears to be running, but the breakpoint isn't fired and the blue bar at the bottom of Code turns to orange.
The text was updated successfully, but these errors were encountered: