GNU bug report logs - #43800
28.0.50; Package already install but still connecting to MELPA at start

Previous Next

Package: emacs;

Reported by: Pankaj Jangid <pankaj <at> codeisgreat.org>

Date: Sun, 4 Oct 2020 18:40:02 UTC

Severity: normal

Found in version 28.0.50

Done: Pankaj Jangid <pankaj <at> codeisgreat.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43800 in the body.
You can then email your comments to 43800 AT debbugs.gnu.org in the normal way.

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#43800; Package emacs. (Sun, 04 Oct 2020 18:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pankaj Jangid <pankaj <at> codeisgreat.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 04 Oct 2020 18:40:02 GMT) Full text and rfc822 format available.

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

From: Pankaj Jangid <pankaj <at> codeisgreat.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.0.50; Package already install but still connecting to MELPA at
 start
Date: Mon, 05 Oct 2020 00:09:40 +0530
This is working fine on emacs-27 branch. But the issue is occuring only
on ‘master’.

In my ~/.emacs.d/init.d, I have (require 'init-flymake). And I've set
load-path before that using following statement,

(eval-and-compile
  (add-to-list 'load-path (expand-file-name "lisp" user-emacs-directory)))

And my ~/.emacs.d/lisp/init-flymake.el has following content,

--8<---------------cut here---------------start------------->8---
(require 'package)

(defun my/flymake-setup ()
  "Initialize flymake from elpa."
  (defvar my/pkgs '(flymake))

  (let (ulist)
    (dolist (pkg my/pkgs ulist)
      (unless (package-installed-p pkg)
	(setq ulist (cons pkg ulist))))
    (unless (null ulist)
      (package-refresh-contents)
      (dolist (pkg ulist)
	(package-install pkg)))))

(my/flymake-setup)

(require 'flymake)
(global-set-key (kbd "M-n") #'flymake-goto-next-error)
(global-set-key (kbd "M-p") #'flymake-goto-prev-error)

(provide 'init-flymake)
--8<---------------cut here---------------end--------------->8---

Everytime I restart emacs, it connects to MELPA to download
flymake. Following are log entries from *Messages* buffer at the
beginning of emacs session.

--8<---------------cut here---------------start------------->8---
Importing package-keyring.gpg...done
Contacting host: melpa.org:443 [2 times]
Contacting host: elpa.gnu.org:443
Package refresh done
Contacting host: elpa.gnu.org:443
Generating autoloads for flymake.el...done
  INFO     Scraping files for flymake-autoloads.el...done
Wrote /Users/pankaj/.emacs.d/elpa/flymake-1.0.9/flymake-autoloads.el
Checking /Users/pankaj/.emacs.d/elpa/flymake-1.0.9... [3 times]
Source file ‘/Users/pankaj/.emacs.d/elpa/flymake-1.0.9/flymake.el’ newer than byte-compiled file; using older file
Wrote /Users/pankaj/.emacs.d/elpa/flymake-1.0.9/flymake.elc
Checking /Users/pankaj/.emacs.d/elpa/flymake-1.0.9...
Done (Total of 1 file compiled, 2 skipped)
Package ‘flymake’ installed.
Loading /Users/pankaj/.emacs.d/recentf...done
Cleaning up the recentf list...done (0 removed)
Loading /Users/pankaj/.emacs.d/custom.el (source)...done
Saving file /Users/pankaj/.emacs.d/custom.el...
Wrote /Users/pankaj/.emacs.d/custom.el
For information about GNU Emacs and the GNU system, type C-h C-a.
--8<---------------cut here---------------end--------------->8---



In GNU Emacs 28.0.50 (build 14, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H2))
 of 2020-10-04 built on mb2.local
Repository revision: 0fe8ab79e7a2306b84e209cc4e90da1996da1cad
Repository branch: master
Windowing system distributor 'Apple', version 10.3.1894
System Description:  Mac OS X 10.15.7

Configured using:
 'configure LDFLAGS=-L/usr/local/opt/ruby/lib
 CPPFLAGS=-I/usr/local/opt/ruby/include
 PKG_CONFIG_PATH=:/usr/local/opt/sqlite/lib/pkgconfig:/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig:/usr/local/opt/ruby/lib/pkgconfig'

Configured features:
JPEG TIFF GIF PNG RSVG DBUS GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2

Important settings:
  value of $LC_CTYPE: UTF-8
  value of $LANG: en_IN.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Messages

Minor modes in effect:
  electric-pair-mode: t
  show-paren-mode: t
  global-semanticdb-minor-mode: t
  global-semantic-idle-scheduler-mode: t
  semantic-mode: t
  recentf-mode: t
  icomplete-mode: t
  which-key-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-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
  transient-mark-mode: t

Load-path shadows:
/Users/pankaj/.emacs.d/elpa/flymake-1.0.9/flymake hides /Users/pankaj/work/code/savannah/emacs/nextstep/Emacs.app/Contents/Resources/lisp/progmodes/flymake

Features:
(shadow sort mail-extr gnus-topic pop3 nndraft nnmh utf-7 nnml nnfolder
cl-extra epa-file gnus-agent gnus-srvr gnus-score score-mode nnvirtual
nntp gnus-cache .gnus nnir gnus-msg gnus-art mm-uu mml2015 mm-view
mml-smime smime dig gnus-sum shr kinsoku svg dom gnus-group gnus-undo
gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7
netrc nnoo parse-time gnus-spec gnus-int gnus-range gnus-win gnus
nnheader emacsbug sendmail pulse xref vc-bzr vc-src vc-sccs vc-svn
vc-cvs vc-rcs vc vc-dispatcher project checkdoc help-mode
display-line-numbers elec-pair paren hideshow semantic/db-mode
semantic/idle semantic/analyze semantic/sort semantic/scope
semantic/analyze/fcn semantic/db eieio-base semantic/format ezimage
semantic/tag-ls semantic/find semantic/ctxt semantic/util-modes
semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local
cedet vc-git diff-mode cus-edit cus-start cus-load init server vtl cl
init-java init-kotlin init-elisp init-keys init-modeline init-looks
init-editorconfig init-speedbar init-recentf recentf tree-widget
wid-edit init-date-time solar cal-dst init-crypto init-browser
init-icomplete icomplete init-which-key which-key init-flycheck
init-flymake flymake-proc flymake pcase warnings compile autoload
radix-tree lisp-mnt finder-inf mm-archive gnutls network-stream url-http
url-gw nsm url-cache url-auth url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util mailcap
init-dired init-org org-indent org ob ob-tangle ob-ref ob-lob ob-table
ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete
comint ansi-color ring org-list org-faces org-entities noutline outline
easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table ol
org-keys org-loaddefs find-func cal-menu calendar cal-loaddefs
org-compat advice org-macs init-erc erc-auth erc-join erc-goodies erc
erc-backend iso8601 thingatpt pp format-spec erc-loaddefs init-email
message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg
epg-config gnus-util rmail rmail-loaddefs text-property-search time-date
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader
init-ibuffer edmacro kmacro info early-init package easymenu browse-url
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 tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu
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 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
kqueue cocoa ns lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 525435 39165)
 (symbols 48 33163 1)
 (strings 32 132794 4350)
 (string-bytes 1 3994936)
 (vectors 16 47812)
 (vector-slots 8 608090 31804)
 (floats 8 605 378)
 (intervals 56 812 89)
 (buffers 992 30))

-- 
Pankaj Jangid

GnuPG Fingerprint => 0B62 7424 3B26 A911 052A  DDE6 7C95 6E6F F858 7689




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43800; Package emacs. (Mon, 05 Oct 2020 07:28:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 43800 <at> debbugs.gnu.org, Pankaj Jangid <pankaj <at> codeisgreat.org>
Subject: Re: bug#43800: 28.0.50; Package already install but still
 connecting to MELPA at start
Date: Mon, 05 Oct 2020 09:27:25 +0200
Pankaj Jangid <pankaj <at> codeisgreat.org> writes:

> This is working fine on emacs-27 branch. But the issue is occuring only
> on ‘master’.

[...]

> (defun my/flymake-setup ()
>   "Initialize flymake from elpa."
>   (defvar my/pkgs '(flymake))
>
>   (let (ulist)
>     (dolist (pkg my/pkgs ulist)
>       (unless (package-installed-p pkg)
> 	(setq ulist (cons pkg ulist))))

So, basically you're saying that

(package-installed-p 'flymake)

returns nil, but flymake is installed?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43800; Package emacs. (Mon, 05 Oct 2020 16:05:02 GMT) Full text and rfc822 format available.

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

From: Pankaj Jangid <pankaj <at> codeisgreat.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 43800 <at> debbugs.gnu.org
Subject: Re: bug#43800: 28.0.50; Package already install but still
 connecting to MELPA at start
Date: Mon, 05 Oct 2020 21:34:04 +0530
On Mon, Oct 05 2020, Lars Ingebrigtsen wrote:

>> (defun my/flymake-setup ()
>>   "Initialize flymake from elpa."
>>   (defvar my/pkgs '(flymake))
>>
>>   (let (ulist)
>>     (dolist (pkg my/pkgs ulist)
>>       (unless (package-installed-p pkg)
>> 	(setq ulist (cons pkg ulist))))
>
> So, basically you're saying that
>
> (package-installed-p 'flymake)
>
Yes. Just now, I have tried it in *scratch* buffer. Package list also
shows 'flymake' is installed as dependency.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43800; Package emacs. (Mon, 05 Oct 2020 16:25:02 GMT) Full text and rfc822 format available.

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

From: Pankaj Jangid <pankaj <at> codeisgreat.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 43800 <at> debbugs.gnu.org
Subject: Re: bug#43800: 28.0.50; Package already install but still
 connecting to MELPA at start
Date: Mon, 05 Oct 2020 21:53:46 +0530
On Mon, Oct 05 2020, Lars Ingebrigtsen wrote:

>> (defun my/flymake-setup ()
>>   "Initialize flymake from elpa."
>>   (defvar my/pkgs '(flymake))
>>
>>   (let (ulist)
>>     (dolist (pkg my/pkgs ulist)
>>       (unless (package-installed-p pkg)
>> 	(setq ulist (cons pkg ulist))))
>
> So, basically you're saying that
>
> (package-installed-p 'flymake)
>
> returns nil, but flymake is installed?

Yes. And more info on this.

1. Launch fresh emacs instance
2. (package-installed-p 'flymake)
   ⇒ nil
3. M-x package-refresh-contents
   ;; wait for completion
   (package-installed-p 'flymake)
   ⇒ nil
4. M-x list-packages
   ;; wait for completion
   (package-installed-p 'flymake)
   ⇒ t




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43800; Package emacs. (Tue, 06 Oct 2020 06:40:01 GMT) Full text and rfc822 format available.

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

From: Pankaj Jangid <pankaj <at> codeisgreat.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 43800 <at> debbugs.gnu.org
Subject: Re: bug#43800: 28.0.50; Package already install but still
 connecting to MELPA at start
Date: Tue, 06 Oct 2020 12:08:57 +0530
And the issue disappears when I open Gnus in emacs-27 and then again
open Gnus on emacs-master.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43800; Package emacs. (Wed, 07 Oct 2020 02:31:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Pankaj Jangid <pankaj <at> codeisgreat.org>
Cc: 43800 <at> debbugs.gnu.org
Subject: Re: bug#43800: 28.0.50; Package already install but still
 connecting to MELPA at start
Date: Wed, 07 Oct 2020 04:30:15 +0200
Pankaj Jangid <pankaj <at> codeisgreat.org> writes:

> And the issue disappears when I open Gnus in emacs-27 and then again
> open Gnus on emacs-master.

Opening Gnus changes the value of

(package-installed-p 'flymake)

?  That's very odd indeed.  I think it sounds like you have some kind of
corrupted data structures somewhere, but I can't even guess where.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43800; Package emacs. (Wed, 07 Oct 2020 04:20:01 GMT) Full text and rfc822 format available.

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

From: Pankaj Jangid <pankaj <at> codeisgreat.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 43800 <at> debbugs.gnu.org
Subject: Re: bug#43800: 28.0.50; Package already install but still
 connecting to MELPA at start
Date: Wed, 07 Oct 2020 09:49:38 +0530
On Wed, Oct 07 2020, Lars Ingebrigtsen wrote:

>> And the issue disappears when I open Gnus in emacs-27 and then again
>> open Gnus on emacs-master.
>
> Opening Gnus changes the value of
>
> (package-installed-p 'flymake)
>
> ?  That's very odd indeed.  I think it sounds like you have some kind of
> corrupted data structures somewhere, but I can't even guess where.

sorry about that. that was meant for 43726.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43800; Package emacs. (Mon, 16 Nov 2020 03:20:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Pankaj Jangid <pankaj <at> codeisgreat.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 43800 <at> debbugs.gnu.org
Subject: Re: bug#43800: 28.0.50; Package already install but still connecting
 to MELPA at start
Date: Sun, 15 Nov 2020 19:19:45 -0800
Pankaj Jangid <pankaj <at> codeisgreat.org> writes:

>> So, basically you're saying that
>>
>> (package-installed-p 'flymake)
>>
>> returns nil, but flymake is installed?
>
> Yes. And more info on this.
>
> 1. Launch fresh emacs instance
> 2. (package-installed-p 'flymake)
>    ⇒ nil
> 3. M-x package-refresh-contents
>    ;; wait for completion
>    (package-installed-p 'flymake)
>    ⇒ nil
> 4. M-x list-packages
>    ;; wait for completion
>    (package-installed-p 'flymake)
>    ⇒ t

Could you please provide a recipe to reproduce this bug, starting from
emacs -Q?  I tried the following on current master and Emacs 27:

0. emacs -Q
1. Evaluate:
(progn
  (package-initialize)
  (package-installed-p 'flymake))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43800; Package emacs. (Mon, 16 Nov 2020 05:38:02 GMT) Full text and rfc822 format available.

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

From: Pankaj Jangid <pankaj <at> codeisgreat.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 43800 <at> debbugs.gnu.org
Subject: Re: bug#43800: 28.0.50; Package already install but still
 connecting to MELPA at start
Date: Mon, 16 Nov 2020 11:07:15 +0530
Stefan Kangas <stefan <at> marxist.se> writes:

> Pankaj Jangid <pankaj <at> codeisgreat.org> writes:
>
>>> So, basically you're saying that
>>>
>>> (package-installed-p 'flymake)
>>>
>>> returns nil, but flymake is installed?
>>
>> Yes. And more info on this.
>>
>> 1. Launch fresh emacs instance
>> 2. (package-installed-p 'flymake)
>>    ⇒ nil
>> 3. M-x package-refresh-contents
>>    ;; wait for completion
>>    (package-installed-p 'flymake)
>>    ⇒ nil
>> 4. M-x list-packages
>>    ;; wait for completion
>>    (package-installed-p 'flymake)
>>    ⇒ t
>
> Could you please provide a recipe to reproduce this bug, starting from
> emacs -Q?  I tried the following on current master and Emacs 27:
>
> 0. emacs -Q
> 1. Evaluate:
> (progn
>   (package-initialize)
>   (package-installed-p 'flymake))

This is returning `t' on both - `master' as well as `emacs-27'. Should I
close this?





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43800; Package emacs. (Mon, 16 Nov 2020 13:05:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Pankaj Jangid <pankaj <at> codeisgreat.org>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 43800 <at> debbugs.gnu.org
Subject: Re: bug#43800: 28.0.50; Package already install but still connecting
 to MELPA at start
Date: Mon, 16 Nov 2020 05:04:45 -0800
Pankaj Jangid <pankaj <at> codeisgreat.org> writes:

>> Could you please provide a recipe to reproduce this bug, starting from
>> emacs -Q?  I tried the following on current master and Emacs 27:
>>
>> 0. emacs -Q
>> 1. Evaluate:
>> (progn
>>   (package-initialize)
>>   (package-installed-p 'flymake))
>
> This is returning `t' on both - `master' as well as `emacs-27'. Should I
> close this?

If the above works for you, I think this should be closed, yes.




Reply sent to Pankaj Jangid <pankaj <at> codeisgreat.org>:
You have taken responsibility. (Mon, 16 Nov 2020 17:21:02 GMT) Full text and rfc822 format available.

Notification sent to Pankaj Jangid <pankaj <at> codeisgreat.org>:
bug acknowledged by developer. (Mon, 16 Nov 2020 17:21:02 GMT) Full text and rfc822 format available.

Message #37 received at 43800-done <at> debbugs.gnu.org (full text, mbox):

From: Pankaj Jangid <pankaj <at> codeisgreat.org>
To: 43800-done <at> debbugs.gnu.org
Subject: Re: bug#43800: 28.0.50; Package already install but still
 connecting to MELPA at start
Date: Mon, 16 Nov 2020 22:50:17 +0530



bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 15 Dec 2020 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 126 days ago.

Previous Next


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