You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran go tool templ, as I had minutes earlier without issue. In between these two invocations, I used my editor which has templ's LSP enabled, which hooks into gopls. (I am also invoking templ's LSP through go tool.
What did you see happen?
../../go/pkg/mod/github.com/a-h/[email protected]/cmd/templ/imports/process.go:16:2: missing go.sum entry for module providing package golang.org/x/sync/errgroup (imported by github.com/a-h/templ/cmd/templ/imports); to add:
go get github.com/a-h/templ/cmd/templ/[email protected]
What did you expect to see?
I expected the command to work, as it did before. After running go mod tidy, the command started working again. Unfortunately, I am unable to pinpoint what changes exactly were made to the go.mod or go.sum files, as I have unrelated unstaged changes to them.
@seankhliao Thanks for the reply. However, I'm not sure that's what happened here; why would merely adding or removing an import break go tool? Also, if memory serves me correct, the go mod tidy invocation didn't add any imports.
I'll need to see if I can even reproduce this issue before giving more info. Hopefully I can, somehow.
Go version
go version go1.24.1 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
I ran
go tool templ
, as I had minutes earlier without issue. In between these two invocations, I used my editor which hastempl
's LSP enabled, which hooks intogopls
. (I am also invokingtempl
's LSP throughgo tool
.What did you see happen?
What did you expect to see?
I expected the command to work, as it did before. After running
go mod tidy
, the command started working again. Unfortunately, I am unable to pinpoint what changes exactly were made to thego.mod
orgo.sum
files, as I have unrelated unstaged changes to them.go.mod
go.sum
The text was updated successfully, but these errors were encountered: