Closed xab3r closed 4 months ago
Looks like we're missing a nil check at https://github.com/a-h/templ/blob/108500b21cdfabfbbb82e0d0d434eb1075bee8c8/cmd/templ/lspcmd/proxy/server.go#L294-L300
It seems that r.Edit
can be nil, and there's no check.
If you can try the commit above, that would be great.
@a-h Yeah, it doesn't panic with this commit. Thanks!
In case others run into this, I had to patch the global templ installation to get this working
go install github.com/a-h/templ/cmd/templ@73474f65da4509c02aa0666f3277629c8c75e176
https://github.com/a-h/templ/issues/800#issuecomment-2183439322
Rolled back to gopls@v0.15.3 and that fixed the problem.
Hi, I'm using SublimeText with LSP plugin. The Templ LSP always throws the error. Looks like it's happening on
codeAction