There are server clangd in my m1pro mac. One in /usr/bin, which may be installed by xcode command line tools. The other is in /opt/homebrew/opt/llvm/bin,which is installed by brew install llvm. I just install lsp and lsp-clangd package in sb4. It worked well in the past.
The lsp-clangd.sublime-settings is as follow:
Troubleshooting: clangd
Version
Server Test Run
Server Configuration
Active view
Project / Workspace
LSP configuration
System PATH
problem description
There are server clangd in my m1pro mac. One in
/usr/bin
, which may be installed by xcode command line tools. The other is in/opt/homebrew/opt/llvm/bin
,which is installed bybrew install llvm
. I just install lsp and lsp-clangd package in sb4. It worked well in the past. The lsp-clangd.sublime-settings is as follow:One day, I found that when I
include <cassert>
, it shows thatcassert file not found
. I don't know why this happed.The way I solve this problem is change the lsp-clangd.sublime-settings as follows:
Why my previous lsp-clangd settings doesn't work well?