staysail / nova-gobee

Go support for Nova
MIT License
14 stars 2 forks source link

The file "dlv" does not exist (it does indeed exist) #5

Open glotchimo opened 1 year ago

glotchimo commented 1 year ago

I get a The file "dlv" does not exist when trying to run the debugger. I've tried with default settings on a fresh install, and with two different verified dlv binary paths, specifying both Delve (Auto) and Custom options for good measure. I've also made sure to check both linked paths and direct paths. The binaries work, as I can use them without issue from the terminal. The only additional information in the report is as follows:

The file “dlv” doesn’t exist.
The file doesn’t exist.

This has occurred on both macOS 13 and 14 on two different machines (M1 Pro, M2 Pro, respectively; latest build of Nova and a development build).

Edit: using Go-Bee v0.8.0 (looks like a related issue was patched in v0.7.0).

halfnibble commented 1 year ago

Can confirm the same behavior. Is the dlv path hardcoded in this plugin somewhere?

halfnibble commented 1 year ago

Update: I did check for updates on the Go-Bee extension, and it prompted me to install dlv. (Note: I already had dlv installed and working in terminal, so I'm not sure where it installed to)

After that Debug worked. However, it is not respecting my Run pipeline configuration. I'm trying to execute debug in a subfolder with: dlv debug structs/main.go

But it always start debug in the workspace folder.

halfnibble commented 1 year ago

Update 2: Got it to work by specifying Go Debug > Program as structs/main.go.

disposedtrolley commented 1 year ago

Thanks @halfnibble! I ran into the same issue and was able to fix it by checking for updates and installing dlv via the prompt.

gdamore commented 3 months ago

We don't know how to find dlv in your environment. Possibly we should fix that. But certainly using the plugin to install its own version will work, as you've learned.