From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41955: 28.0.50; Monorepos and project.el Date: Sat, 20 Jun 2020 10:17:12 +0300 Message-ID: <83r1uaw6iv.fsf@gnu.org> References: <87pn9un5xu.fsf@thornhill.no> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="127924"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41955@debbugs.gnu.org To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 20 09:18:09 2020 Return-path: Envelope-to: geb-bug-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 1jmXlR-000X9r-BO for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jun 2020 09:18:09 +0200 Original-Received: from localhost ([::1]:60418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmXlP-0000E7-Oa for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Jun 2020 03:18:07 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37730) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmXlK-0000CH-Jv for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2020 03:18:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45639) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmXlK-0005dA-BR for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2020 03:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jmXlK-00053X-7L for bug-gnu-emacs@gnu.org; Sat, 20 Jun 2020 03:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Jun 2020 07:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41955 X-GNU-PR-Package: emacs Original-Received: via spool by 41955-submit@debbugs.gnu.org id=B41955.159263745219399 (code B ref 41955); Sat, 20 Jun 2020 07:18:02 +0000 Original-Received: (at 41955) by debbugs.gnu.org; 20 Jun 2020 07:17:32 +0000 Original-Received: from localhost ([127.0.0.1]:57185 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmXkp-00052p-Ks for submit@debbugs.gnu.org; Sat, 20 Jun 2020 03:17:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jmXkn-00052b-3c for 41955@debbugs.gnu.org; Sat, 20 Jun 2020 03:17:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35963) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmXkg-0005an-HV; Sat, 20 Jun 2020 03:17:22 -0400 Original-Received: from [176.228.60.248] (port=4940 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jmXkf-0001uf-WA; Sat, 20 Jun 2020 03:17:22 -0400 In-Reply-To: <87pn9un5xu.fsf@thornhill.no> (message from Theodor Thornhill on Fri, 19 Jun 2020 20:42:26 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:182194 Archived-At: > Date: Fri, 19 Jun 2020 20:42:26 +0000 > From: Theodor Thornhill > > gigarepo/ > ├── clients > │   ├── client1 > │   ├── client2 > │   ├── client3 > │   └── client4 > └── services > ├── service1 > ├── service2 > ├── service3 > └── service4 > > The services are made in different languages, say, some in c#, f#, java - > as are clients, some are Typescript projects, some are JS etc etc. > > Everything is rooted in a ".git" in "gigarepo/", and there are no > submodules or any fancyness. > > As project.el works now, there are several issues arising. I'll just > note them down here, and probably split things up later, if that is ok. > > * Lsp server/client > In most of the projects, the lsp servers are indexing from what they > consider root. Typically a tsconfig.json, elm.json etc. They get > confused, eglot a bit more than lsp-mode (it has its own root finding > algorithm). What happens is they look in root (gigarepo/), and it has > no executable for lsp-server. One solution is then to install the > server in root, but then it indexes the whole thing, and gets super > slow, and indexes a lot of unrelated stuff (I'm not even working on > client 2-4.) > > * Buffer switching > Lets say several of the clients uses a module called AuthService.ts. > If I'm working on several of these projects you get a lot of identical > files, so it is a bit hit and miss. > > * Grepping > This one was the worst for me, since grepping was very slow given the > size of the project, and grepping loads of unrelated files returns a > lot of noise. > > > What would be nice is to be able to get the benefits of the vc-dir > version of project.el, but not having to "git init" inside the child > projects. More specifically, to be able to choose "project context", > one as the closest project-root and one as the gigarepo project-root. Would it help to have facilities of specifying the files in a project by starting with an empty project, and then adding the files one by one? Also, to be able to say that all the files in a given directory (optionally, only files that match some shell wildcard), recursively, should be added to a project? This would probably need a way of making the list of files/directories in a project persistent between sessions, because currently we rely on the filesystem or a VCS to record that.