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/gopls: enable -rpc.trace logging to a file by default #43738

Open
stamblerre opened this issue Jan 16, 2021 · 1 comment
Open

x/tools/gopls: enable -rpc.trace logging to a file by default #43738

stamblerre opened this issue Jan 16, 2021 · 1 comment
Labels
Milestone

Comments

@stamblerre
Copy link
Contributor

@stamblerre stamblerre commented Jan 16, 2021

This has been discussed frequently, but I don't believe there is an issue tracking the fix. We should enable logging by default, to a file, so that users can have an easier time sharing logs with us (and don't lose them if they restart their editors). Care needs to be taken that we don't fill up temp directories with large files.

/cc @heschik @findleyr @hyangah

@stamblerre stamblerre added this to the gopls/v1.0.0 milestone Jan 16, 2021
@hyangah
Copy link
Contributor

@hyangah hyangah commented Jan 20, 2021

My original motivation was not the difficulty of capturing the trace, but the difficulty of sharing the contents.
Currently, one of the common causes of many issues is that the users' workspace settings are not in the state supported by gopls well (e.g. multiple modules, etc) and the info is often at the beginning of the trace. Unfortunately, I often find users simply capture logs without the beginning of the trace, or destroy too much information during their ad-hoc anonymization.

@stamblerre stamblerre added this to To Do in gopls: v1.0.0 Feb 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants