From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Milan Glacier Newsgroups: gmane.emacs.help 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 Message-ID: <20221221051539.e3laouduxg244dgv@Azure-Swing> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25350"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: NeoMutt/20220429 Cc: help-gnu-emacs@gnu.org To: =?utf-8?Q?S=C3=A9bastien?= Gendre Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 21 06:16:36 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p7rT0-0006La-Is for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 21 Dec 2022 06:16:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p7rSM-00053W-FY; Wed, 21 Dec 2022 00:15:54 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7rSH-00051J-P2 for help-gnu-emacs@gnu.org; Wed, 21 Dec 2022 00:15:53 -0500 Original-Received: from sender4-op-o13.zoho.com ([136.143.188.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p7rSG-0005so-3U for help-gnu-emacs@gnu.org; Wed, 21 Dec 2022 00:15:49 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1671599743; cv=none; d=zohomail.com; s=zohoarc; b=gfI+Ea8q2zzrvKHEXH3MF1fzag3JRqcRgR6FtYs+XIaJA/jNW3GIvBkuHHhfeD0UL9jpRCtWgkxZq2oaQ59+8vDHbYx0kxcd2PkhP/ZCWJbOCgC5l7njpT5exDAmWENfGVyS0tVVZO1PDuKzUd7/ObeD1ktOvWK/rwVUYhfvm9Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1671599743; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=O15EEAGdO1o0PT/xeeox6/ws9DZuqhavbf5hfPw70a0=; b=kf5fcN8qPIctCPHWB/C+mhmutegMlmFne0+CTs5P0rhr7YLs1U6+1qT0Iq/aBWSz+xHlRjstAT0CdPa7TKyJ8wcltWRYMlJprlpqk6BcQcDLhKI+vBI3iOIyZAJm482ijWRd+i8YAzCVAZBf4vSIpiUBOrWvyT3HBJJDhHjwmew= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=milanglacier.com; spf=pass smtp.mailfrom=news@milanglacier.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1671599743; s=zoho; d=milanglacier.com; i=news@milanglacier.com; h=Date:Date:From:From:To:To:Cc:Cc:Subject:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Transfer-Encoding:In-Reply-To:Message-Id:Reply-To; bh=O15EEAGdO1o0PT/xeeox6/ws9DZuqhavbf5hfPw70a0=; b=RtvekiFN9444CqQ45ccZbRtOKjSQOUnGlmOmUdnjMEjbWJijphAXBCI78XPT94ze NFnJjwbb+nWmm2lL04yzYmj/mbPTNeVythdoa069oqbcUHTCh6mfzlj/lOAtLnjoIWO O9+HNu0QmTU2xMXDX1q0CmhRGB0SA24z+GZzkdrA= Original-Received: from localhost (c-69-137-42-77.hsd1.md.comcast.net [69.137.42.77]) by mx.zohomail.com with SMTPS id 1671599741286768.742453338342; Tue, 20 Dec 2022 21:15:41 -0800 (PST) Content-Disposition: inline In-Reply-To: X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.13; envelope-from=news@milanglacier.com; helo=sender4-op-o13.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_FMBLA_NEWDOM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:141890 Archived-At: 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.