Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code: Request textDocument/codeAction failed. #818

Closed
johannes-luebke opened this issue Jun 28, 2024 · 1 comment
Closed

VS Code: Request textDocument/codeAction failed. #818

johannes-luebke opened this issue Jun 28, 2024 · 1 comment

Comments

@johannes-luebke
Copy link

This might be a duplicate of #801 , but since that issue is closed and I still experience the problem it might be something different.

The templ extension for VS Code isn't working for me.
On pretty much every keystroke inside a .templ file, even just moving the cursor I get a popup saying:
Request textDocument/codeAction failed.

I get highlighting, and I do get Information about functions and structs when I hover over them.
But I don't get any IntelliSense/autocomplete suggestions. And again the error message keeps blinking multiple times a second.

I can give you a minimal repo if you need it, but its really just a basic go mod and a .templ file.
I'm adding all the versions and logs I could gather.
Let me know if you need anything else.

Thank you!

Go: go version go1.22.1 darwin/arm64
Gopls: golang.org/x/tools/gopls v0.16.0
Templ: v0.2.731

gopls.log
templ.log
vscode.log

@joerdav
Copy link
Collaborator

joerdav commented Jun 28, 2024

Thanks for the thorough report. This is a duplicate of #801 we have a fix underway.

@joerdav joerdav closed this as not planned Won't fix, can't repro, duplicate, stale Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants