Closed jaredweinfurtner closed 1 month ago
I was able to resolve the issue and will document it for others:
go install golang.org/x/tools/gopls@latest
The templ server error output was:
StdIO connection closed
Exit code: 1
Command line: /Users/xxx/go/bin/templ lsp
when getting the logs of templ lsp
, I see:
{"level":"info","ts":"2024-10-16T10:45:32+02:00","caller":"lspcmd/main.go:76","msg":"lsp: starting up..."}
{"level":"info","ts":"2024-10-16T10:45:32+02:00","caller":"lspcmd/main.go:83","msg":"lsp: starting gopls..."}
{"level":"error","ts":"2024-10-16T10:45:32+02:00","caller":"lspcmd/main.go:89","msg":"failed to start gopls","error":"cannot find gopls on the path (\"/usr/local/go/bin:/..."}
Thanks for updating! This should also be made easier when #39 is complete, it should find the go version that's used by goland.
Hello,
In Jetbrains
2024.2.3
using Templ plugin version0.0.14
, my templ server will not start and receives the following error everytime:I appreciate any help or guidance in solving this issue.