Hello,
I have installed the clangd language server and symlinked it to /usr/local/bin[1]. The server is also clearly found and “ready to start” according to Preferences:
When I open a C file in BBEdit, the language server does start, as shown by `pgrep clangd` and by the log file[2]. However, it only shows a gray circle:
According to the
BBEdit LSP documentation, this means that “the server has not (yet) returned any diagnostics information for this file.” The problem is that I’m not sure how to get it to produce any such info. I get the same issue with every other language server that I’ve tried, including Python (jedi-language-server) and Go (gopls). All three language servers “just work” in VS Code.
Any help would be much appreciated!
[1] Using the following commands:
brew install llvm
for f in /usr/local/opt/llvm/bin/*; do ln -s "$f" "/usr/local/bin/${f##*/}"; done
`which clangd` shows /usr/local/bin/clangd.
[2] The contents of “~/Library/Containers/com.barebones.bbedit/Data/Library/Logs/BBEdit/LanguageServerProtocol-ANSI C.txt” (via the BBEdit/Folders/Logs menu) from the most recent invocation are shown below. The latter three lines were added when I quit BBEdit.
================================================================================
2023-06-28 23:11:05.536: Application startup: 14.6.6 (14D78), r29014
2023-06-28 23:11:05.536: macOS version: 11.7.7 (20G1345)
2023-06-28 23:11:05.540: Waiting for server startup to complete...
2023-06-28 23:11:05.835: ...completed server startup.
2023-06-29 09:59:52.994: Stopped language server for ANSI C
2023-06-29 09:59:52.994: Cleaning up after normal server shutdown.
2023-06-29 10:00:11.010: CLanguageModule.mm:2607: calling _StartLSPServer.