-
Notifications
You must be signed in to change notification settings - Fork 645
OSX Failed to launch delve with this error Error: spawn /usr/local/bin/dlv ENOENT #466
Comments
The only time I've ever seen this error is when VSCode was opened in something other than their $GOPATH folder (workspace), or the configuration in $GOPATH/.vscode/launch.json points to the wrong folder. |
I had to replace |
@mrichman You can use
instead of
Assuming that you have opened /Users/mrichman/go/src/github.com/mrichman/myapp in VS Code |
Closing this as we havent heard back anything recently. |
I have the same issue, it looks that changing ${workspaceroot} to full path will resolve this type of error, however, the following error that I have is shown below: 2017/02/08 21:56:23 server.go:73: Using API v1 Do you guys have any idea on that? |
@eureka-gh Delve errors out with |
@mrichman @eureka-gh Another thing I just noticed, there is a casing issue. |
@ramya-rao-a, Thanks for your prompt response to my question. I followed a couple of solutions mentioned in provided link. It turns out that the "could not fork/exec" issue can be resolved by using "sudo -E"(preserve env) in CLI, but how to launch the dlv debugger in VS code with "sudo -E" ? Not so sure, if you can give me some hints on that ? Many thanks! |
Where did you get the suggestion to use sudo? None of the linked items #717, #269 or https://github.com/derekparker/delve/issues/357 suggest using sudo. "could not fork/exec" is always associated with code signing issues. All the linked items talk about clean installing delve again |
@ramya-rao-a Sorry for not going though all your resources. I opened two many searching pages and totally lost. Now I am able to use dlv to debug my go code in VS code. I removed previous dlv which was installed by "go get " and reinstall new dlv with "brew install go-delve/delve/delve" which is pointed out at https://github.com/derekparker/delve/blob/master/Documentation/installation/osx/install.md It turns out "github.com/derekparker/delve" is NOT a good way to install dlv on OSX. Thanks for your support. It's very helpful. |
glad that you are unblocked @eureka-gh, Happy Coding! |
I ma using vscode 1.4.0, and trying to launch delve for go debugging
I get this log from the console
messageService.ts:119Failed to continue: "Error: spawn /usr/local/bin/dlv ENOENT": Error: Failed to continue: "Error: spawn /usr/local/bin/dlv ENOENT"
at Object.C [as create](file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:34:19570)
at file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:105:21677
at Object.m [as _notify](file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:8153)
at Object.B.enter (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:11658)
at i.Class.define._run (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:12979)
at i.Class.define._chainedError (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:12338)
at i (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:10161)
at i.Class.define.then (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:13788)
at Object.P.enter (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:10230)
at i.Class.define._run (file:////Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:30:12979)
Any help would be greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered: