From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Newsgroups: gmane.emacs.devel Subject: Re: Eglot, project.el, and python virtual environments Date: Tue, 22 Nov 2022 23:23:02 +0000 Message-ID: <87bkoya815.fsf@gmail.com> References: <87zgcq68zp.fsf@ericabrahamsen.net> <878rkale3l.fsf@dfreeman.email> <4c5f4b07-3df6-d700-83f8-9a9d1b684afc@yandex.ru> <84781346-5b88-2be5-38bb-02696fcf1364@yandex.ru> <87o7t2vj19.fsf@dfreeman.email> <877czqtyfy.fsf@dfreeman.email> <87zgcml7g7.fsf@gmail.com> <2ba04533-097a-a1da-ff3f-2c9506fd488e@yandex.ru> <875yf9bbzb.fsf@gmail.com> <87wn7oa0aw.fsf@gmail.com> <7a5b76fd-fb15-8c1e-ea29-bf11f7e0d2ae@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20034"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , Danny Freeman , Eric Abrahamsen , emacs-devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 23 00:22:39 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 1oxcb9-00051A-Ok for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Nov 2022 00:22:39 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxcaP-0006nC-Q5; Tue, 22 Nov 2022 18:21:53 -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 1oxcaM-0006l1-Vq for emacs-devel@gnu.org; Tue, 22 Nov 2022 18:21:51 -0500 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxcaL-0001QE-8i for emacs-devel@gnu.org; Tue, 22 Nov 2022 18:21:50 -0500 Original-Received: by mail-wm1-x32d.google.com with SMTP id v124-20020a1cac82000000b003cf7a4ea2caso203397wme.5 for ; Tue, 22 Nov 2022 15:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Bn5D22cXZ1a9zss9Bp/TmLKUKuzn1DEH9Rd84uQ78/I=; b=AwtTOAFIQwDsrj18qthlmUO/0wN0EatGQPyzr9aJh/RT9O4Kf5dBpIquhvVDEiEJJf hbt2gOrs+lUHSEhhdcHgNHkiNYWryF4LcgQ/W3h8uTgG7ZJHdzZrJ5mBi9+ixBc4d8NO dYti1yoPNd0svskppct0b4CqpwQ5rL4pf5Cf+i+9ACn5HhCYyelv1vKuVwMI9TqRXhYJ 5eSrgb6pG+D4MAJIvSrtu9SzPzjZRe1eqtaiBkcDn/m5hLcv/vNnobHYb+j618kaVS48 0WLzilDrZWmhQwSlY9rboadMAeNhhfGVEiSjdhrkC5CqR35iYGZ3Tb5pdGuRPyPmSH6t Lw/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Bn5D22cXZ1a9zss9Bp/TmLKUKuzn1DEH9Rd84uQ78/I=; b=wwHZHHANtji6ujk0BR0CsN9BOQsPJFtVvWnUWTXD7ZG4qzpvk3cgc9AkuU3cq3T0gb E9mTNHYpXGQ5+BMh+epyLVVYUkG5gSJvOV3Nr0NpuGCZiHZni4AWlwLc4NX/MZ9ngtFW 9zB5lf70ZxGHJ4RRg/mqpPnWh9W285ZvUY6GE3ctrj+DlIkKNOGFuLrhhBSFkEYA8t+m GLSt/Ud2o2IJdkjirPvgWDtpqefYQbhuyxYrZABkIR3j9+fJIAiNtOU+YYgVeZeK6594 wLwmrs5OAUwu4U+nm7vozHEjbkG6ZxnS8NS39rLmHFjRhE7SlIlMNnmInU8hd6MNGEgH 5DUg== X-Gm-Message-State: ANoB5pmdAp5hlUtsu2lpOlBSbyP0dql8LCLV3fNlaZ1T0QDMO5STGfz3 D3w3bul4O68lshyWk0DWy2pVqnMQVzQ= X-Google-Smtp-Source: AA0mqf7Yqq5pep78qZPUdMLNhajeb/bWNFC072L7jTVa6i1R7XmliLum4NHHY1NhGQ/3sVCNCmG8tQ== X-Received: by 2002:a05:600c:3553:b0:3cf:8e62:f748 with SMTP id i19-20020a05600c355300b003cf8e62f748mr20982420wmq.175.1669159307461; Tue, 22 Nov 2022 15:21:47 -0800 (PST) Original-Received: from krug ([87.196.72.177]) by smtp.gmail.com with ESMTPSA id o13-20020a05600c4fcd00b003cfa26c410asm247159wmq.20.2022.11.22.15.21.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 15:21:46 -0800 (PST) In-Reply-To: (Dmitry Gutov's message of "Wed, 23 Nov 2022 00:00:45 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=joaotavora@gmail.com; helo=mail-wm1-x32d.google.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:300361 Archived-At: Dmitry Gutov writes: > On 22/11/22 23:34, Jo=C3=A3o T=C3=A1vora wrote: >> Given a tree a tree structure such as a file system that can have >> very many nodes, not having any means to take advantage of that structure >> tree-ness (as project.el clearly doesn't: see the protocol of >> project-files and >> the lack of sub-projects) is=C2=A0going to be a hard limitation.=C2=A0 M= onorepos >> are really popular in many businesses and many of these are large and/or >> getting larger. > > Like I said: if you want sub-projects, go and write a proper feature > request, with expected behavior, which commands are affected, which > are not. I've just described in the other thread that I would like to have finding references and finding files to be able to operate on either sub-projects or super-projects on demand. This is the problem I'm facing, and it's not new. For example, there is only: find file in the very large project, and find file in the current directory. There is no "find file in this section of the repo, which is a sub-project in itself". IMO, it's not "improper" to describe problems and use cases: in fact I prefer that people describe over jumping to vapourware solutions. But if you're really looking for a suggestion as to _how_ to design it, I suppose my problem would be well dealt with a negative prefix on C-x p g and C-x p f giving me a choice of which project to operate on. But that is only one possibility: new commands are also acceptable. As to how one defines sub-projects, I think having project-find-functions be used to compose a list of projects (as opposed to to stopping after finding one) would be a nice way. It would be nice if the elements of project-find-functions could be informed of the projects found so far. But keeping the "stop after first" behaviour and having members return a more complex object is maybe also good. I really don't care much what you eventually choose, as long as I can solve my problem. > It seems obvious to me from this thread that a lot of people don't > actually want sub-projects as a separate entity (based on the > requested behavior, hi Stefan!), they just want Eglot to work with the > structure of their project. The current Eglot solution to start servers in sub-directories of repositories has already been described (and apparently accepted). Jo=C3=A3o