-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
VSCode LSP request failed #956
Comments
Did you create a If you can create an example and share it, I'd be able to look at it. |
Yes, I have the |
I'm seeing the same thing - my VS Code workspace is a level higher than my go.mod file. Don't know if that could be related. |
I've been unable to reproduce this. I cloned the repo, and ran
No error messages for me, everything works fine. It might only show up if a particular set of features is enabled etc. This issue references v0.2.778. https://github.com/a-h/templ/releases/tag/v0.2.793 added workspace folder initialization (see #912), which might have had an effect, but not sure. |
Describe the bug
When opening minimal templ project in VSCode I get the following error:
Request textDocument/prepareCallHierarchy failed
To Reproduce
Expected behavior
No error
Screenshots

Logs
I replace path to file from absolute to relative.
templ info
outputDesktop (please complete the following information):
go version go1.23.2 darwin/arm64
gopls
version (golang.org/x/tools/gopls v0.16.2
)Additional context
I've tried to restart vscode, close other apps, killing all gopls and templ instances, but no luck
The text was updated successfully, but these errors were encountered: