From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61048: 28.2; Installing Eglot doesn't pull transitive Xref dependency Date: Wed, 25 Jan 2023 00:20:27 +0000 Message-ID: <871qnj1n3o.fsf@tcd.ie> Reply-To: "Basil L. Contovounesios" Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12420"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Dmitry Gutov To: 61048@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 25 01:21:27 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pKTXb-000337-3U for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Jan 2023 01:21:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pKTXE-0006M6-WE; Tue, 24 Jan 2023 19:21:05 -0500 Original-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 1pKTXD-0006Gm-BF for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2023 19:21:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pKTXD-0004wD-08 for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2023 19:21:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pKTXB-0003aL-T9; Tue, 24 Jan 2023 19:21:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: joaotavora@gmail.com, dgutov@yandex.ru, bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jan 2023 00:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 61048 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Dmitry Gutov Original-Received: via spool by submit@debbugs.gnu.org id=B.167460604313731 (code B ref -1); Wed, 25 Jan 2023 00:21:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jan 2023 00:20:43 +0000 Original-Received: from localhost ([127.0.0.1]:57851 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKTWs-0003ZP-HQ for submit@debbugs.gnu.org; Tue, 24 Jan 2023 19:20:43 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:41028) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pKTWp-0003ZG-W4 for submit@debbugs.gnu.org; Tue, 24 Jan 2023 19:20:40 -0500 Original-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 1pKTWp-00061f-J7 for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2023 19:20:39 -0500 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pKTWm-0004oo-1Q for bug-gnu-emacs@gnu.org; Tue, 24 Jan 2023 19:20:39 -0500 Original-Received: by mail-wm1-x335.google.com with SMTP id m5-20020a05600c4f4500b003db03b2559eso189321wmq.5 for ; Tue, 24 Jan 2023 16:20:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=/SJ9czJrfrp2qvCIWV7jE83sBYvV8f/HphndB88YC0I=; b=P44V65Tbu45uAG9Odlpxpbbb/izXGYdIHxvVD0ONsmixmNk4hC1MSVRtITym5dYMKY ZC4ytwG7NyplD+xwnQq20pP05+SR5t0rE1tNW+1dv/crgNn28NT0T6plVptq6F2PYmqv 0W8pRPb+2TEzhMm60lO6JM1z808WBOkieY4HYHB0yvoeXrimlXXl+xP/4XyBW0I2eCLa fIpe/wkdHUBb1nxYn9YfKODHxeaqbAphdBFz/bjWcn7DeVfIjy3FF7Qwc40c93u09nY2 MGvx5nVvnBhUrx1xgtW4dANnCwmDkVTAeIHkCy/i//ZG8arnUBAPoNfq3EJc2kS/GWIp e5ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/SJ9czJrfrp2qvCIWV7jE83sBYvV8f/HphndB88YC0I=; b=5jeqp3WHdcUf4DEcMNDECwvux3TSBm15iLHGFsKMSdJv7aB79xRNU+SHG44vFiQPxm 5QopuSPhmTntxcIW/Ar6uNxvpLU3tBUNdHD6Sm6yh6ICoyfPEl6fM+5OwL5r5rCVxwe3 KcZGpNpkRkWMyHMOLDcYv2qj/1KoAnPj6hUTgRojP1b2pCFa1CUlJgOFTM565euAUXxR yErLoSDbVcQq/h+Bi0SBJD7RUcO30iYi2DtPaP/R9yiGJmLyn6MDC9D0QZPjOGGYXlJu r6galyI/3J5YCd/jHYOFEfzc6qIgj6qHAOtLzJorAXptPfu3Fji6sIxUOa1eijZ7MQ/A hz4Q== X-Gm-Message-State: AFqh2kq45o066ioyoc7jAX5I9AzBXvEjV1J4pnZGns9SnQOA2dSMrNiG RBbgLciP1FmzpMYUqkWlT7xxVz8dpzytdNtR X-Google-Smtp-Source: AMrXdXsPr90Hg3QzwVMjMr9UDD/hwOAsu+c+gZ1uXFXykRh6wHkFYh/wA6iz2XeqN1bwYagUt8vbwg== X-Received: by 2002:a05:600c:3acd:b0:3cf:5583:8b3f with SMTP id d13-20020a05600c3acd00b003cf55838b3fmr29927414wms.20.1674606031855; Tue, 24 Jan 2023 16:20:31 -0800 (PST) Original-Received: from localhost ([64.43.154.54]) by smtp.gmail.com with ESMTPSA id x26-20020a1c7c1a000000b003db01178b62sm202908wmc.40.2023.01.24.16.20.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Jan 2023 16:20:30 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=contovob@tcd.ie; helo=mail-wm1-x335.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, 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254083 Archived-At: --=-=-= Content-Type: text/plain Tags: patch 0. cd "$(mktemp -d)" 1. touch .dir-locals.el 2. HOME="${PWD}" XDG_CONFIG_HOME="${PWD}/.config" emacs-28.2 3. M-x toggle-debug-on-error RET 4. M-: (setq project-vc-extra-root-markers (list dir-locals-file)) RET 5. M-x package-install RET eglot RET 6. C-x p g Package-Requires RET Debugger entered--Lisp error: (void-function xref-show-xrefs) xref-show-xrefs(#f(compiled-function (&rest args2) #) nil) project-find-regexp("Package-Requires") funcall-interactively(project-find-regexp "Package-Requires") call-interactively(project-find-regexp nil nil) command-execute(project-find-regexp) Emacs 28 ships with Xref 1.3.0, and without Eglot. Eglot depends on Project 0.9.3 directly and on Xref 1.4.0 transitively. Yet package.el for some reason deems that the built-in Xref 1.3.0 satisfies this requirement, and does not pull a more recent version from GNU ELPA. [ BTW, there is nothing special about steps 1, 4, 6 in the recipe above: they just demonstrate that the expected version of Xref is missing. ] At first glance this sounds like a package.el bug, but since there won't be an Emacs 28.3, and until someone checks whether it's present in Emacs 29+, perhaps something like the following is needed as a workaround? --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=eglot.diff Content-Transfer-Encoding: quoted-printable diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 8ce1a8b7baf..8a85ccf7276 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -7,7 +7,7 @@ ;; Maintainer: Jo=C3=A3o T=C3=A1vora ;; URL: https://github.com/joaotavora/eglot ;; Keywords: convenience, languages -;; Package-Requires: ((emacs "26.3") (jsonrpc "1.0.16") (flymake "1.2.1") = (project "0.9.3") (xref "1.0.1") (eldoc "1.11.0") (seq "2.23") (external-co= mpletion "0.1")) +;; Package-Requires: ((emacs "26.3") (jsonrpc "1.0.16") (flymake "1.2.1") = (project "0.9.3") (xref "1.4.0") (eldoc "1.11.0") (seq "2.23") (external-co= mpletion "0.1")) =20 ;; This is a GNU ELPA :core package. Avoid adding functionality ;; that is not available in the version of Emacs recorded above or any --=-=-= Content-Type: text/plain Thanks, -- Basil In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2022-09-13 built on tia Windowing system distributor 'The X.Org Foundation', version 11.0.12101006 System Description: Debian GNU/Linux bookworm/sid Configured using: 'configure 'CFLAGS=-O2 -march=native' --prefix=/home/blc/.local --program-suffix=-28.2 --with-file-notification=yes --with-x-toolkit=lucid --with-x' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID ZLIB Important settings: value of $LANG: en_IE.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Debugger Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: /tmp/tmp.wwpr6ZCm6G/.emacs.d/elpa/jsonrpc-1.0.16/jsonrpc hides /home/blc/.local/src/emacs-28.2/lisp/jsonrpc /tmp/tmp.wwpr6ZCm6G/.emacs.d/elpa/project-0.9.5/project hides /home/blc/.local/src/emacs-28.2/lisp/progmodes/project Features: (shadow sort mail-extr emacsbug sendmail help-fns cl-print find-dired vc-svn grep cl-extra easy-mmode external-completion array filenotify jsonrpc xref flymake-proc flymake thingatpt project imenu ert ewoc debug backtrace help-mode warnings pcase compile comint ansi-color ring find-func autoload radix-tree lisp-mnt tar-mode arc-mode archive-mode cus-edit pp wid-edit mm-archive message dired dired-loaddefs rfc822 mml mml-sec epa derived gnus-util rmail rmail-loaddefs text-property-search time-date mailabbrev gmm-utils mailheader mm-decode mm-bodies mm-encode mail-utils gnutls network-stream url-http mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm rmc puny url-cache url-auth epg rfc6068 epg-config finder-inf package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib cus-start cus-load iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-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 cl-generic 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 simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 150248 11680) (symbols 48 14395 1) (strings 32 52717 2277) (string-bytes 1 1443118) (vectors 16 24221) (vector-slots 8 304738 18582) (floats 8 50 144) (intervals 56 493 0) (buffers 992 17)) --=-=-=--