From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#73736: 31.0.50; project and therefore eglot don't work without git Date: Fri, 11 Oct 2024 14:49:33 -0700 Message-ID: References: <878quv29hk.fsf@hassadar.pretzelnet.org> <0b0b919c-ef70-4bb3-bcb4-b471d9abd201@gutov.dev> <6a202181-19e3-a202-2e80-78b332633d4b@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3177"; mail-complaints-to="usenet@ciao.gmane.io" To: Dmitry Gutov , Eric Gillespie , 73736@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 11 23:51:10 2024 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 1szNXR-0000dZ-Ic for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Oct 2024 23:51:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szNXA-00068n-EN; Fri, 11 Oct 2024 17:50:52 -0400 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 1szNX8-00068O-JV for bug-gnu-emacs@gnu.org; Fri, 11 Oct 2024 17:50:51 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szNX7-00014x-MB for bug-gnu-emacs@gnu.org; Fri, 11 Oct 2024 17:50:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=D9OsAffU73sDS4K+npyyXb1NGdzXVQiKhuqslQ+oAco=; b=ToS8jbfa4W/3f2DDrJu06guhglzvh2uRL71RwwQUftH6pOb9EtX3jxF1Obmvs5e+DcXy2ndym028YuTyw2CzCTU7gXDgzSd2nKCMW0uqAt5rWQ0HnxyfC8YhgXtd3z1ecaDPDdCqXXG//iCpcBXUGdSoVZQBtCBKRRt4m5niJumZBjS69jnoBDrsZnYOF6oEOSdU7Yu4VSjBhQnAYDaegT6coU7fmL4H23UqRFYJ3v3KlfnXs1sxq/JzfTygkHlY0/P3IjSa/QHKz52DugR6IALuTSdFg3l/fqhOUi20AApPO9+kiC9TybVHwcDPgWscWAHxHGjiFJVGlYJdHUBAyg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szNXK-0004ug-LC for bug-gnu-emacs@gnu.org; Fri, 11 Oct 2024 17:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Oct 2024 21:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73736 X-GNU-PR-Package: emacs Original-Received: via spool by 73736-submit@debbugs.gnu.org id=B73736.172868345818837 (code B ref 73736); Fri, 11 Oct 2024 21:51:02 +0000 Original-Received: (at 73736) by debbugs.gnu.org; 11 Oct 2024 21:50:58 +0000 Original-Received: from localhost ([127.0.0.1]:35553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szNXF-0004tj-Jo for submit@debbugs.gnu.org; Fri, 11 Oct 2024 17:50:57 -0400 Original-Received: from mail-pl1-f173.google.com ([209.85.214.173]:46109) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szNXC-0004sM-Af for 73736@debbugs.gnu.org; Fri, 11 Oct 2024 17:50:56 -0400 Original-Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-20b7259be6fso27036905ad.0 for <73736@debbugs.gnu.org>; Fri, 11 Oct 2024 14:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728683375; x=1729288175; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=D9OsAffU73sDS4K+npyyXb1NGdzXVQiKhuqslQ+oAco=; b=IGJdvvc29TCkgAbyMgv9/tUtqqFlwScGS61S8N1Ajdk0UzALxQLB2cwNwxIOqxIHfc owCTjhg7FN/8at//F+VuihXRLSx4jNSOYVGpe4TnJYUYAWs7HsAfxhsXpfJI9sV2tlxW 0EzkXeNrTCfZaqQ4a45Nm4JaRPrfmLRS5wd+nOkvHfFseaY6uLsgt74gQrOLpacbyL2w emzYhpRRujHe2c2xrbkZ4Wh5GuZsivkwtGsAa4Y5S0cxJCFyjBZcRk3esiLnTZZ1u11N XXiDtgqe4K/b6akE3Y6P97ANslzItM4cmDpVuQqvI/RZSpGUqztrkVJ3calX2AU+ZTa0 ZP6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728683375; x=1729288175; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=D9OsAffU73sDS4K+npyyXb1NGdzXVQiKhuqslQ+oAco=; b=sIqcZFMR+PYG4aOdw8aSetmDOU1FdxafHFn6VgrN4LybqM+en6TKEV2fV1+OwV67+Q 1nkcSrajzleG8NzZcQLP16Mb6Jq7WqpJhnbol4G/d5xntFZJeM5Gqw1qMx1dsHLokGVk zUfFwjyx0zhqYbCMUDNcP8EaKk4lx53zv3M1+HpXWlwOzkoHnDBBTzOL/im32lV36Jbj rf1orPvGMGgGqP5pTp0/6w1aEPsC6TED5DPtFO+vKH2XSACZiEV51Gtn6hpJ/6ascIF6 fz8t0h/2Gv1gvor2Fz0i8Zp0S8gZKUXpy18rvfo1PwMNhe2aiap4J12uTx+lIJecRyna j/FA== X-Forwarded-Encrypted: i=1; AJvYcCUTyKTJTVf3Kmky4GMBYSUtS8yT6RHhiTUWuJgTn7+534E2X6Ej21swZSzJjHqmuA2jIKx4MQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx683euvPG5fG4vVX6QpuMTDoTCnts7IBtBO61YpCLOnhkuKz+e PWNrcMyTxz4rve/9yACFM4bnqzHHSfZBqJeDQaK5guYNh87cGlfk X-Google-Smtp-Source: AGHT+IG/DR3+DG3QJnY3xLowdzZNeLzF326u5sU1rRk85xW6YogRV0JEsPFqis0Zv3AVJNTyeEWUjA== X-Received: by 2002:a17:902:e549:b0:20b:5439:f194 with SMTP id d9443c01a7336-20ca143ae73mr40618835ad.16.1728683374885; Fri, 11 Oct 2024 14:49:34 -0700 (PDT) Original-Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20c8c33ce73sm27927455ad.254.2024.10.11.14.49.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Oct 2024 14:49:34 -0700 (PDT) Content-Language: en-US In-Reply-To: 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:293385 Archived-At: On 10/10/2024 2:59 PM, Dmitry Gutov wrote: > If it's just for Eglot, though, maybe ideally it would have a separate > detector for directories in which to run the language server in - it > doesn't have to correspond to what the user considers to be the entire > project's root (they might prefer it to be a parent directory). Not sure > how automatic it can be in the general case, though, and it'd require > Eglot to know about root markers for all supported languages. Yeah, that raises a good point: what exactly counts as a "project" depends on the context. For simple scenarios, a project is approximately equal to a VC repository, but for more complex scenarios, I think it depends on what you want to *do* with the project. For example, suppose I have a Git monorepo that has several different Python packages in it. Should Emacs consider the monorepo to be the lone project, or should each Python package be a project? I don't know if either answer is correct 100% of the time. (Even if we're just thinking about VC, "what project is this file in?" can have multiple answers. Sometimes if I'm working in a Git submodule, I want that submodule to be the project, not the parent repo.) I'm not sure if we should open this can of worms yet though... > I'm not a fan of adding a file that has no other purposes, but if people find this useful, no problem. For personal projects it certainly shouldn't hurt. > > Eric, Jim, how would you like this resolution? I'm fine with recognizing ".project" by default, since it seems we'd just be adopting an already-existing practice. In addition to the cases already discussed, it seems that the Eclipse and STM32 IDEs also use a ".project" file at the project root for various things. To turn it around though, are there cases we know of where we *wouldn't* want ".project" to mark a project root? Maybe if an Eclipse IDE project were in a Git subdir? (In that case, maybe ".project" should only be checked for as a fallback if we couldn't determine the project using a "real" VC file.)