emacs-lsp / lsp-docker

Scripts and configurations to leverage lsp-mode in docker environment
GNU General Public License v3.0
241 stars 34 forks source link

`clangd` cannot be found in `$PATH` #43

Closed hotoku closed 3 years ago

hotoku commented 3 years ago

In the README.org, lsp-docker-client-configs designates server-command as clangd. But actually, clangd executable does not exist in the $PATH of the container.

It does exist as /ccls/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clangd.

One trivial work around is changing server-command from clangd to /ccls/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-18.04/bin/clangd. Now, I can use this package with the modification.

But in principle, I think we should modify the docker image. I tried building the image with the /lsp-docker-langservers/dockerfile in this repository, but it fails. I will register another issue about this.