a-h / templ

A language for writing HTML user interfaces in Go.
https://templ.guide/
MIT License
8.04k stars 264 forks source link

templ-vscode "Request textDocument/codeAction failed" #863

Closed coin-au-carre closed 2 months ago

coin-au-carre commented 2 months ago

Describe the bug

Using templ-vscode v0.0.26 and keep having the message "Request textDocument/codeAction failed" since last templ-vscode which was about weeks ago.

Screenshots

image

Logs

  Code: 0 
[Info  - 11:00:13 AM] 2024/07/30 11:00:13 background imports cache refresh starting

[Info  - 11:00:13 AM] 2024/07/30 11:00:13 background refresh finished after 5.433067ms

[Error - 11:00:14 AM] Request textDocument/codeAction failed.
  Message: column is beyond end of line
  Code: 0 
[Error - 11:00:21 AM] Request textDocument/codeAction failed.
  Message: column is beyond end of line
  Code: 0 
[Error - 11:00:22 AM] Request textDocument/codeAction failed.
  Message: column is beyond end of line
  Code: 0 
[Info  - 11:00:44 AM] 2024/07/30 11:00:44 background imports cache refresh starting

[Info  - 11:00:44 AM] 2024/07/30 11:00:44 background refresh finished after 6.184804ms

[Info  - 11:01:21 AM] 2024/07/30 11:01:21 background imports cache refresh starting

[Info  - 11:01:21 AM] 2024/07/30 11:01:21 background refresh finished after 5.210317ms
coin-au-carre commented 2 months ago

Looks like updating to latest templ version did the trick

a-h commented 2 months ago

Glad you got it sorted.