-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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/go: improve error message when a package does not exist #30723
Comments
Of course the expected output should be something like:
Thanks. |
(CC @jayconrod) |
Yeah. This looks far better than the original log. I can try and fix this if @jayconrod is busy. |
@manishmshiva You're welcome to take a look. I'm not sure if I'll get to this for a few days. This error is reported by the build list loading code in src/cmd/go/internal/modload/load.go. Some additional plumbing will be required to store the import positions. |
@jayconrod, was this fixed by your import-stack changes? |
I'm not sure when this was fixed, but the output in go1.13beta1 looks good:
It's debatable whether |
What did you do?
In a simple Go program I have a misspelled package import.
As an example
What did you expect to see?
The go tool should report an error message with the file, line and column where the error occurred.
As an example:
What did you see instead?
There is no additional information; just the module where the problem occurred and the error message.
System details
The text was updated successfully, but these errors were encountered: