From: Milan Glacier <news@milanglacier.com>
To: "Sébastien Gendre" <seb@k-7.ch>
Cc: help-gnu-emacs@gnu.org
Subject: Re: With Eglot, how tu use a language server running in a concainer (Docker or Podman)
Date: Wed, 21 Dec 2022 00:15:39 -0500 [thread overview]
Message-ID: <20221221051539.e3laouduxg244dgv@Azure-Swing> (raw)
In-Reply-To: <FBCC8A7F-6979-4C14-BD65-6CEC7673121E@k-7.ch>
On 12/21/22 03:21, Sébastien Gendre wrote:
>Hello,
>
>I got a simple problem I try to solve with Eglot: How tu use a language server that run inside a container ? (Docker or Podman)
>
>One of the advantage of language server is to be in client/server model. So, I can create a container that run a language server and include the source code of the project and its dependencies in this container. (Installation for dependencies source code and mounting for project source code)
>
>But how to tell Eglot to connect to this running language server ? Is it simple and per project configurable ?
>
>
>Thanks for your help. 😁
I think you can manually from the configuration side to do this (without
the involvement of eglot). You can just set `eglot-server-program` to be
your complex command to launch the docker "docker xxx xxx". The only
thing that is complicated is mounting.
I haven't come up with a way to mouting current root directory
automatically. The most simple way is to ensure all of your projects are
located in somewhere like ~/projects and simply mounting this directory
to the docker container.
prev parent reply other threads:[~2022-12-21 5:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-21 2:21 With Eglot, how tu use a language server running in a concainer (Docker or Podman) Sébastien Gendre
2022-12-21 5:15 ` Milan Glacier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221221051539.e3laouduxg244dgv@Azure-Swing \
--to=news@milanglacier.com \
--cc=help-gnu-emacs@gnu.org \
--cc=seb@k-7.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.