Join 36 million developers who use GitHub
issues to help identify, assign, and keep track of the features and
bug fixes your projects need.
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?
to your account
$ go version
go version go1.12.1 linux/amd64
$ go env
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build434682588=/tmp/go-build -gno-record-gcc-switches"
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
Some content in the log, to help me debug things.
Empty log whose size was 0bytes.
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 gopls instead of gocode and godef.
I would like to take on this issue, what's the best way to start?