Comments (4)
Thanks for the report @LeDuyViet
Do you still experience the crash? If so, can you please share the log you see in the gopls output channel and tell us when you observed this popup (e.g. I was updating gopls
, I just opened the vscode, I did refactoring, ...)?
from vscode-go.
Yes, it is output
[Error - 1:10:47 PM] Request textDocument/typeDefinition failed.
Message: no type definition for throw
Code: 0
[Error - 1:10:48 PM] Request textDocument/typeDefinition failed.
Message: no type definition for fatal
Code: 0
[Error - 1:10:48 PM] Request textDocument/typeDefinition failed.
Message: no type definition for fatal
Code: 0
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0xfad61c]
goroutine 583544 [running]:
go/token.(*File).Name(...)
C:/Users/Admin/sdk/go1.22.2/src/go/token/position.go:109
golang.org/x/tools/gopls/internal/golang.mapPosition({0x16b8368, 0xc051a29200}, 0x0?, {0x16b0060, 0xc048606a20}, 0x0, 0x7)
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/golang/definition.go:301 +0x5c
golang.org/x/tools/gopls/internal/golang.OutgoingCalls({0x16b8368?, 0xc051a290e0?}, 0xc048606a20, {0x16bad80, 0xc00b4ca4e0}, {0x12d?, 0x0?})
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/golang/call_hierarchy.go:282 +0xb32
golang.org/x/tools/gopls/internal/server.(*server).OutgoingCalls(0xc000222100, {0x16b83a0?, 0xc043792410?}, 0xc048dc06e0)
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/server/call_hierarchy.go:58 +0x195
golang.org/x/tools/gopls/internal/protocol.serverDispatch({0x16b83a0, 0xc043792410}, {0x16d3120, 0xc000222100}, 0xc051a29020, {0x16b8560, 0xc0408ddd00})
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/protocol/tsserver.go:131 +0x4daa
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x16b83a0, 0xc043792410}, 0xc051a29020, {0x16b8560, 0xc0408ddd00})
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x16b83a0, 0xc043792410}, 0xc051a29020, {0x16b8560, 0xc0408ddd00})
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x16b83a0, 0xc043792410}, 0xc0437a80d8, {0x16b8560, 0xc0408ddd00})
D:/Workspace/go/pkg/mod/golang.org/x/[email protected]/internal/jsonrpc2/handler.go:35 +0xc6
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
D:/Workspace/go/pkg/mod/golang.org/x/[email protected]/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 58
D:/Workspace/go/pkg/mod/golang.org/x/[email protected]/internal/jsonrpc2/handler.go:100 +0x1c5
[Error - 1:10:49 PM]
from vscode-go.
goroutine 2306143 [running]:
go/token.(*File).Name(...)
C:/Users/Admin/sdk/go1.22.2/src/go/token/position.go:109
golang.org/x/tools/gopls/internal/golang.mapPosition({0x16b8368, 0xc04408b3b0}, 0x0?, {0x16b0060, 0xc00926c120}, 0x0, 0x7)
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/golang/definition.go:301 +0x5c
golang.org/x/tools/gopls/internal/golang.OutgoingCalls({0x16b8368?, 0xc04408b290?}, 0xc00926c120, {0x16bad80, 0xc009986f00}, {0x12c?, 0x0?})
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/golang/call_hierarchy.go:282 +0xb32
golang.org/x/tools/gopls/internal/server.(*server).OutgoingCalls(0xc00038a200, {0x16b83a0?, 0xc002e2f090?}, 0xc041cce3c0)
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/server/call_hierarchy.go:58 +0x195
golang.org/x/tools/gopls/internal/protocol.serverDispatch({0x16b83a0, 0xc002e2f090}, {0x16d3120, 0xc00038a200}, 0xc04408b1d0, {0x16b8560, 0xc0482393c0})
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/protocol/tsserver.go:131 +0x4daa
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.ServerHandler.func3({0x16b83a0, 0xc002e2f090}, 0xc04408b1d0, {0x16b8560, 0xc0482393c0})
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/protocol/protocol.go:160 +0x85
golang.org/x/tools/gopls/internal/lsprpc.(*streamServer).ServeStream.handshaker.func4({0x16b83a0, 0xc002e2f090}, 0xc04408b1d0, {0x16b8560, 0xc0482393c0})
D:/Workspace/go/pkg/mod/golang.org/x/tools/[email protected]/internal/lsprpc/lsprpc.go:509 +0x923
golang.org/x/tools/gopls/internal/protocol.Handlers.MustReplyHandler.func1({0x16b83a0, 0xc002e2f090}, 0xc03a9d2a38, {0x16b8560, 0xc0482393c0})
D:/Workspace/go/pkg/mod/golang.org/x/[email protected]/internal/jsonrpc2/handler.go:35 +0xc6
golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2.2()
D:/Workspace/go/pkg/mod/golang.org/x/[email protected]/internal/jsonrpc2/handler.go:103 +0x96
created by golang.org/x/tools/gopls/internal/protocol.Handlers.AsyncHandler.func2 in goroutine 115
D:/Workspace/go/pkg/mod/golang.org/x/[email protected]/internal/jsonrpc2/handler.go:100 +0x1c5
[Error - 3:33:05 PM]
[Error - 3:33:05 PM] Request textDocument/typeDefinition failed.
Message: write EPIPE
Code: -32099
[Error - 3:33:05 PM] Request textDocument/typeDefinition failed.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 3:33:05 PM] Request workspace/symbol failed.
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 3:33:05 PM] Connection to server got closed. Server will not be restarted.
[Error - 3:33:05 PM] Stopping server failed
Message: Cannot call write after a stream was destroyed
Code: -32099
[Error - 3:33:05 PM] Stopping server failed
Message: Cannot call write after a stream was destroyed
Code: -32099
from vscode-go.
Thank you so much @LeDuyViet for sharing the trace.
This is a dup of golang/go#66923 (crash during call hierarchy)
Let's follow up there.
from vscode-go.
Related Issues (20)
- telemetry: raise the prompt rate HOT 2
- Release v0.42.1 HOT 3
- testOnSave: add option to only run the previously executed test HOT 11
- Terminals don't set configured GOPATH environment variable HOT 4
- Rebuild test subsystems HOT 1
- gopls: automated issue report (crash) HOT 1
- test: incorrect absolute test failure path reported through deferred helper func HOT 3
- gopls: automated issue report (crash) HOT 4
- `go generate` on save HOT 5
- gopls: automated issue report (crash) HOT 1
- Code highlighting color error HOT 4
- release: adopt "keep-a-changelog" style in CHANGELOG.md HOT 4
- PATH in Terminal is not automatically updated to include GOROOT/bin HOT 2
- process: migrate CI from Kokoro to LUCI HOT 2
- gopls: automated issue report (crash) HOT 1
- gopls: automated issue report (crash) HOT 1
- Whole function is highlighted unecessarly when it should not highlight HOT 1
- Debugger when attached to a running process is using wrong file paths for some files HOT 2
- packages.Load error HOT 1
- Cannot Launch Go App with VScode HOT 8
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 vscode-go.