-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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/gopls: use xerrors package #31374
Comments
try adding -rpc.trace and it will log all the rpc messages |
Thanks. That did work. Is there also a way to log tracebacks when an error is returned? |
Not right now, but we should switch to using the https://golang.org/x/xerrors package so that we can do that. |
Thanks for the response. For what it's worth, I did make a PR for our project to use |
I would like to take on this issue, what's the best way to start? |
This relates to golang/go#31374 and should switch all instances within `gopls` to use `x/errors` instead of `fmt` to create new errors. Change-Id: I18339b75d12418d852e0dcc2ba0ed6c2970783b3 GitHub-Last-Rev: f4a55d9 GitHub-Pull-Request: #108 Reviewed-on: https://go-review.googlesource.com/c/tools/+/179880 Run-TryBot: Rebecca Stambler <[email protected]> Reviewed-by: Rebecca Stambler <[email protected]>
Thanks for contributing this, @jan-xyz! Closing this issue since https://golang.org/cl/179880 has been submitted. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
This is basically a continuation of #31194. This time I'm having troubles getting to gopls' log.
Steps to reproduce:
gopls -logfile /tmp/gopls_$PID_$RANDOM.log
/home/bstaletic/go.log
), the empty log file gets created but nothing is written to the file.What did you expect to see?
Some content in the log, to help me debug things.
What did you see instead?
Empty log whose size was 0bytes.
The text was updated successfully, but these errors were encountered: