From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Eglot, project.el, and python virtual environments Date: Fri, 18 Nov 2022 17:17:08 +0200 Message-ID: <83v8nc9tsb.fsf@gnu.org> References: <87zgcq68zp.fsf@ericabrahamsen.net> <878rkale3l.fsf@dfreeman.email> <87v8nezf2k.fsf@ericabrahamsen.net> <87o7t5k7sv.fsf@dfreeman.email> <86mt8p4221.fsf@gmail.com> <4cc918a053771a5e1c440cb4b458f3ed@webmail.orcon.net.nz> <838rk8d7xb.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22488"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, dgutov@yandex.ru, theophilusx@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 18 16:17:50 2022 Return-path: Envelope-to: ged-emacs-devel@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 1ow37l-0005aW-WF for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Nov 2022 16:17:50 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ow373-0002Tw-PS; Fri, 18 Nov 2022 10:17:05 -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 1ow373-0002Td-2J for emacs-devel@gnu.org; Fri, 18 Nov 2022 10:17:05 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ow372-0002ew-Nf; Fri, 18 Nov 2022 10:17:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=Onaw0zntqUvIpic/NRsBs+rjbXrvg1VsVlK0ZNYU4MI=; b=UtF3OGJpeKlA jeDp0fXBe5oG0fiUvV1MLaCmeBo4Ede6gyffnl4UeXLSBd5/4ZdDgi2N9OsORtfoN2KjCzyOFB1le mg3Ihx3YwI1PQMzJWrlr29gM1zzErxKr4pL/WicSobt8sa5EIbt49XQOaOdLPNl4bKoFEK+Kil4F1 D/2GEuPJg69e9ZkYrcopVqYnjLg5CCmHSNQJXKUgkDG3gHmZc48dH2wTJl5DlpNGG2lPo2Y1orLfv XA8xekNCxeqvb+0TxsuJzja5zMnmz1yTXBrroPUMEJPxaBbWdq2u/nT1YOvNgi36ZXqX6Ahju7Y9V l3ZaYRaCM//swPGQfWMbUA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ow372-0005xP-7a; Fri, 18 Nov 2022 10:17:04 -0500 In-Reply-To: (message from Stefan Monnier on Fri, 18 Nov 2022 10:06:49 -0500) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300109 Archived-At: > From: Stefan Monnier > Cc: Phil Sainty , Dmitry Gutov , > theophilusx@gmail.com, emacs-devel@gnu.org > Date: Fri, 18 Nov 2022 10:06:49 -0500 > > > Let me remind you that Eglot already supports a kind of "sub-project": > > it uses the same LSP server only for those source files in a project > > that share the same major mode. > > IIUC this is not always the right thing to do (for some multilanguage > projects where the LSP server supports similarly multiple languages). I didn't say it was _always_ TRT to do. The question is: how frequently is this TRT? If it's a common situation, then the exceptional situations need a specialized solution, but that solution doesn't need to be in project.el.