Comments (5)
I'm having the same trouble, here is the output of the error in my machine (using wsl2/arch, don't know if the info in relevant)
[Info - 2:08:05 PM] 2024/06/26 14:08:05 Created View (#1)
directory=/home/heitor/repos/go-library-manager
view_type="GoMod"
root_dir="file:///home/heitor/repos/go-library-manager"
go_version="go version go1.22.4 linux/amd64"
build_flags=[]
env={GOOS:linux GOARCH:amd64 GOCACHE:/home/heitor/.cache/go-build GOMODCACHE:/home/heitor/go/pkg/mod GOPATH:/home/heitor/go GOPRIVATE: GOFLAGS: GO111MODULE: GoVersion:22 GoVersionOutput:go version go1.22.4 linux/amd64
ExplicitGOWORK: EffectiveGOPACKAGESDRIVER:}
env_overlay=[]
[Info - 2:08:06 PM] 2024/06/26 14:08:06 go/packages.Load #1
view_id="1"
snapshot=0
directory=/home/heitor/repos/go-library-manager
query=[/home/heitor/repos/go-library-manager/... builtin]
packages=11
duration=1.096788128s
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x87a880]
goroutine 23 [running]:
github.com/a-h/templ/cmd/templ/lspcmd/proxy.(*Server).CodeAction(0xc00008a4b0, {0xa55290, 0xc0002c43c0}, 0xc00012f4a0)
/home/heitor/go/pkg/mod/github.com/a-h/[email protected]/cmd/templ/lspcmd/proxy/server.go:294 +0x480
github.com/a-h/protocol.serverDispatch({0xa55290, 0xc0002c43c0}, {0xa5b340, 0xc00008a4b0}, 0xc000119800, {0xa55568, 0xc000288d00})
/home/heitor/go/pkg/mod/github.com/a-h/[email protected]/server.go:158 +0x4013
github.com/a-h/protocol.NewServer.ServerHandler.func1({0xa55290, 0xc0002c43c0}, 0xc000119800, {0xa55568, 0xc000288d00})
/home/heitor/go/pkg/mod/github.com/a-h/[email protected]/server.go:36 +0x7e
github.com/a-h/protocol.Handlers.ReplyHandler.func1({0xa55290, 0xc0002c43c0}, 0xc000280e58, {0xa55568, 0xc000288d00})
/home/heitor/go/pkg/mod/go.lsp.dev/[email protected]/handler.go:35 +0xc6
github.com/a-h/protocol.Handlers.AsyncHandler.func2.2()
/home/heitor/go/pkg/mod/go.lsp.dev/[email protected]/handler.go:114 +0x76
created by github.com/a-h/protocol.Handlers.AsyncHandler.func2 in goroutine 11
/home/heitor/go/pkg/mod/go.lsp.dev/[email protected]/handler.go:112 +0x165
[Error - 2:08:34 PM] Connection to server got closed. Server will not be restarted.
[Error - 2:08:34 PM] Server process exited with code 2.
And the coloring work in some files but not others?
from templ.
I have also received that message and, although I don't know if the problem may be related, I fixed it (in vscode) by downgrading the version from [email protected] to [email protected].
from templ.
I have also received that message and, although I don't know if the problem may be related, I fixed it (in vscode) by downgrading the version from [email protected] to [email protected].
Tanks bro, that helped for now!
from templ.
The next version of templ will solve this issue, so going to close this for now, thanks for raising.
from templ.
Fixed in https://github.com/a-h/templ/releases/tag/v0.2.731
from templ.
Related Issues (20)
- refactor: update `templ generate` to support pwd being a symlink HOT 3
- Templ formatting breaks imports at v0.2.747 HOT 7
- Composable templates do not render properly in tests HOT 1
- App freeze using air proxy HOT 1
- templ-vscode "Request textDocument/codeAction failed" HOT 2
- Streaming Not Working
- [Proposal] Improve embedding components HOT 2
- proposal: Go comments within HTML tags HOT 1
- Raw go errors if block ends with a comment
- LSP crashes after being started by kakoune-lsp HOT 4
- How to prevent cache HOT 1
- .templ file with only script elements leads to unused import HOT 1
- Anyway to instantiate a templ once per rendering context? HOT 4
- performance: templ parse takes a long time and uses high CPU when unclosed void elements are used HOT 8
- Little typo in streaming documentation
- bug: `templ generate --watch --proxy` triggers 2 browser reload events HOT 1
- bug: ambiguous child/string expression grammar HOT 4
- bug: go to definition causes error in Neovim v0.10.x HOT 4
- LSP - gopls command error HOT 3
- bug: ComponentScript rendered even when 'if condition' fails
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templ.