GithubHelp home page GithubHelp logo

Comments (5)

heitorfreitasferreira avatar heitorfreitasferreira commented on August 28, 2024

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.

image

And the coloring work in some files but not others?

from templ.

emarifer avatar emarifer commented on August 28, 2024

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.

heitorfreitasferreira avatar heitorfreitasferreira commented on August 28, 2024

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.

joerdav avatar joerdav commented on August 28, 2024

The next version of templ will solve this issue, so going to close this for now, thanks for raising.

from templ.

a-h avatar a-h commented on August 28, 2024

Fixed in https://github.com/a-h/templ/releases/tag/v0.2.731

from templ.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.