From unknown Fri Jun 13 11:23:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62701: 30.0.50; eglot with pyright breaks completion-at-point Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Apr 2023 18:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62701 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 62701@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168080730525292 (code B ref -1); Thu, 06 Apr 2023 18:56:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Apr 2023 18:55:05 +0000 Received: from localhost ([127.0.0.1]:55151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkUlD-0006Zf-Ps for submit@debbugs.gnu.org; Thu, 06 Apr 2023 14:55:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:35532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkUlA-0006Yk-G7 for submit@debbugs.gnu.org; Thu, 06 Apr 2023 14:55:02 -0400 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 1pkUl9-0006oh-RG for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 14:54:59 -0400 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkUl6-00005h-Fa for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 14:54:59 -0400 Received: by mail-wm1-x336.google.com with SMTP id p34so23079434wms.3 for ; Thu, 06 Apr 2023 11:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680807292; x=1683399292; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=PqiXQdmzk4L2ZDzXKASnkoYaiZ0eDdVTNE36Q0Wq8jY=; b=VBwmeF7Euf5+wQyDva5ZrdXHmMY15FDzi/07O4MVCA03CMR6PKkG8tQ2mN8/VbL4Kg pFC5PVRum8d+AdK5M2YkbTQ7o0exDxD7ujSp2HZJaUuUr6MJCVpik5K5cauXhJNex+dW 9AZ7a3tYPCrECbqV5qyEgt2e+lzGwjMA9EaeyXhXGVga0fQseblKxL7IMzG3Of/ejNm5 mXGfWrkGWPesNm3vITE87c0SVsWk+Qnebp43CxitXaWOt0q9j+6ZFHA+Pa0yC06yrxpr +UfwU0et7INcIFze3cLwBKIkO94rcf8MiWmdmr29Ar31Ma6UvlP7/BbFUlfcWBsFdMw9 erTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680807292; x=1683399292; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PqiXQdmzk4L2ZDzXKASnkoYaiZ0eDdVTNE36Q0Wq8jY=; b=UaOW6Z9r9FmIYhX3VN8yO8DbpWKnzIcQUbm/n1UlNHi9tZQbDH+Nsi9slHkQ1YWTCJ tfRq/19awnxpgAZoRwwOIu4Hxu0h0jx9idG5B9Tt/tOe2EE87lUZcM5Yi+PAuB0IwLcj kgtKZXmDcw/GeP/m+DEbUBkiv9wE1ANRNrBzSqun7jDaV4DjMoDEfCYSgirvOwCuhCxL 3fv5GDBry2frpQZdD+JlgxDNsHZja9TJewjWoWMc8/EjzZu4q01FkGqafHvJ5yCoWkhu 62xZ6/XMwit0DdaakP6Cc2PD2GDnf7d65MdqqgaHLzdIbvml0aWKrp5VJ6SmMSyGue+T RUFw== X-Gm-Message-State: AAQBX9eHhgqKqv/7AszZolv4RlSbAPbtam0etUNuowhwmJqd3Ak/FkWA nHLfKQtLzs5QSXZMdHAZGTi7LoSK1+eBHmAdbusoKTpslH8= X-Google-Smtp-Source: AKy350aaq6OEeu9EQIYV+303IBwdSR/Ot0lg7XeKxopteYX9tOvTnMcGM4EYsGgdlDsxHpkJzXer5TFdyLUHamhysy0= X-Received: by 2002:a7b:ce97:0:b0:3e2:1d7d:757f with SMTP id q23-20020a7bce97000000b003e21d7d757fmr2662867wmj.1.1680807291887; Thu, 06 Apr 2023 11:54:51 -0700 (PDT) MIME-Version: 1.0 From: dalanicolai Date: Thu, 6 Apr 2023 20:54:35 +0200 Message-ID: Content-Type: multipart/alternative; boundary="00000000000091a4e505f8af7136" Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=dalanicolai@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) 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: -2.3 (--) --00000000000091a4e505f8af7136 Content-Type: text/plain; charset="UTF-8" I am not sure in how far this can be called a bug, but I guess it could be considered a genuine one. I am happy to provide a recipe, but I think in this case it just 'complicates' the bug report. So I will describe the behavior and my observations. Without eglot, when in a python buffer, we can start an inferior shell and send code to the sell to get completion-at-point (via the python-completion-at-point completion function). This functionality is working fine, also for functions that become available after importing some module (in my case the 'fitz' module from the pymupdf library). But after activating eglot, with the freshly updated pyright-langserver (v. 1.1.302), the completion does not work anymore, because eglot-completion-at-point function is added before the python-completion-at-point-function in the completion-at-point-functions list (the completion can be fixed by changing the order of these two functions in that list). I should mention that it only partly breaks completion at point. For example, eglot-completion-at-point does work for functions from e.g. the 'os' module (even without sending the 'import os' line to the inferior shell). But for functions from the fitz module, eglot-completion-at-point does not work (present candidates), while the completion does work when using the python-completion-at-point function. Unfortunately, eglot-completion-at-point 'hijacks' the completion, and python-completion-at-point never gets called. finally when trying to complete the function from the fitz module then the message(s) in the eglot event buffer looks as follows (:jsonrpc "2.0" :id 32 :method "textDocument/completion" :params (:textDocument (:uri "file:///home/dalanicolai/git/emacs-doc-tools-pymupdf/doc-pymupdf-epc-server.py") :position (:line 13 :character 8) :context (:triggerKind 1))) [server-reply] (id:32) Thu Apr 6 20:47:43 2023: (:jsonrpc "2.0" :id 32 :result (:items [] :isIncomplete t)) while when trying to complete a function from the os module, the message looks as follows (:jsonrpc "2.0" :id 57 :method "textDocument/completion" :params (:textDocument (:uri "file:///home/dalanicolai/git/emacs-doc-tools-pymupdf/doc-pymupdf-epc-server.py") :position (:line 15 :character 5) :context (:triggerKind 1))) [server-reply] (id:57) Thu Apr 6 20:50:16 2023: (:jsonrpc "2.0" :id 57 :result (:items [(:label "__package__" :kind 6 :data (:workspacePath "/home/dalanicolai/git/emacs-doc-tools-pymupdf" :filePath "/home/dalanicolai/git/emacs-doc-tools-pymupdf/doc-pymupdf-epc-server.py" :position (:line 15 :character 5) :funcParensDisabled t :symbolLabel "__package__") :sortText "11.9999.__package__") (:label "__path__" :kind 6 :data (:workspacePath "/home/dalanicolai/git/emacs-doc-tools-pymupdf" :filePath "/home/dalanicolai/git/emacs-doc-tools-pymupdf/doc-pymupdf-epc-server.py" :position (:line 15 :character 5) :funcParensDisabled t :symbolLabel "__path__") :sortText "11.9999.__path__") (:label "_path" :kind 9 :data (:workspacePath "/home/dalanicolai/git/emacs-doc-tools-pymupdf" :filePath "/home/dalanicolai/git/emacs-doc-tools-pymupdf/doc-pymupdf-epc-server.py" :position (:line 15 :character 5) :funcParensDisabled t :symbolLabel "_path") :sortText "09.9999._path") (:label "path" :kind 6 :data (:workspacePath "/home/dalanicolai/git/emacs-doc-tools-pymupdf" :filePath "/home/dalanicolai/git/emacs-doc-tools-pymupdf/doc-pymupdf-epc-server.py" :position (:line 15 :character 5) :funcParensDisabled t :symbolLabel "path") :sortText "09.9999.path") etc. Of course I am happy to provide any more info if desired. Thank you! In GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, cairo version 1.17.6) of 2023-04-02 built on fedora Repository revision: dec09aaeb616e7648f4694d76090cc8e269471e0 Repository branch: master System Description: Fedora Linux 37 (Workstation Edition) Configured using: 'configure --with-pgtk --with-modules --with-cairo --with-native-compilation --with-json' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER XIM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: eglot--managed-mode: t flymake-mode: t outline-minor-mode: t shell-dirtrack-mode: t global-hl-todo-mode: t hl-todo-mode: t vertico-mode: t ivy-rich-mode: t counsel-mode: t ivy-mode: t smartparens-global-mode: t smartparens-mode: t global-evil-surround-mode: t evil-surround-mode: t global-evil-collection-unimpaired-mode: t evil-collection-unimpaired-mode: t which-key-mode: t evil-mode: t evil-local-mode: t recentf-mode: t savehist-mode: t server-mode: t global-tab-line-mode: t tab-line-mode: t auto-insert-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t line-number-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: /home/dalanicolai/.config/emacs/elpa/transient-20230315.1520/transient hides /home/dalanicolai/git/emacs/lisp/transient /home/dalanicolai/.config/emacs/elpa/eglot-20221020.1010/eglot hides /home/dalanicolai/git/emacs/lisp/progmodes/eglot /home/dalanicolai/.config/emacs/elpa/project-0.9.8/project hides /home/dalanicolai/git/emacs/lisp/progmodes/project Features: (shadow sort flyspell ispell mail-extr emacsbug message yank-media rfc822 mml mml-sec evil-collection-epa epa epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader sendmail mail-utils find-dired evil-collection-grep grep evil-collection-eglot eglot array evil-collection-ert ert ewoc evil-collection-debug debug backtrace filenotify jsonrpc evil-collection-flymake flymake-proc flymake evil-collection-imenu imenu mule-util evil-collection-vc-git vc-git evil-collection-diff-mode diff-mode vc-dispatcher evil-collection-custom cus-edit cus-start cus-load ement-autoloads svg-lib-autoloads taxy-magit-section-autoloads taxy-autoloads plz-autoloads ox-moderncv org-cv-utils ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox org-element org-persist org-id org-refile ob-python evil-collection-python python treesit evil-collection-org org org-macro org-pcomplete org-list org-footnote org-faces org-entities evil-collection-outline noutline outline ob-emacs-lisp org-table org-loaddefs find-func evil-collection-calendar cal-menu calendar cal-loaddefs avl-tree generator ob-jupyter jupyter-tramp tramp-cache time-stamp tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 time-date ls-lisp jupyter-server jupyter-server-ioloop jupyter-ioloop-comm jupyter-ioloop zmq zmq-core jupyter-rest-api url-http url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm jupyter-org-extensions jupyter-org-client ob ob-tangle ol org-src ob-ref ob-lob ob-table ob-exp ob-comint ob-core org-cycle org-fold org-fold-core ob-eval org-keys oc org-compat org-version org-macs format-spec jupyter-repl easy-mmode derived jupyter-kernel-manager jupyter-channel jupyter-widget-client websocket bindat simple-httpd pp jupyter-client jupyter-comm-layer jupyter-messages hmac-def jupyter-mime shr pixel-fill kinsoku url-file puny svg xml dom jupyter-kernelspec jupyter-env jupyter-base eieio-base jupyter-autoloads websocket-autoloads simple-httpd-autoloads zmq-autoloads fasd-autoloads hl-todo hl-todo-autoloads imenu-list-autoloads org-wc-autoloads all-the-icons-autoloads mastodon-autoloads ts-autoloads s-autoloads persist-autoloads request-autoloads vterm-autoloads evil-iedit-state iedit iedit-lib evil-iedit-state-autoloads iedit-autoloads ladebug doc-tools-autoloads epc-autoloads ctable-autoloads concurrent-autoloads deferred-autoloads org-journal-autoloads rg-autoloads wgrep-autoloads magit-autoloads magit-section-autoloads git-commit-autoloads with-editor-autoloads transient-autoloads eglot-autoloads project-autoloads evil-collection-vertico vertico compat consult-autoloads vertico-autoloads ivy-rich counsel xdg evil-collection-xref xref project evil-collection-compile compile text-property-search evil-collection-comint comint ansi-osc ansi-color swiper evil-collection-ivy ivy delsel ivy-faces ivy-overlay colir color ivy-rich-autoloads counsel-autoloads swiper-autoloads ivy-autoloads htmlize-autoloads org-superstar-autoloads smartparens loadhist dash smartparens-autoloads dash-autoloads evil-surround evil-surround-autoloads evil-collection-unimpaired evil-collection-which-key evil-collection-tabulated-list evil-collection-tab-bar evil-collection-simple evil-collection-replace evil-collection-process-menu evil-collection-package-menu evil-collection-info evil-collection-indent evil-collection-image image-mode evil-collection-dired dired dired-loaddefs exif evil-collection-help evil-collection-elisp-mode evil-collection-eldoc evil-collection-buff-menu evil-collection annalist evil-collection-autoloads annalist-autoloads kill-file-path kill-file-path-autoloads link-hint-autoloads avy-autoloads embark-autoloads compat-autoloads which-key which-key-autoloads spacemacs-dark-theme spacemacs-common spacemacs-theme-autoloads finder-inf pcase evil evil-integration evil-maps evil-commands reveal evil-jumps evil-command-window evil-search evil-ex evil-types evil-macros evil-repeat evil-states evil-core comp comp-cstr warnings icons rx cl-extra help-mode advice evil-common thingatpt rect evil-digraphs evil-vars ring edmacro kmacro info evil-autoloads goto-chg-autoloads recentf tree-widget wid-edit savehist server tab-line autoinsert package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 694707 57076) (symbols 48 41849 1) (strings 32 174124 8435) (string-bytes 1 5791434) (vectors 16 71345) (vector-slots 8 1288960 34132) (floats 8 413 270) (intervals 56 1763 0) (buffers 984 22)) --00000000000091a4e505f8af7136 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I am not sure in how far this can be called a bug, but I g= uess it could
be considered a genuine one.

I am happy to provide = a recipe, but I think in this case it just
'complicates' the bug= report. So I will describe the behavior and my
observations.

Wit= hout eglot, when in a python buffer, we can start an inferior shell
and = send code to the sell to get completion-at-point (via the
python-complet= ion-at-point completion function). This functionality is
working fine, a= lso for functions that become available after importing
some module (in = my case the 'fitz' module from the pymupdf library).

But aft= er activating eglot, with the freshly updated pyright-langserver
(v. 1.1= .302), the completion does not work anymore, because
eglot-completion-at= -point function is added before the
python-completion-at-point-function = in the completion-at-point-functions
list (the completion can be fixed b= y changing the order of these two
functions in that list).

I shou= ld mention that it only partly breaks completion at point. For
example, = eglot-completion-at-point does work for functions from e.g. the
'os&= #39; module (even without sending the 'import os' line to the infer= ior
shell). But for functions from the fitz module,
eglot-completion-= at-point does not work (present candidates), while the
completion does w= ork when using the python-completion-at-point function.
Unfortunately, e= glot-completion-at-point 'hijacks' the completion, and
python-co= mpletion-at-point never gets called.

finally when trying to complete= the function from the fitz module then
the message(s) in the eglot even= t buffer looks as follows

(:jsonrpc "2.0" :id 32 :method &= quot;textDocument/completion" :params
=C2=A0(:textDocument
= =C2=A0 (:uri "file:///home/dalanicolai/git/emacs-doc-tools-pymupdf/doc= -pymupdf-epc-server.py")
=C2=A0 :position
=C2=A0 (:line 13 := character 8)
=C2=A0 :context
=C2=A0 (:triggerKind 1)))
[server= -reply] (id:32) Thu Apr =C2=A06 20:47:43 2023:
(:jsonrpc "2.0"= :id 32 :result
=C2=A0(:items
=C2=A0 []
=C2=A0 :isIncomplete= t))

while when trying to complete a function from the os module, th= e message
looks as follows

(:jsonrpc "2.0" :id 57 :meth= od "textDocument/completion" :params
=C2=A0(:textDocument =C2=A0 (:uri "file:///home/dalanicolai/git/emacs-doc-tools-pymupdf/= doc-pymupdf-epc-server.py")
=C2=A0 :position
=C2=A0 (:line 1= 5 :character 5)
=C2=A0 :context
=C2=A0 (:triggerKind 1)))
[ser= ver-reply] (id:57) Thu Apr =C2=A06 20:50:16 2023:
(:jsonrpc "2.0&qu= ot; :id 57 :result
=C2=A0(:items
=C2=A0 [(:label "__package_= _" :kind 6 :data
=C2=A0 =C2=A0(:workspacePath "/home/dalani= colai/git/emacs-doc-tools-pymupdf" :filePath "/home/dalanicolai/g= it/emacs-doc-tools-pymupdf/doc-pymupdf-epc-server.py" :position
= =C2=A0 =C2=A0(:line 15 :character 5)
=C2=A0 =C2=A0:funcParensDisa= bled t :symbolLabel "__package__")
=C2=A0 =C2=A0:sortText &= quot;11.9999.__package__")
=C2=A0 =C2=A0(:label "__path__&qu= ot; :kind 6 :data
=C2=A0 =C2=A0(:workspacePath "/home/dalanicola= i/git/emacs-doc-tools-pymupdf" :filePath "/home/dalanicolai/git/e= macs-doc-tools-pymupdf/doc-pymupdf-epc-server.py" :position
= =C2=A0 =C2=A0(:line 15 :character 5)
=C2=A0 =C2=A0:funcParensDisabl= ed t :symbolLabel "__path__")
=C2=A0 =C2=A0:sortText "= 11.9999.__path__")
=C2=A0 =C2=A0(:label "_path" :kind 9= :data
=C2=A0 =C2=A0(:workspacePath "/home/dalanicolai/git/emacs= -doc-tools-pymupdf" :filePath "/home/dalanicolai/git/emacs-doc-to= ols-pymupdf/doc-pymupdf-epc-server.py" :position
=C2=A0 =C2=A0= (:line 15 :character 5)
=C2=A0 =C2=A0:funcParensDisabled t :symbolL= abel "_path")
=C2=A0 =C2=A0:sortText "09.9999._path&qu= ot;)
=C2=A0 =C2=A0(:label "path" :kind 6 :data
=C2=A0 = =C2=A0(:workspacePath "/home/dalanicolai/git/emacs-doc-tools-pymupdf&q= uot; :filePath "/home/dalanicolai/git/emacs-doc-tools-pymupdf/doc-pymu= pdf-epc-server.py" :position
=C2=A0 =C2=A0(:line 15 :character= 5)
=C2=A0 =C2=A0:funcParensDisabled t :symbolLabel "path"= ;)
=C2=A0 =C2=A0:sortText "09.9999.path")

etc.
Of course I am happy to provide any more info if desired.
Thank you!


In GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Vers= ion
=C2=A03.24.37, cairo version 1.17.6) of 2023-04-02 built on fedoraRepository revision: dec09aaeb616e7648f4694d76090cc8e269471e0
Reposito= ry branch: master
System Description: Fedora Linux 37 (Workstation Editi= on)

Configured using:
=C2=A0'configure --with-pgtk --with-mod= ules --with-cairo
=C2=A0--with-native-compilation --with-json'
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETT= INGS HARFBUZZ JPEG JSON
LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY IN= OTIFY PDUMPER PGTK PNG
RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_S= CROLL_BARS TREE_SITTER
XIM GTK3 ZLIB

Important settings:
=C2= =A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus<= br>=C2=A0 locale-coding-system: utf-8-unix

Major mode: Python
Minor modes in effect:
=C2=A0 eglot--managed-mode: t
=C2=A0 flymake-= mode: t
=C2=A0 outline-minor-mode: t
=C2=A0 shell-dirtrack-mode: t=C2=A0 global-hl-todo-mode: t
=C2=A0 hl-todo-mode: t
=C2=A0 vertico-= mode: t
=C2=A0 ivy-rich-mode: t
=C2=A0 counsel-mode: t
=C2=A0 ivy-= mode: t
=C2=A0 smartparens-global-mode: t
=C2=A0 smartparens-mode: t<= br>=C2=A0 global-evil-surround-mode: t
=C2=A0 evil-surround-mode: t
= =C2=A0 global-evil-collection-unimpaired-mode: t
=C2=A0 evil-collection-= unimpaired-mode: t
=C2=A0 which-key-mode: t
=C2=A0 evil-mode: t
= =C2=A0 evil-local-mode: t
=C2=A0 recentf-mode: t
=C2=A0 savehist-mode= : t
=C2=A0 server-mode: t
=C2=A0 global-tab-line-mode: t
=C2=A0 ta= b-line-mode: t
=C2=A0 auto-insert-mode: t
=C2=A0 tooltip-mode: t
= =C2=A0 global-eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mo= de: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
= =C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2= =A0 font-lock-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mar= k-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode= : t
=C2=A0 auto-compression-mode: t

Load-path shadows:
/home/d= alanicolai/.config/emacs/elpa/transient-20230315.1520/transient hides /home= /dalanicolai/git/emacs/lisp/transient
/home/dalanicolai/.config/emacs/el= pa/eglot-20221020.1010/eglot hides /home/dalanicolai/git/emacs/lisp/progmod= es/eglot
/home/dalanicolai/.config/emacs/elpa/project-0.9.8/project hide= s /home/dalanicolai/git/emacs/lisp/progmodes/project

Features:
(s= hadow sort flyspell ispell mail-extr emacsbug message yank-media
rfc822 = mml mml-sec evil-collection-epa epa epg rfc6068 epg-config
gnus-util mm-= decode mm-bodies mm-encode mailabbrev gmm-utils mailheader
sendmail mail= -utils find-dired evil-collection-grep grep
evil-collection-eglot eglot = array evil-collection-ert ert ewoc
evil-collection-debug debug backtrace= filenotify jsonrpc
evil-collection-flymake flymake-proc flymake evil-co= llection-imenu imenu
mule-util evil-collection-vc-git vc-git evil-collec= tion-diff-mode
diff-mode vc-dispatcher evil-collection-custom cus-edit c= us-start
cus-load ement-autoloads svg-lib-autoloads taxy-magit-section-a= utoloads
taxy-autoloads plz-autoloads ox-moderncv org-cv-utils ox-odt rn= g-loc
rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse n= xml-ns
nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-htm= l table
ox-ascii ox-publish ox org-element org-persist org-id org-refile=
ob-python evil-collection-python python treesit evil-collection-org org=
org-macro org-pcomplete org-list org-footnote org-faces org-entitiesevil-collection-outline noutline outline ob-emacs-lisp org-table
org-lo= addefs find-func evil-collection-calendar cal-menu calendar
cal-loaddefs= avl-tree generator ob-jupyter jupyter-tramp tramp-cache
time-stamp tram= p tramp-loaddefs trampver tramp-integration files-x
tramp-compat shell p= complete parse-time iso8601 time-date ls-lisp
jupyter-server jupyter-ser= ver-ioloop jupyter-ioloop-comm jupyter-ioloop
zmq zmq-core jupyter-rest-= api url-http url-auth mail-parse rfc2231
rfc2047 rfc2045 mm-util ietf-dr= ums mail-prsvr url-gw nsm
jupyter-org-extensions jupyter-org-client ob o= b-tangle ol org-src ob-ref
ob-lob ob-table ob-exp ob-comint ob-core org-= cycle org-fold
org-fold-core ob-eval org-keys oc org-compat org-version = org-macs
format-spec jupyter-repl easy-mmode derived jupyter-kernel-mana= ger
jupyter-channel jupyter-widget-client websocket bindat simple-httpd = pp
jupyter-client jupyter-comm-layer jupyter-messages hmac-def jupyter-m= ime
shr pixel-fill kinsoku url-file puny svg xml dom jupyter-kernelspec<= br>jupyter-env jupyter-base eieio-base jupyter-autoloads
websocket-autol= oads simple-httpd-autoloads zmq-autoloads fasd-autoloads
hl-todo hl-todo= -autoloads imenu-list-autoloads org-wc-autoloads
all-the-icons-autoloads= mastodon-autoloads ts-autoloads s-autoloads
persist-autoloads request-a= utoloads vterm-autoloads evil-iedit-state
iedit iedit-lib evil-iedit-sta= te-autoloads iedit-autoloads ladebug
doc-tools-autoloads epc-autoloads c= table-autoloads concurrent-autoloads
deferred-autoloads org-journal-auto= loads rg-autoloads wgrep-autoloads
magit-autoloads magit-section-autoloa= ds git-commit-autoloads
with-editor-autoloads transient-autoloads eglot-= autoloads
project-autoloads evil-collection-vertico vertico compat
co= nsult-autoloads vertico-autoloads ivy-rich counsel xdg
evil-collection-x= ref xref project evil-collection-compile compile
text-property-search ev= il-collection-comint comint ansi-osc ansi-color
swiper evil-collection-i= vy ivy delsel ivy-faces ivy-overlay colir color
ivy-rich-autoloads couns= el-autoloads swiper-autoloads ivy-autoloads
htmlize-autoloads org-supers= tar-autoloads smartparens loadhist dash
smartparens-autoloads dash-autol= oads evil-surround
evil-surround-autoloads evil-collection-unimpairedevil-collection-which-key evil-collection-tabulated-list
evil-collectio= n-tab-bar evil-collection-simple evil-collection-replace
evil-collection= -process-menu evil-collection-package-menu
evil-collection-info evil-col= lection-indent evil-collection-image
image-mode evil-collection-dired di= red dired-loaddefs exif
evil-collection-help evil-collection-elisp-mode = evil-collection-eldoc
evil-collection-buff-menu evil-collection annalist=
evil-collection-autoloads annalist-autoloads kill-file-path
kill-fil= e-path-autoloads link-hint-autoloads avy-autoloads
embark-autoloads comp= at-autoloads which-key which-key-autoloads
spacemacs-dark-theme spacemac= s-common spacemacs-theme-autoloads
finder-inf pcase evil evil-integratio= n evil-maps evil-commands reveal
evil-jumps evil-command-window evil-sea= rch evil-ex evil-types
evil-macros evil-repeat evil-states evil-core com= p comp-cstr warnings
icons rx cl-extra help-mode advice evil-common thin= gatpt rect
evil-digraphs evil-vars ring edmacro kmacro info evil-autoloa= ds
goto-chg-autoloads recentf tree-widget wid-edit savehist server tab-l= ine
autoinsert package browse-url url url-proxy url-privacy url-expandurl-methods url-history url-cookie generate-lisp-file url-domsuf
url-u= til mailcap url-handlers url-parse auth-source cl-seq eieio
eieio-core c= l-macs password-cache json subr-x map byte-opt gv bytecomp
byte-compile = url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv
eldoc paren ele= ctric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel ter= m/pgtk-win pgtk-win term/common-win pgtk-dnd
tool-bar dnd fontset image = regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode = prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu ti= mer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty= -colors frame minibuffer nadvice seq
simple cl-generic indonesian philip= pine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet= lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech= european ethiopic indian
cyrillic chinese composite emoji-zwj charscrip= t charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosur= e cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp fi= les window
text-properties overlay sha1 md5 base64 format env code-pages= mule
custom widget keymap hashtable-print-readable backquote threads db= usbind
inotify dynamic-setting system-font-setting font-render-setting c= airo
gtk pgtk multi-tty make-network-process native-compile emacs)
Memory information:
((conses 16 694707 57076)
=C2=A0(symbols 48 418= 49 1)
=C2=A0(strings 32 174124 8435)
=C2=A0(string-bytes 1 5791434)=C2=A0(vectors 16 71345)
=C2=A0(vector-slots 8 1288960 34132)
=C2= =A0(floats 8 413 270)
=C2=A0(intervals 56 1763 0)
=C2=A0(buffers 984 = 22))
--00000000000091a4e505f8af7136-- From unknown Fri Jun 13 11:23:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62701: python-completion-at-point output References: In-Reply-To: Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Apr 2023 19:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62701 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 62701@debbugs.gnu.org Received: via spool by 62701-submit@debbugs.gnu.org id=B62701.168080936428805 (code B ref 62701); Thu, 06 Apr 2023 19:30:02 +0000 Received: (at 62701) by debbugs.gnu.org; 6 Apr 2023 19:29:24 +0000 Received: from localhost ([127.0.0.1]:55177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkVIS-0007UW-8i for submit@debbugs.gnu.org; Thu, 06 Apr 2023 15:29:24 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:46655) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkVIM-0007UG-Q2 for 62701@debbugs.gnu.org; Thu, 06 Apr 2023 15:29:23 -0400 Received: by mail-wr1-f43.google.com with SMTP id r29so40551735wra.13 for <62701@debbugs.gnu.org>; Thu, 06 Apr 2023 12:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680809353; x=1683401353; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=K6Wu/+pDBQIrQonO1ReFLQvom0Fp6ul4PpLg32fhbB4=; b=FtCpS9iFunBeBMm1+fbBtKZYNU+aGsXK4ipdLunllIqB+L6wOKB6/yc6OKeimkxOF/ UdjSKFoBFVskgeQwjK1XDZdOeNfodofDMojFXnWfVG4PSCev994u6o2b/ogtVTpvUSrJ 1Bl146GxJC+mhX/5jOP8/THu3MADR1MPx1WAgUDCMbrNr2SKIraSQD2R7T/+sYqZiUyA Ol0QCKwE3udEy1vsxQMQfUWNV9FSBk7IgOy9mfI+ptI8lMTSwtjSEoUOyhenDIu+QLsN Ph08LGZYbSWvNdvhZIdzIFy42xdHGh+UJsAGKSJBdaLONqvJMw2qUyeqgtYDn7jI+gGW NNkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680809353; x=1683401353; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=K6Wu/+pDBQIrQonO1ReFLQvom0Fp6ul4PpLg32fhbB4=; b=yNitgLdj/+YYByk2dWoO5uW9qWud4kh3AR1waK7rqrZoKHfX8EgnMPrsafPd/NP2MK 7iiEOfxTYH94N5ua3+0ZyhSKkNP5LumNMARxWOIIgG7xpnXvauY90eTB63SpF8hvEhD7 z0idZ1bpTpflHuzL11v9oE7L09lEDcTO/pNgsDh6QJgAnLxNVWtWjEON5GzGFeu30zd4 Hq88Cu/rMwrIo0lyQeU8M04226GWh4u1Fi4AMVWM3g7BBjeTOfZ+0aHlMa77KoOiaDmn Qq4mYHqULL/P/qfDot0zvshv9jRCAojdJV7kUnHwVF6kIXAAh4oXXTO1xyV3zdLraaTo s+Xw== X-Gm-Message-State: AAQBX9eW/HucCZVigfGC1RDg1+txqbDvfyW4Duz+KIah3OnaTIpITOx8 ZBk+Ttpm7szYbfrzx4M2hJRHWoI/jJK2vZ2xZeBFxfMtfVU= X-Google-Smtp-Source: AKy350bjzMZS+hJRXAuXY+Dq3BmRqD3YbM5QW3woQb5sr/XLt0FeTLDr/cJjibw4tkkUybY7U+RmLD8196OSE5Mz7mI= X-Received: by 2002:a5d:6587:0:b0:2ce:a3a6:79f6 with SMTP id q7-20020a5d6587000000b002cea3a679f6mr2379501wru.4.1680809352600; Thu, 06 Apr 2023 12:29:12 -0700 (PDT) MIME-Version: 1.0 From: dalanicolai Date: Thu, 6 Apr 2023 21:29:01 +0200 Message-ID: Content-Type: multipart/alternative; boundary="00000000000065a05205f8afecf3" X-Spam-Score: 0.0 (/) 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: -1.0 (-) --00000000000065a05205f8afecf3 Content-Type: text/plain; charset="UTF-8" B.t.w. completing the function from the fitz mode using `python-completion-at-point` returns the following '(171 179 ("p.get_text" "p.get_text_blocks" "p.get_text_selection" "p.get_text_words" "p.get_textbox" "p.get_textpage" "p.get_textpage_ocr" "p.get_texttrace")) (while eglot/pyright returns nothing (see jsonrpc above), but does not pass completion to the python-completion-at-point function) --00000000000065a05205f8afecf3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
B.t.w. completing the function from the fitz mode usi= ng `python-completion-at-point` returns the following

<= div>'(171 179 ("p.get_text" "p.get_text_blocks" &qu= ot;p.get_text_selection" "p.get_text_words" "p.get_text= box" "p.get_textpage" "p.get_textpage_ocr" "p= .get_texttrace"))

(while eglot/pyright re= turns nothing (see jsonrpc above), but does not pass completion to the
=C2=A0python-completion-at-point function)
--00000000000065a05205f8afecf3--