You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gopls/doc/troubleshooting.md
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,8 @@
1
1
# Troubleshooting
2
2
3
-
If you see a gopls error or crash, or gopls just stops working, please follow the troubleshooting steps below.
3
+
If you suspect that `gopls` is crashing or not working correctly, please follow the [troubleshooting steps](#steps) below.
4
+
5
+
If `gopls` is using too much memory, please follow the steps under [Memory usage](#memory-usage).
4
6
5
7
## Steps
6
8
@@ -17,6 +19,7 @@ describe more basic and optional trouble shooting steps
17
19
## File an issue
18
20
19
21
You can use:
22
+
20
23
* Your editor's bug submission integration (if available). For instance, `:GoReportGitHubIssue` in [`vim-go`](vim.md#vim-go).
21
24
*`gopls bug` on the command line.
22
25
* The [Go issue tracker](https://github.com/golang/go/issues/new?title=x%2Ftools%2Fgopls%3A%20%3Cfill%20this%20in%3E).
@@ -68,3 +71,15 @@ If you are unsure of how to pass a flag to `gopls` through your editor, please s
68
71
### Restart your editor
69
72
70
73
Once you have filed an issue, you can then try to restart your `gopls` instance by restarting your editor. In many cases, this will correct the problem. In VSCode, the easiest way to restart the language server is by opening the command palette (Ctrl + Shift + P) and selecting `"Go: Restart Language Server"`. You can also reload the VSCode instance by selecting `"Developer: Reload Window"`.
74
+
75
+
## Memory usage
76
+
77
+
`gopls` automatically writes out memory debug information when your usage
78
+
exceeds 1GB. This information can be found in your temporary directory with
79
+
names like `gopls.1234-5GiB-withnames.zip`. On Windows, your temporary
80
+
directory will be located at `%TMP%`, and on Unixes, it will be `$TMPDIR`,
0 commit comments