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
If you change "templ" to "gopls" and try that code snippet in a .go file, you can see code action is displayed
To Reproduce
A small, self-contained, complete reproduction, uploaded to a GitHub repo, containing the minimum amount of files required to reproduce the behaviour, along with a list of commands that need to be run. Keep it simple.
Before you begin
Describe the bug
calling
vim.lsp.buf.code_action
does not work.Even trying to get results manually fails:
If you change "templ" to "gopls" and try that code snippet in a .go file, you can see code action is displayed
To Reproduce
A small, self-contained, complete reproduction, uploaded to a GitHub repo, containing the minimum amount of files required to reproduce the behaviour, along with a list of commands that need to be run. Keep it simple.
https://github.com/catgoose/templ_issue_repro/tree/main
I used this repo for a previous templ issue, but I have updated the readme with information on how to reproduce issue
Expected behavior
Code action should be displayed
Screenshots
Logs
If the issue is related to IDE support, run through the LSP troubleshooting section at https://templ.guide/commands-and-tools/ide-support/#troubleshooting-1 and include logs from templ
this is from the
~/templ.log
file created from the nvim repro, piped throughjq
templ info
outputDesktop (please complete the following information):
Ubuntu 24.04.2 LTS
v0.3.833
go version go1.24.0 linux/amd64
gopls
versiongolang.org/x/tools/gopls v0.16.2
Additional context
Add any other context about the problem here.
Link in
bug_report.md
to ide troubleshooting needs to be updated: https://templ.guide/commands-and-tools/ide-support/#troubleshooting-1The text was updated successfully, but these errors were encountered: