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

Cannot activate Run/Debug in Nova #22

Open
carlca opened this issue Mar 16, 2022 · 8 comments
Open

Cannot activate Run/Debug in Nova #22

carlca opened this issue Mar 16, 2022 · 8 comments
Assignees

Comments

@carlca
Copy link

carlca commented Mar 16, 2022

Hello Gwyneth, I've just downloaded the demo of Nova and have installed your extension along with the other two Go extensions. Visually it all looks good, although I notice that it seems to be Spicer's Go Tools which provides the syntax highlighting.

The thing that has me stumped is how to enable Run and Debug. Ideally, the debugging would be done in conjunction with Derek Parker's Delve tool, but at the moment all the useful options are greyed out.

Is it something blindingly obvious that I have missed or is the ability to actually run programs only available in the paid version of Nova? I can't imagine that this is the case, but...

Thanks in advance for any clue that you can give me!

Cheers,
Carl

@willie
Copy link

willie commented Mar 16, 2022

FWIW, the last time I used the extension in Nova, I had to set up build/run using Projects > Tasks > Edit Tasks and substituting the appropriate go command. Perhaps the plug-in and Nova have evolved since then, but I know for sure that will work. As for delve, I do not know.

@carlca
Copy link
Author

carlca commented Mar 16, 2022

Thanks for the reply @willie, sadly, I cannot even do that. This is what my Tasks sub menu looks like...

Screenshot 2022-03-16 at 21 22 29

This is why I wondered if the disabled menu items were due to my having a demo version.

@carlca
Copy link
Author

carlca commented Mar 16, 2022

Okay, I think I've found the right place to set up a new task, but when I try to set up a build task, I cannot figure out the simplest thing. This doesn't work...

Screenshot 2022-03-16 at 21 51 18

@carlca
Copy link
Author

carlca commented Mar 16, 2022

Seems that I have to explicitly name the source file, so in my case go build path.go worked. It's a start...

@willie
Copy link

willie commented Mar 16, 2022

Try go build . and go run .

@carlca
Copy link
Author

carlca commented Mar 16, 2022

Of course! It's just shell script, after all. Thanks!

As for the debugging, I'm trying to get this front-end for Delve working...
Delve: https://github.com/go-delve/delve
Front End for Delve: https://github.com/aarzilli/gdlv

I've recently moved to the brave new world of the Mac Mini M1 and macOS 12.3 Monterey and it's easy to download the AMD64 version of go instead of the ARM64 version. All good fun and games 😉

@carlca
Copy link
Author

carlca commented Mar 16, 2022

This is what I wrote just now on the GDlv website...
I had same problem just now. I was able to solve it in 3 steps:

[1] Download and install the ARM64 installer package from https://golang.org/ - https://go.dev/dl/go1.18.darwin-arm64.pkg
[2] Run go install github.com/go-delve/delve/cmd/dlv@latest from the command-line.
[3] Run go install github.com/aarzilli/gdlv@latest from the command line.

Step 1 ensures that you have the M1 compatible version of Go.
Steps 2 and 3 ensure that the tools, Delve and GDlv, are built and installed using the M1 version of Go.

@carlca
Copy link
Author

carlca commented Mar 16, 2022

This is the aforementioned GDlv in action. I'm just firing it up from the build in Nova terminal with gdlv debug...

Screenshot 2022-03-16 at 23 29 09

@GwynethLlewelyn GwynethLlewelyn self-assigned this May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants