macos - 如何在 Mac 上安装 clangd?
问题描述
我正在尝试clangd
根据c-cpp页面使用 Spacemacs。我已经尝试下载 LLVM 的 macOS 二进制文件,并且我遵循了这个和这个,但是当我运行时which clangd
,它说找不到它。我也跑了brew install llvm
,但这也没有表明那clangd
在我的路上。我确实有一个二进制文件/usr/local/Cellar/llvm/9.0.0_1/bin
,但是当我重新启动 Emacs 并打开 C++ 源文件时,我的 LSP 没有做任何事情。我/usr/local/bin
在我的路上。
解决方案
I added /usr/local/opt/llvm/bin/
to my PATH and that worked. Thanks to Mikael Springer. I wonder why it wasn't working with the other location (and why I have multiple copies of llvm binaries).
推荐阅读
- sql - 如何提高搜索连接值的 where 子句的 SQL 查询性能
- python - 如何在 CentOS 7.6 上没有 root 权限的情况下为 Python3 安装 pip3?
- angular - Angular 6 - 无法读取 null 的属性“出口”
- javascript - export HTML table
- android - 图标显示为白色方块
- c# - 使用cs-script库在运行时编译代码时如何指定程序集信息?
- ios - iOS 操作按钮从本地通知中消失,除了最后传入的通知 (NotificationCenter)
- javascript - 如何处理 PWA 中 AJAX 页面切换中的内容部分?
- javascript - 要异步读取的变量的值
- python - Lightkurve 错误 - 属性错误:“NoneType”对象没有属性“Sap_Flux”