We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug When opening minimal templ project in VSCode I get the following error: Request textDocument/prepareCallHierarchy failed
Request textDocument/prepareCallHierarchy failed
To Reproduce
// main.go package main import ( "context" "os" ) func main() { component := hello("john") component.Render(context.Background(), os.Stdout) }
package main templ hello(name string) { <div>{ name }</div> }
Expected behavior No error
Screenshots
Logs
[Error - 15:12:51] Request textDocument/prepareCallHierarchy failed. Message: no package metadata for file file:///~/templ-tests/hello.templ Code: 0
I replace path to file from absolute to relative.
templ info output
templ info
(✓) os [ goos=darwin goarch=arm64 ] (✓) go [ location=/opt/homebrew/bin/go version=go version go1.23.2 darwin/arm64 ] (✓) gopls [ location=/Users/morigs/go/bin/gopls version=golang.org/x/tools/gopls v0.16.2 ] (✓) templ [ location=/Users/morigs/go/bin/templ version=v0.2.778 ]
Desktop (please complete the following information):
go version go1.23.2 darwin/arm64
gopls
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:
No branches or pull requests
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: