From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Danny Freeman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#59149: Feature Request: Report progress of long requests in Eglot Date: Fri, 11 Nov 2022 08:07:45 -0500 Message-ID: <87iljlvdqw.fsf@dfreeman.email> References: <87educqkar.fsf@dfreeman.email> <87zgcy95bu.fsf@gmail.com> Reply-To: Danny Freeman 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="17410"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59149@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 11 14:11:15 2022 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 1otToQ-0004Hn-AK for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Nov 2022 14:11:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otToH-0007zM-6Z; Fri, 11 Nov 2022 08:11: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 1otToF-0007z6-Oe for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 08:11:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1otToE-0002ne-Ge for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 08:11:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1otToE-00008l-3X for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 08:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Danny Freeman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Nov 2022 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59149 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1668172220489 (code B ref -1); Fri, 11 Nov 2022 13:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Nov 2022 13:10:20 +0000 Original-Received: from localhost ([127.0.0.1]:45286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otTnY-00007o-2v for submit@debbugs.gnu.org; Fri, 11 Nov 2022 08:10:20 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:38098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otTnW-00007e-75 for submit@debbugs.gnu.org; Fri, 11 Nov 2022 08:10:18 -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 1otTnV-0007tK-6h for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 08:10:18 -0500 Original-Received: from out2.migadu.com ([2001:41d0:2:aacc::]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1otTnQ-0002Of-Pv for bug-gnu-emacs@gnu.org; Fri, 11 Nov 2022 08:10:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dfreeman.email; s=key1; t=1668172202; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lGJg6nuWAdv4OGLDBOoWiKPXAbJh3H2g0I/Rzdd337w=; b=BGz5dJVB/uKxEG+2l68GRJBP2pBFw6m140k4Ar/2JRkBkZu+JUNuUch8UNXEWwl0OT43UC 9nearfp6qHmhdWbhUJBDSnqmG35HZ3UCkdXM+gL6R791EWVIB1AKSs65STgncQeCsrS9g9 Vpz1G+CSU9zhbwFSkWq5XIfEHlf4UCY= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-reply-to: <87zgcy95bu.fsf@gmail.com> X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=danny@dfreeman.email; helo=out2.migadu.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:247586 Archived-At: Jo=C3=A3o T=C3=A1vora writes: > Thanks Danny, this doesn't look bad at all, though I have yet to > understand how it works. I can half-see why progress status should be a > server property, but it would be better if you provided an automated > test, or maybe just a step-by-step sequence diagram (which can be in > plain text and language) that clarifies this. An animated gif that > might also work. I'd love to write some tests, but I can't seem to find any for eglot in the emacs repository. I see they exist in the github project. Is there something I'm overlooking? > Anyway, the way the user opts out of LSP configuration is via the user > variable eglot-ignored-server-capabilities. So there should be some > point where you check the associated LSP capability of "progress > reporting" with eglot--server-capable. That's what I'm looking for, thank you. I'll take a look at the prior art in eglot and work this in. --=20 Danny Freeman