Received: (at 62701) by debbugs.gnu.org; 6 Apr 2023 19:29:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 06 15:29:24 2023 Received: from localhost ([127.0.0.1]:55177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pkVIS-0007UW-8i for submit <at> 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 <dalanicolai@HIDDEN>) id 1pkVIM-0007UG-Q2 for 62701 <at> 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 <at> 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 <dalanicolai@HIDDEN> Date: Thu, 6 Apr 2023 21:29:01 +0200 Message-ID: <CACJP=3=T=r-Pv73uD6_hA7U+xe-aoO2+TjBJAJaQf-qqg8_q_w@HIDDEN> Subject: python-completion-at-point output To: 62701 <at> debbugs.gnu.org Content-Type: multipart/alternative; boundary="00000000000065a05205f8afecf3" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62701 X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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 <div dir=3D"ltr"><div>B.t.w. completing the function from the fitz mode usi= ng `python-completion-at-point` returns the following</div><div><br></div><= 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"))<br></div><div><br></div><div>(while eglot/pyright re= turns nothing (see jsonrpc above), but does not pass completion to the</div= ><div>=C2=A0python-completion-at-point function)<br></div></div> --00000000000065a05205f8afecf3--
bug-gnu-emacs@HIDDEN
:bug#62701
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 6 Apr 2023 18:55:05 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Apr 06 14:55:05 2023 Received: from localhost ([127.0.0.1]:55151 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1pkUlD-0006Zf-Ps for submit <at> 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 <dalanicolai@HIDDEN>) id 1pkUlA-0006Yk-G7 for submit <at> 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 <dalanicolai@HIDDEN>) id 1pkUl9-0006oh-RG for bug-gnu-emacs@HIDDEN; 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 <dalanicolai@HIDDEN>) id 1pkUl6-00005h-Fa for bug-gnu-emacs@HIDDEN; Thu, 06 Apr 2023 14:54:59 -0400 Received: by mail-wm1-x336.google.com with SMTP id p34so23079434wms.3 for <bug-gnu-emacs@HIDDEN>; 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 <dalanicolai@HIDDEN> Date: Thu, 6 Apr 2023 20:54:35 +0200 Message-ID: <CACJP=3ma2_1fVUsPe_5T_EsdvxK-Djsc91Z-=sAGq1vDvXU=GA@HIDDEN> Subject: 30.0.50; eglot with pyright breaks completion-at-point To: bug-gnu-emacs@HIDDEN Content-Type: multipart/alternative; boundary="00000000000091a4e505f8af7136" Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=dalanicolai@HIDDEN; 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-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> 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 <div dir=3D"ltr">I am not sure in how far this can be called a bug, but I g= uess it could<br>be considered a genuine one.<br><br>I am happy to provide = a recipe, but I think in this case it just<br>'complicates' the bug= report. So I will describe the behavior and my<br>observations.<br><br>Wit= hout eglot, when in a python buffer, we can start an inferior shell<br>and = send code to the sell to get completion-at-point (via the<br>python-complet= ion-at-point completion function). This functionality is<br>working fine, a= lso for functions that become available after importing<br>some module (in = my case the 'fitz' module from the pymupdf library).<br><br>But aft= er activating eglot, with the freshly updated pyright-langserver<br>(v. 1.1= .302), the completion does not work anymore, because<br>eglot-completion-at= -point function is added before the<br>python-completion-at-point-function = in the completion-at-point-functions<br>list (the completion can be fixed b= y changing the order of these two<br>functions in that list).<br><br>I shou= ld mention that it only partly breaks completion at point. For<br>example, = eglot-completion-at-point does work for functions from e.g. the<br>'os&= #39; module (even without sending the 'import os' line to the infer= ior<br>shell). But for functions from the fitz module,<br>eglot-completion-= at-point does not work (present candidates), while the<br>completion does w= ork when using the python-completion-at-point function.<br>Unfortunately, e= glot-completion-at-point 'hijacks' the completion, and<br>python-co= mpletion-at-point never gets called.<br><br>finally when trying to complete= the function from the fitz module then<br>the message(s) in the eglot even= t buffer looks as follows<br><br>(:jsonrpc "2.0" :id 32 :method &= quot;textDocument/completion" :params<br> =C2=A0(:textDocument<br> = =C2=A0 (:uri "file:///home/dalanicolai/git/emacs-doc-tools-pymupdf/doc= -pymupdf-epc-server.py")<br> =C2=A0 :position<br> =C2=A0 (:line 13 := character 8)<br> =C2=A0 :context<br> =C2=A0 (:triggerKind 1)))<br>[server= -reply] (id:32) Thu Apr =C2=A06 20:47:43 2023:<br>(:jsonrpc "2.0"= :id 32 :result<br> =C2=A0(:items<br> =C2=A0 []<br> =C2=A0 :isIncomplete= t))<br><br>while when trying to complete a function from the os module, th= e message<br>looks as follows<br><br>(:jsonrpc "2.0" :id 57 :meth= od "textDocument/completion" :params<br> =C2=A0(:textDocument<br= > =C2=A0 (:uri "file:///home/dalanicolai/git/emacs-doc-tools-pymupdf/= doc-pymupdf-epc-server.py")<br> =C2=A0 :position<br> =C2=A0 (:line 1= 5 :character 5)<br> =C2=A0 :context<br> =C2=A0 (:triggerKind 1)))<br>[ser= ver-reply] (id:57) Thu Apr =C2=A06 20:50:16 2023:<br>(:jsonrpc "2.0&qu= ot; :id 57 :result<br> =C2=A0(:items<br> =C2=A0 [(:label "__package_= _" :kind 6 :data<br> =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<br> = =C2=A0 =C2=A0(:line 15 :character 5)<br> =C2=A0 =C2=A0:funcParensDisa= bled t :symbolLabel "__package__")<br> =C2=A0 =C2=A0:sortText &= quot;11.9999.__package__")<br> =C2=A0 =C2=A0(:label "__path__&qu= ot; :kind 6 :data<br> =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<br> = =C2=A0 =C2=A0(:line 15 :character 5)<br> =C2=A0 =C2=A0:funcParensDisabl= ed t :symbolLabel "__path__")<br> =C2=A0 =C2=A0:sortText "= 11.9999.__path__")<br> =C2=A0 =C2=A0(:label "_path" :kind 9= :data<br> =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<br> =C2=A0 =C2=A0= (:line 15 :character 5)<br> =C2=A0 =C2=A0:funcParensDisabled t :symbolL= abel "_path")<br> =C2=A0 =C2=A0:sortText "09.9999._path&qu= ot;)<br> =C2=A0 =C2=A0(:label "path" :kind 6 :data<br> =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<br> =C2=A0 =C2=A0(:line 15 :character= 5)<br> =C2=A0 =C2=A0:funcParensDisabled t :symbolLabel "path"= ;)<br> =C2=A0 =C2=A0:sortText "09.9999.path")<br><br>etc.<br><b= r>Of course I am happy to provide any more info if desired.<br>Thank you!<b= r><br><br><br>In GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Vers= ion<br>=C2=A03.24.37, cairo version 1.17.6) of 2023-04-02 built on fedora<b= r>Repository revision: dec09aaeb616e7648f4694d76090cc8e269471e0<br>Reposito= ry branch: master<br>System Description: Fedora Linux 37 (Workstation Editi= on)<br><br>Configured using:<br>=C2=A0'configure --with-pgtk --with-mod= ules --with-cairo<br>=C2=A0--with-native-compilation --with-json'<br><b= r>Configured features:<br>ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETT= INGS HARFBUZZ JPEG JSON<br>LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY IN= OTIFY PDUMPER PGTK PNG<br>RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_S= CROLL_BARS TREE_SITTER<br>XIM GTK3 ZLIB<br><br>Important settings:<br>=C2= =A0 value of $LANG: en_US.UTF-8<br>=C2=A0 value of $XMODIFIERS: @im=3Dibus<= br>=C2=A0 locale-coding-system: utf-8-unix<br><br>Major mode: Python<br><br= >Minor modes in effect:<br>=C2=A0 eglot--managed-mode: t<br>=C2=A0 flymake-= mode: t<br>=C2=A0 outline-minor-mode: t<br>=C2=A0 shell-dirtrack-mode: t<br= >=C2=A0 global-hl-todo-mode: t<br>=C2=A0 hl-todo-mode: t<br>=C2=A0 vertico-= mode: t<br>=C2=A0 ivy-rich-mode: t<br>=C2=A0 counsel-mode: t<br>=C2=A0 ivy-= mode: t<br>=C2=A0 smartparens-global-mode: t<br>=C2=A0 smartparens-mode: t<= br>=C2=A0 global-evil-surround-mode: t<br>=C2=A0 evil-surround-mode: t<br>= =C2=A0 global-evil-collection-unimpaired-mode: t<br>=C2=A0 evil-collection-= unimpaired-mode: t<br>=C2=A0 which-key-mode: t<br>=C2=A0 evil-mode: t<br>= =C2=A0 evil-local-mode: t<br>=C2=A0 recentf-mode: t<br>=C2=A0 savehist-mode= : t<br>=C2=A0 server-mode: t<br>=C2=A0 global-tab-line-mode: t<br>=C2=A0 ta= b-line-mode: t<br>=C2=A0 auto-insert-mode: t<br>=C2=A0 tooltip-mode: t<br>= =C2=A0 global-eldoc-mode: t<br>=C2=A0 eldoc-mode: t<br>=C2=A0 show-paren-mo= de: t<br>=C2=A0 electric-indent-mode: t<br>=C2=A0 mouse-wheel-mode: t<br>= =C2=A0 file-name-shadow-mode: t<br>=C2=A0 global-font-lock-mode: t<br>=C2= =A0 font-lock-mode: t<br>=C2=A0 line-number-mode: t<br>=C2=A0 transient-mar= k-mode: t<br>=C2=A0 auto-composition-mode: t<br>=C2=A0 auto-encryption-mode= : t<br>=C2=A0 auto-compression-mode: t<br><br>Load-path shadows:<br>/home/d= alanicolai/.config/emacs/elpa/transient-20230315.1520/transient hides /home= /dalanicolai/git/emacs/lisp/transient<br>/home/dalanicolai/.config/emacs/el= pa/eglot-20221020.1010/eglot hides /home/dalanicolai/git/emacs/lisp/progmod= es/eglot<br>/home/dalanicolai/.config/emacs/elpa/project-0.9.8/project hide= s /home/dalanicolai/git/emacs/lisp/progmodes/project<br><br>Features:<br>(s= hadow sort flyspell ispell mail-extr emacsbug message yank-media<br>rfc822 = mml mml-sec evil-collection-epa epa epg rfc6068 epg-config<br>gnus-util mm-= decode mm-bodies mm-encode mailabbrev gmm-utils mailheader<br>sendmail mail= -utils find-dired evil-collection-grep grep<br>evil-collection-eglot eglot = array evil-collection-ert ert ewoc<br>evil-collection-debug debug backtrace= filenotify jsonrpc<br>evil-collection-flymake flymake-proc flymake evil-co= llection-imenu imenu<br>mule-util evil-collection-vc-git vc-git evil-collec= tion-diff-mode<br>diff-mode vc-dispatcher evil-collection-custom cus-edit c= us-start<br>cus-load ement-autoloads svg-lib-autoloads taxy-magit-section-a= utoloads<br>taxy-autoloads plz-autoloads ox-moderncv org-cv-utils ox-odt rn= g-loc<br>rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse n= xml-ns<br>nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-htm= l table<br>ox-ascii ox-publish ox org-element org-persist org-id org-refile= <br>ob-python evil-collection-python python treesit evil-collection-org org= <br>org-macro org-pcomplete org-list org-footnote org-faces org-entities<br= >evil-collection-outline noutline outline ob-emacs-lisp org-table<br>org-lo= addefs find-func evil-collection-calendar cal-menu calendar<br>cal-loaddefs= avl-tree generator ob-jupyter jupyter-tramp tramp-cache<br>time-stamp tram= p tramp-loaddefs trampver tramp-integration files-x<br>tramp-compat shell p= complete parse-time iso8601 time-date ls-lisp<br>jupyter-server jupyter-ser= ver-ioloop jupyter-ioloop-comm jupyter-ioloop<br>zmq zmq-core jupyter-rest-= api url-http url-auth mail-parse rfc2231<br>rfc2047 rfc2045 mm-util ietf-dr= ums mail-prsvr url-gw nsm<br>jupyter-org-extensions jupyter-org-client ob o= b-tangle ol org-src ob-ref<br>ob-lob ob-table ob-exp ob-comint ob-core org-= cycle org-fold<br>org-fold-core ob-eval org-keys oc org-compat org-version = org-macs<br>format-spec jupyter-repl easy-mmode derived jupyter-kernel-mana= ger<br>jupyter-channel jupyter-widget-client websocket bindat simple-httpd = pp<br>jupyter-client jupyter-comm-layer jupyter-messages hmac-def jupyter-m= ime<br>shr pixel-fill kinsoku url-file puny svg xml dom jupyter-kernelspec<= br>jupyter-env jupyter-base eieio-base jupyter-autoloads<br>websocket-autol= oads simple-httpd-autoloads zmq-autoloads fasd-autoloads<br>hl-todo hl-todo= -autoloads imenu-list-autoloads org-wc-autoloads<br>all-the-icons-autoloads= mastodon-autoloads ts-autoloads s-autoloads<br>persist-autoloads request-a= utoloads vterm-autoloads evil-iedit-state<br>iedit iedit-lib evil-iedit-sta= te-autoloads iedit-autoloads ladebug<br>doc-tools-autoloads epc-autoloads c= table-autoloads concurrent-autoloads<br>deferred-autoloads org-journal-auto= loads rg-autoloads wgrep-autoloads<br>magit-autoloads magit-section-autoloa= ds git-commit-autoloads<br>with-editor-autoloads transient-autoloads eglot-= autoloads<br>project-autoloads evil-collection-vertico vertico compat<br>co= nsult-autoloads vertico-autoloads ivy-rich counsel xdg<br>evil-collection-x= ref xref project evil-collection-compile compile<br>text-property-search ev= il-collection-comint comint ansi-osc ansi-color<br>swiper evil-collection-i= vy ivy delsel ivy-faces ivy-overlay colir color<br>ivy-rich-autoloads couns= el-autoloads swiper-autoloads ivy-autoloads<br>htmlize-autoloads org-supers= tar-autoloads smartparens loadhist dash<br>smartparens-autoloads dash-autol= oads evil-surround<br>evil-surround-autoloads evil-collection-unimpaired<br= >evil-collection-which-key evil-collection-tabulated-list<br>evil-collectio= n-tab-bar evil-collection-simple evil-collection-replace<br>evil-collection= -process-menu evil-collection-package-menu<br>evil-collection-info evil-col= lection-indent evil-collection-image<br>image-mode evil-collection-dired di= red dired-loaddefs exif<br>evil-collection-help evil-collection-elisp-mode = evil-collection-eldoc<br>evil-collection-buff-menu evil-collection annalist= <br>evil-collection-autoloads annalist-autoloads kill-file-path<br>kill-fil= e-path-autoloads link-hint-autoloads avy-autoloads<br>embark-autoloads comp= at-autoloads which-key which-key-autoloads<br>spacemacs-dark-theme spacemac= s-common spacemacs-theme-autoloads<br>finder-inf pcase evil evil-integratio= n evil-maps evil-commands reveal<br>evil-jumps evil-command-window evil-sea= rch evil-ex evil-types<br>evil-macros evil-repeat evil-states evil-core com= p comp-cstr warnings<br>icons rx cl-extra help-mode advice evil-common thin= gatpt rect<br>evil-digraphs evil-vars ring edmacro kmacro info evil-autoloa= ds<br>goto-chg-autoloads recentf tree-widget wid-edit savehist server tab-l= ine<br>autoinsert package browse-url url url-proxy url-privacy url-expand<b= r>url-methods url-history url-cookie generate-lisp-file url-domsuf<br>url-u= til mailcap url-handlers url-parse auth-source cl-seq eieio<br>eieio-core c= l-macs password-cache json subr-x map byte-opt gv bytecomp<br>byte-compile = url-vars cl-loaddefs cl-lib rmc iso-transl tooltip cconv<br>eldoc paren ele= ctric uniquify ediff-hook vc-hooks lisp-float-type<br>elisp-mode mwheel ter= m/pgtk-win pgtk-win term/common-win pgtk-dnd<br>tool-bar dnd fontset image = regexp-opt fringe tabulated-list replace<br>newcomment text-mode lisp-mode = prog-mode register page tab-bar menu-bar<br>rfn-eshadow isearch easymenu ti= mer select scroll-bar mouse jit-lock<br>font-lock syntax font-core term/tty= -colors frame minibuffer nadvice seq<br>simple cl-generic indonesian philip= pine cham georgian utf-8-lang<br>misc-lang vietnamese tibetan thai tai-viet= lao korean japanese eucjp-ms<br>cp51932 hebrew greek romanian slovak czech= european ethiopic indian<br>cyrillic chinese composite emoji-zwj charscrip= t charprop case-table<br>epa-hook jka-cmpr-hook help abbrev obarray oclosur= e cl-preloaded button<br>loaddefs theme-loaddefs faces cus-face macroexp fi= les window<br>text-properties overlay sha1 md5 base64 format env code-pages= mule<br>custom widget keymap hashtable-print-readable backquote threads db= usbind<br>inotify dynamic-setting system-font-setting font-render-setting c= airo<br>gtk pgtk multi-tty make-network-process native-compile emacs)<br><b= r>Memory information:<br>((conses 16 694707 57076)<br>=C2=A0(symbols 48 418= 49 1)<br>=C2=A0(strings 32 174124 8435)<br>=C2=A0(string-bytes 1 5791434)<b= r>=C2=A0(vectors 16 71345)<br>=C2=A0(vector-slots 8 1288960 34132)<br>=C2= =A0(floats 8 413 270)<br>=C2=A0(intervals 56 1763 0)<br>=C2=A0(buffers 984 = 22))<br></div> --00000000000091a4e505f8af7136--
dalanicolai <dalanicolai@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#62701
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.