GNU bug report logs - #59456
29.0.50; eglot with ccls: completion inserts unwanted function signature

Previous Next

Package: emacs;

Reported by: miha <at> kamnitnik.top

Date: Mon, 21 Nov 2022 20:18:02 UTC

Severity: normal

Found in version 29.0.50

To reply to this bug, email your comments to 59456 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#59456; Package emacs. (Mon, 21 Nov 2022 20:18:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to miha <at> kamnitnik.top:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 21 Nov 2022 20:18:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: miha <at> kamnitnik.top
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; eglot with ccls: completion inserts unwanted function
 signature
Date: Mon, 21 Nov 2022 21:18:43 +0100
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 year and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.