From unknown Fri Sep 19 23:53:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#59456 <59456@debbugs.gnu.org> To: bug#59456 <59456@debbugs.gnu.org> Subject: Status: 29.0.50; eglot with ccls: completion inserts unwanted function signature Reply-To: bug#59456 <59456@debbugs.gnu.org> Date: Sat, 20 Sep 2025 06:53:52 +0000 retitle 59456 29.0.50; eglot with ccls: completion inserts unwanted functio= n signature reassign 59456 emacs submitter 59456 miha@kamnitnik.top severity 59456 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 21 15:17:49 2022 Received: (at submit) by debbugs.gnu.org; 21 Nov 2022 20:17:49 +0000 Received: from localhost ([127.0.0.1]:48936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxDEj-0005VM-GA for submit@debbugs.gnu.org; Mon, 21 Nov 2022 15:17:49 -0500 Received: from lists.gnu.org ([209.51.188.17]:42940) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxDEh-0005VF-RL for submit@debbugs.gnu.org; Mon, 21 Nov 2022 15:17:48 -0500 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 1oxDEe-0003lR-SD for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 15:17:47 -0500 Received: from kamnitnik.top ([209.250.245.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxDEb-0002x3-5l for bug-gnu-emacs@gnu.org; Mon, 21 Nov 2022 15:17:44 -0500 From: miha@kamnitnik.top DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kamnitnik.top; s=mail; t=1669061854; bh=Ne6Cn7JMzDkauGDPNQEPPJOZPVDrBDAPTlDsFdz+0/w=; h=From:To:Subject:Date:From; b=uN0fcxDxWHIHVeqpFqST1CTCag46TUHnwWoOEgM6wPtC5zqI2R/FkV9JVHx3PSsfA mXeay6lEmq7F7HwTOwvjsEjuHumW1Ww9mi1Aq0S2joZsv8QTbj1t8hYl8g9bky0yoT QbwfusZoHx2pAuL7fK6vdTMvzI50G6+wG6rRXRXZdwhaxv423LErNK1KUyyvySpRKQ HZHUqPkPhcO6fY5Vj0uh4wzyNaXUceqmTrh8sqPgPQ3ip4ZiT47cXhb0pyJBqAoI/r JrJa4U8qtRlMzEfNU0nZjPf9ptmEX8t/WztKK0+bjgHu2nuU8N9IaDs4N59lcQLSYG 7rRRldhpXrMWw== To: bug-gnu-emacs@gnu.org Subject: 29.0.50; eglot with ccls: completion inserts unwanted function signature Date: Mon, 21 Nov 2022 21:18:43 +0100 Message-ID: <87edtw2h98.fsf@miha-pc> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=209.250.245.214; envelope-from=miha@kamnitnik.top; helo=kamnitnik.top X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 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, FROM_SUSPICIOUS_NTLD=0.001, FROM_SUSPICIOUS_NTLD_FP=1.138, PDS_OTHER_BAD_TLD=1.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Put this test.c file into an empty direcotry int fun1 (char *a, int b) { return b + 1; } int fun2 (char *a, int b) { return b + 2; } Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: kamnitnik.top (top)] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.9 SPF_FAIL SPF: sender does not match SPF record (fail) [SPF failed: Please see http://www.openspf.org/Why?s=mfrom; id=miha%40kamnitnik.top; ip=209.51.188.17; r=debbugs.gnu.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.51.188.17 listed in wl.mailspike.net] 2.0 FROM_SUSPICIOUS_NTLD_FP From abused NTLD 0.0 FROM_SUSPICIOUS_NTLD From abused NTLD X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.4 (/) --=-=-= Content-Type: text/plain Put this test.c file into an empty direcotry int fun1 (char *a, int b) { return b + 1; } int fun2 (char *a, int b) { return b + 2; } Visit it with emacs -q and do M-: (setq completion-cycle-threshold 3) M-x eglot RET ccls RET At the end of the file type int main () { fu and press M-TAB. "fu" completes into "fun1(char *a, int b) -> int". Note that this isn't reproducible with clangd, so this could possibly be a ccls bug. clang version: 14.0.6 ccls version: 0.20220729-1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJHBAEBCAAxFiEEmxVnesoT5rQXvVXnswkaGpIVmT8FAmN73SMTHG1paGFAa2Ft bml0bmlrLnRvcAAKCRCzCRoakhWZP7RoD/wJi8YJDPA/A7asu7vJbL47XCyrLPPp CcUGbYitG6/NRH8koVCF0LQ9/Pn12tP7VUGKmfMt3R4gSiUgRyTRhJlgJXJr6oKL A5BMQDr8pgdaQWQZh2xKU/KDBTPewdm01tglXPmCj7xE+yaC9TC7VdYCZ7xq0ScU AgiXcLnA3GCHrRGqvU/KDDdLCFLuBScAky0lYoG6zKdHOS+QXvXQMw0Rvw5BrR5v PLiJFSkqpu926VmDfAUmGDZSlkQc64mQkCHR+kMSNq3tKImzRYTDsjFq7bdy6IMd alj3+NHmT5w1JPK4jxPSqdoLYskUmBw9KwsunLMkdZHT0CIBuf2lyxvEpg5SZROQ 7xCChw4bX0o+bSszFgac6z4QxjeAq5Nuh7I1GKvAVoxSCQkjETSnKhpx5vES/wy4 9IUYxB+skhBdqr87MimtrGmvRP0X+fBJsj4iw6pYXX49ZOzFWMNWTs3iHcIZKrSv KP+noyIetUqS4xMf/9+eT99yotTZ0GVYWn15iVRQ5ncM5x2qyDGuLGnkmUa2MbpZ fQOxeSt87ofXeU2KxtHAe1chtBb3N2OnB4CiCTs9EBX3BRb6kUhvQB8vg8n5qQ0p wefioBghOtZtzLkRlWujbnIRqLtXxIEBYP+QagraMDmO562IN9OOtx2MeqI5uhaT JI29FhZH15VLkA== =z7B2 -----END PGP SIGNATURE----- --=-=-=--