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

cmd/doc: confusing error when a name does not exist #22810

Closed
mvdan opened this issue Nov 19, 2017 · 2 comments
Closed

cmd/doc: confusing error when a name does not exist #22810

mvdan opened this issue Nov 19, 2017 · 2 comments
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@mvdan
Copy link
Member

mvdan commented Nov 19, 2017

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

go version devel +da360f30e9 Sat Nov 18 06:31:57 2017 +0000 linux/amd64

Does this issue reproduce with the latest release?

No - this is fine on Go 1.9.2.

What did you do?

$ go doc bytes foo
doc: no such package: bytes
exit status 1

What did you expect to see?

The same that Go 1.9.2 gives:

$ go doc bytes foo
doc: no symbol foo in package bytes
exit status 1

Seems like a regression in 1.10 - will look into it myself.

@mvdan mvdan added the NeedsFix The path to resolution is known, but the work has not been done. label Nov 19, 2017
@mvdan mvdan added this to the Go1.10 milestone Nov 19, 2017
@mvdan mvdan self-assigned this Nov 19, 2017
@mvdan
Copy link
Member Author

mvdan commented Nov 19, 2017

Found e3442b4 to be the commit introducing the regression. Currently poking at the code to find the right fix.

@gopherbot
Copy link

Change https://golang.org/cl/78677 mentions this issue: cmd/doc: print a symbol error on "bytes Foo"

@golang golang locked and limited conversation to collaborators Nov 19, 2018
@rsc rsc unassigned mvdan Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

2 participants