-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Go mod initialize to avoid "malformed import path" UX #3273
Comments
I'm not sure how useful this would be. One could easily run |
FWIW, I think this behavior may change in a future release of Go. golang/go#36513 specifically addresses it and links to other relevant issues, too. I take your point about having something like |
Absolute go beginner here, running into this early in my vim-go usage. |
Hello, I'm too getting this error [0] with a simple code [1], when doing I'm running VIM 8.2 in Debian 11. Is there a step I've missed between installing vim-go & the go packages and [0]
[1] package main
import "fmt"
func main() {
var i int = 8
var pi *int
fmt.Println(i)
pi = &i
*pi = 5
fmt.Println(i)
} |
Did you |
Thanks, I hadn't realized that this was a necessary step. Checking... |
What did you do? (required: The issue will be closed when not provided)
Google search and hunt around :Go prefix for a
go mod
init type helperWhat did you expect to happen?
A go.mod init helper like VScode's Go: Initialize go.mod
https://youtu.be/6r08zGi38Tk?t=233
What happened instead?
Quit vim-go to run
go mod init github.com/$myusername/$(basename $pwd)
Configuration (MUST fill this out):
vim-go version:
I don't know how to tell this with vim plugged. The latest?
Vim version (first three lines from
:version
):NVIM v0.5.0
Build type: Release
LuaJIT 2.0.5
Go version (
go version
):go version go1.16.7 linux/amd64
The text was updated successfully, but these errors were encountered: