Skip to content

x/tools/gopls: provide a better error message when a file is excluded due to a package name mismatch #58281

Open
@findleyr

Description

@findleyr

Context:
https://www.reddit.com/r/golang/comments/10rto2n/how_to_work_with_multiple_go_files/

We can and should do better here: if a file is not included in any packages due to its package name, we should diagnose this and try to explain to the user why the file was not in any package.

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.gopls/metadataIssues related to metadata loading in gopls

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions