Skip to content

gopls: panic: only file URIs are supported, got "untitled" #1559

Closed
@naga-beeram

Description

@naga-beeram

gopls version: v0.7.0
gopls flags:
update flags: proxy
extension version: 0.25.1
go version: 1.13.7
environment: Visual Studio Code darwin
initialization error: undefined
manual restart count: 0
total start count: 2

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

panic: only file URIs are supported, got "untitled" from "untitled:Untitled-1"

goroutine 29 [running]:
golang.org/x/tools/internal/span.URI.Filename(...)
	  uri.go:32
golang.org/x/tools/internal/lsp.(*Server).definition(0xc0001522a0, 0x1a9e340, 0xc0000f6880, 0xc00b3f4980, 0x0, 0x0, 0x0, 0x0, 0x0)
	  definition.go:16  0x7af
golang.org/x/tools/internal/lsp.(*Server).Definition(0xc0001522a0, 0x1a9e340, 0xc0000f6880, 0xc00b3f4980, 0xc00b3f4980, 0x0, 0x0, 0x0, 0x0)
	  server_gen.go:40  0x4d
golang.org/x/tools/internal/lsp/protocol.serverDispatch(0x1a9e340, 0xc0000f6880, 0x1abd8a0, 0xc0001522a0, 0xc0093c4ba0, 0x1a9e600, 0xc0000f6000, 0x0, 0x0, 0x1a8d4a0)
	  tsserver.go:386  0x3e28
golang.org/x/tools/internal/lsp/protocol.ServerHandler.func1(0x1a9e340, 0xc0000f6880, 0xc0093c4ba0, 0x1a9e600, 0xc0000f6000, 0x0, 0x0)
	  protocol.go:154  0xc0
golang.org/x/tools/internal/lsp/lsprpc.handshaker.func1(0x1a9e340, 0xc0000f6880, 0xc0093c4ba0, 0x1a9e600, 0xc0000f6000, 0x0, 0x0)
	  lsprpc.go:684  0x467
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1(0x1a9e340, 0xc0000f6880, 0xc00000ed20, 0x1a9e600, 0xc0000f6000, 0x100776f, 0xc0000401d8)
	  handler.go:35  0xd3
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc0006a6000, 0xc0002b3290, 0xc000182bc0, 0x1a9e340, 0xc0000f6880, 0xc00000ed20, 0x1a9e600, 0xc0000f6000)
	  handler.go:103  0x86
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
	  handler.go:100  0x171
[Error - 8:28:59 AM] 

OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.

NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.

<OPTIONAL: ATTACH LOGS HERE>

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions