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

Failed to open multiple workspace folder #48

Open ZT-Alonzo opened 2 years ago

ZT-Alonzo commented 2 years ago

when open the second project, lsp-docker tries to start another container with the same name. /usr/bin/docker: Error response from daemon: Conflict. The container name "/lsp-container-2" is already in use by container "47f937f70efa5a6dba94c3ea5fd36a445fbe0c2c8303f6975660a53725a5ff44". You have to remove (or rename) that container to be able to reuse that name. See '/usr/bin/docker run --help'.

korenhe commented 1 year ago

same problem.

I have multiple workspace(project) with the same language(clang). lsp-docker works perfect on the first opened project, but failed to bump the container suffix number while docker complains the container is already there.

The only way workaround is to lsp-workspace-shutdown the first project which kills the existing docker container and open(M-x lsp) another project.