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

Full log


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 2 years and 303 days ago.

Previous Next


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