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: internal error: nil Pkg importing "errors" from "mypkg" #35047

Closed
kevinburke1 opened this issue Oct 21, 2019 · 2 comments
Closed

x/tools: internal error: nil Pkg importing "errors" from "mypkg" #35047

kevinburke1 opened this issue Oct 21, 2019 · 2 comments
Labels
FrozenDueToAge Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@kevinburke1
Copy link

I can only reproduce this with a "package main" Go binary in the same directory as go.mod - if I have a main that's nested several directories under go.mod, I can't reproduce. I also can't reproduce in libraries.

Steps to reproduce:

Open watch.go in neovim (guessing Vim works as well), hover over fsnotify.NewWatcher and type :GoDef + CR in the status line. I get the following error:

vim-go: 2019/10/21 11:26:35 internal error: nil Pkg importing "errors" from "github.com/jmhodges/justrun"

I might not have that much time to assist with reproductions today but let me know if you can reproduce following these steps.

@gopherbot gopherbot added this to the Unreleased milestone Oct 21, 2019
@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Oct 21, 2019
@bkielbasa
Copy link

I don't think it's strictly related to Go. Maybe try to report this to vim-go.

@kevinburke1
Copy link
Author

Not a vim-go issue, but my editor was configured to use godef, not lsp. Opened rogpeppe/godef#118.

@golang golang locked and limited conversation to collaborators Oct 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants