Giter VIP home page Giter VIP logo

Comments (4)

hyangah avatar hyangah commented on September 28, 2024

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, ...)?
Screen Shot 2021-01-27 at 2 53 49 PM

from vscode-go.

LeDuyViet avatar LeDuyViet commented on September 28, 2024

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.

LeDuyViet avatar LeDuyViet commented on September 28, 2024
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.

hyangah avatar hyangah commented on September 28, 2024

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)

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.