Consider disabling clangd background indexing by default.
Categories
(Developer Infrastructure :: Developer Environment Integration, defect, P3)
Tracking
(firefox152 fixed)
| Tracking | Status | |
|---|---|---|
| firefox152 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(1 external file, 1 obsolete file)
| Assignee | ||
Comment 1•6 months ago
|
||
It takes forever, and consumes lots of memory, causing frequent OOM
crashes when building (this happened to one of our interns today in
front of me, and happens to me constantly as well).
| Assignee | ||
Comment 2•6 months ago
|
||
To be clear you can disable
| Assignee | ||
Comment 3•6 months ago
|
||
err, that was going to be:
To be clear, you can disable it globally in something like ~/.config/clangd/config.yaml, but...
Updated•6 months ago
|
| Assignee | ||
Comment 4•6 months ago
|
||
Stop enforcing some configuration via CLI so that it can get overridden
by local config, and remove a lot of options which match the default
values anyways:
-
--clang-tidydefaults to true if there's a.clang-tidyfile
(created right above the code I'm touching). -
--pch-storagedefaults todisk: https://github.com/llvm/llvm-project/blob/fb66f2d7086764bfd91e3f32e36e5112f53c98c1/clang-tools-extra/clangd/tool/ClangdMain.cpp#L406 -
--background-indexdefaults totrue: https://clangd.llvm.org/config.html#background -
--all-scopes-completiondefaults totrue: https://clangd.llvm.org/config.html#completion
Updated•6 months ago
|
Comment 6•6 months ago
|
||
| bugherder | ||
Updated•6 months ago
|
Description
•