Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/go/packages: Unexpected package creation during export data loading #45218

Open
gordonklaus opened this issue Mar 24, 2021 · 2 comments
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@gordonklaus
Copy link
Contributor

What version of Go are you using (go version)?

go version go1.16.2 darwin/amd64

Does this issue reproduce with the latest release?

Yes. Both on v0.1.0 and on master.

What did you do?

Load types for a package that has gc export data available. runtime is such a package on my system:

packages.Load(&packages.Config{Mode: packages.NeedTypes}, "runtime")

https://play.golang.org/p/ObXs_fKb0A2

What did you expect to see?

Nothing, success.

What did you see instead?

A fatal error is logged: Unexpected package creation during export data loading

I debugged the error and found a workaround: Include packages.NeedImports in Config.Mode.

@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Mar 24, 2021
@gopherbot gopherbot added this to the Unreleased milestone Mar 24, 2021
@cagedmantis cagedmantis added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Mar 31, 2021
@cagedmantis
Copy link
Contributor

/cc @matloob

@AlekSi
Copy link
Contributor

AlekSi commented Jan 15, 2022

Probably related to #45584

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

4 participants