vscode-clangd
vscode-clangd copied to clipboard
Cannot query any symbols in the workspace
I used ctrl+T to search for symbols in the workspace and saw in the log that the clangd extension had sent a reply to the code-insider, but the code-insider kept getting stuck and couldn't display the symbols, I don't know what happened.
[Window Title]
Visual Studio Code - Insiders
[Main Instruction]
Visual Studio Code - Insiders
[Content]
版本: 1.95.0-insider (user setup)
提交: 62a233cc87dc8d52a817739bc0d917089d4d103b
日期: 2024-10-17T05:09:34.012Z (4 小时前)
Electron: 32.1.2
ElectronBuildId: 10323173
Chromium: 128.0.6613.162
Node.js: 20.17.0
V8: 12.8.374.33-electron.0
OS: Windows_NT x64 10.0.22621
Logs
Please attach the clangd log from the "Output" window if you can.
If possible, run with --log=verbose
- note that the logs will include the contents of open files!
I[17:29:46.025] <-- workspace/symbol(17)
V[17:29:46.025] Dex query tree: (LIMIT 10000 (& T=bac T=ktr T=ace T=ckt T=sba T=tra T=osb T=rac T=ack T=los))
V[17:29:46.025] Dex query tree: (LIMIT 10000 (& T=bac T=sba T=osb T=ktr T=ckt T=ace T=rac T=ack T=tra T=los))
I[17:29:46.025] --> reply:workspace/symbol(17) 0 ms
V[17:29:46.025] >>> {
"id": 17,
"jsonrpc": "2.0",
"result": [
{
"containerName": "",
"kind": 12,
"location": {
"range": {
"end": {
"character": 18,
"line": 246
},
"start": {
"character": 5,
"line": 246
}
},
"uri": "file:///usr3/asdf/workspace/liteos/lpmcu/Huawei_LiteOS/kernel/base/los_exc.c"
},
"name": "LOS_BackTrace",
"score": 1.1000000238418579
},
{
"containerName": "",
"kind": 12,
"location": {
"range": {
"end": {
"character": 22,
"line": 256
},
"start": {
"character": 5,
"line": 256
}
},
"uri": "file:///usr3/asdf/workspace/liteos/lpmcu/Huawei_LiteOS/kernel/base/los_exc.c"
},
"name": "LOS_TaskBackTrace",
"score": 1.1000000238418579
}
]
}
System information
Clangd version (from the log, or clangd --version
):
clangd extension version:
Operating system:
I[17:24:00.754] clangd version 18.1.3 (https://github.com/llvm/llvm-project c13b7485b87909fcf739f62cfa382b55407433c0)
I[17:24:00.754] Features: linux+grpc
I[17:24:00.754] PID: 3532989
I[17:24:00.754] Working directory: /usr3/asdf/workspace/liteos/lpmcu/Huawei_LiteOS
I[17:24:00.754] argv[0]: /usr3/asdf/bin/clangd
I[17:24:00.754] argv[1]: --log=info
I[17:24:00.754] argv[2]: --pretty
I[17:24:00.754] argv[3]: --all-scopes-completion
I[17:24:00.754] argv[4]: --completion-style=bundled
I[17:24:00.754] argv[5]: --header-insertion=iwyu
I[17:24:00.754] argv[6]: --header-insertion-decorators
I[17:24:00.754] argv[7]: --limit-references=0
I[17:24:00.754] argv[8]: --background-index
I[17:24:00.754] argv[9]: --clang-tidy
I[17:24:00.754] argv[10]: -j=4
I[17:24:00.754] argv[11]: --pch-storage=disk
I[17:24:00.754] argv[12]: --function-arg-placeholders=true
I[17:24:00.754] argv[13]: --compile-commands-dir=.vscode
I[17:24:00.754] Starting LSP over stdin/stdout
I[17:24:00.755] <-- initialize(0)
I[17:24:00.755] --> reply:initialize(0) 0 ms
I[17:24:00.769] <-- initialized
I[17:24:00.786] <-- textDocument/didOpen
I[17:24:00.795] Loaded compilation database from /usr3/asdf/workspace/liteos/lpmcu/Huawei_LiteOS/.vscode/compile_commands.json
ubuntu 22.04