Skip to content

x/tools/gopls: redundant diagnostics for initialization cycle #65877

@findleyr

Description

@findleyr

In the following code, gopls produces multiple diagnostics at X:

var X = Y

var Y = Z

var Z = X

This is due to the way gopls unpacks the initialization cycle errors returned by go/types.
Minor, but filing this for tracking purposes. If/when we improve structured errors in go/types, we should fix this. We could also add some ad-hoc suppression of the duplicates.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions