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
Fails with the following: malformed open element: line 3, col 13. But that is straight in the middle of the "TestResult" name.
The actual problem (and as highlighted by the LSP), is on line 4 at col 13.
To Reproduce
Make a file with the provided error case, run templ generate.
templ info output
(✓) os [ goos=linux goarch=amd64 ]
(✓) go [ location=/usr/local/go/bin/go version=go version go1.23.4 linux/amd64 ]
(✓) gopls [ location=/home/max/go/bin/gopls version=golang.org/x/tools/gopls v0.17.1 ]
(✓) templ [ location=/home/max/go/bin/templ version=v0.3.819 ]
Desktop (please complete the following information):
OS: WSL
templ CLI version v0.3.819
Go version go version go1.23.4 linux/amd64
gopls version: golang.org/x/tools/gopls v0.17.1
The text was updated successfully, but these errors were encountered:
Thanks, the line number is zero-based, which matches the LSP standard, but humans should probably see 1-based to match what's displayed in the text editor.
Describe the bug
Error message when parsing is sometime off by one for the line.
For the following snippet:
Running
templ generate
Fails with the following:
malformed open element: line 3, col 13
. But that is straight in the middle of the "TestResult" name.The actual problem (and as highlighted by the LSP), is on line 4 at col 13.
To Reproduce
Make a file with the provided error case, run
templ generate
.templ info
output(✓) os [ goos=linux goarch=amd64 ]
(✓) go [ location=/usr/local/go/bin/go version=go version go1.23.4 linux/amd64 ]
(✓) gopls [ location=/home/max/go/bin/gopls version=golang.org/x/tools/gopls v0.17.1 ]
(✓) templ [ location=/home/max/go/bin/templ version=v0.3.819 ]
Desktop (please complete the following information):
gopls
version: golang.org/x/tools/gopls v0.17.1The text was updated successfully, but these errors were encountered: