問題タブ [emacs-lsp]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票する
1 に答える
1803 参照

emacs - emacs lsp c-mode: コマンド「clangd」がパスに存在しません

Emacs LSP c-mode を使用したいのですが、「Command "clangd" is not present on the path」というエラーが表示されます。

インストールするには、次の手順を実行しました。

  1. melpa-stable から lsp パッケージを取得する
  2. melpa-stable から company-lsp を取得する
  3. homebrew を使用して ccls を取得する
  4. 以下を .emacs ファイルに追加します。

    (require 'lsp-mode) (require 'lsp-mode) (add-hook 'rust-mode-hook #'lsp) (add-hook 'c-mode-hook #'lsp) (require 'company-lsp) (push 'company-lsp company-バックエンド)

homebrew を使用して llvm (clang を含む必要があります) をインストールし、そのパスを環境変数として追加しました。

このエラーが発生する理由を知っている人はいますか?