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

Generated Go funcs contain no body. #32

Open
stephenwithav opened this issue May 5, 2023 · 2 comments
Open

Generated Go funcs contain no body. #32

stephenwithav opened this issue May 5, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@stephenwithav
Copy link

Attempting to generate a factorial func:

// Factorial returns an int that equals n!.
func Fact

...returns:

func factorial(n int) int {
    
}
@fortenforge
Copy link
Contributor

Interesting. I can't reproduce this in vscode. Can you tell me what mode you are using? Is it go-mode?

@fortenforge fortenforge added the bug Something isn't working label May 8, 2023
@stephenwithav
Copy link
Author

stephenwithav commented May 9, 2023

go-mode with lsp-mode disabled (via lsp-disconnect).

The Factorial example works in a new, clean repo, but not in an existing repo or in go-playground.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants