From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Angelozzi Newsgroups: gmane.emacs.bugs Subject: bug#40148: 26.3; Custom package header checked out from GIT in Windows will not parse Date: Fri, 20 Mar 2020 10:50:59 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ebce3c05a145636e" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="41360"; mail-complaints-to="usenet@ciao.gmane.io" To: 40148@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 20 14:32:16 2020 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 1jFHl2-000AgR-P6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Mar 2020 14:32:16 +0100 Original-Received: from localhost ([::1]:52952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFHl1-000270-RH for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Mar 2020 09:32:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41405) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFHkq-00026s-Ki for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 09:32:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFHko-0003F3-9b for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 09:32:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38108) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFHko-0003Ev-6H for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 09:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jFHko-000671-2V for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 09:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Angelozzi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Mar 2020 13:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 40148 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.158471108523449 (code B ref -1); Fri, 20 Mar 2020 13:32:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Mar 2020 13:31:25 +0000 Original-Received: from localhost ([127.0.0.1]:44081 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFHkC-000669-V0 for submit@debbugs.gnu.org; Fri, 20 Mar 2020 09:31:25 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:46476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jFDNL-000301-RH for submit@debbugs.gnu.org; Fri, 20 Mar 2020 04:51:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48268) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFDNJ-0000xj-AB for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 04:51:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFDNH-0003Fq-32 for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 04:51:29 -0400 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:44647) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jFDNG-0003FV-Pl for bug-gnu-emacs@gnu.org; Fri, 20 Mar 2020 04:51:27 -0400 Original-Received: by mail-lj1-x229.google.com with SMTP id w4so5511832lji.11 for ; Fri, 20 Mar 2020 01:51:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=OWxxDjJjU3CkciTytLXxzAksCmFf7ebwHicP2lK7g3w=; b=XMzOCgOaLxGA3Yb6Id3RZ66GYozt8J+4tAqCTU+o/S7cMRpdejmu8mghqXVHsTp/js cPaQkwXrjaBBHQ8KfFipQZXYO+i842lsmKvWI5iIPDDuubZE7tdauAOAF2/TUVgoeMOO AnTTD0fGTmTKOPQJFduldVwRmdxVDRvJJKwS/tIHHfCrCPbMqtL0UCo7YQyvxPv3oDWL IDRVEMvzvss+UW5rhnUx0Cg8h6fYVKhaNlKdMn2meAsZ8wieeg1USmjhTIXjUhLu5hVB tpQJd104ZLUXXVwVwnKvzTECLqLeuTfpQF1ZsdzUbo3eVPvth88+NJM4TPwFc1pBdv6+ YI8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=OWxxDjJjU3CkciTytLXxzAksCmFf7ebwHicP2lK7g3w=; b=uZVj3ocynGm84deWUevDaUhpBocJ27TDWbeVU9L+ulQHpOsBzx9x6Otb6i3bTTmawf 4Uhyqe7QNuZggdgD+7Grqo1wy1ispc7jcBX/tenjHXtXlfar9xCR/8086YT13wJj8Fhv qBS8dmurbLPoSy3sanRzqdW7yws83LukL9nvS7rPLpdXtPj5YSOxmDjfOYObBtzmV+z+ m/MTsww7jjUKd9D+oEdXymHBwKSdH9cIMnHkklvaR2Q9Jb1sxUNrXbrTEWzYMJTOE943 FBOeceThrp8/iUTWWt5y+Ot1z2JXSfDkH33+7O5PlG+pbvaWlwBiHiOAtezdVOl1QvLE O4kA== X-Gm-Message-State: ANhLgQ3fCO4N14o+0Z7bD5oIy9Od+BueIY37bHm/TZ2gWGckSG0SGrEL qUt5UfbK423ub1nJBeel7kHDFrMgnBuxHqQJpGWeNMgA X-Google-Smtp-Source: ADFU+vtnKpa8PqiTVU/7NVcfjC1Ptsd2xyIar6qp45ahndpwLrxZGyQF9CL8/NT43gNMi4jdiYsa4Ut+9MwZcg7hDM8= X-Received: by 2002:a2e:5450:: with SMTP id y16mr4909861ljd.121.1584694284765; Fri, 20 Mar 2020 01:51:24 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Fri, 20 Mar 2020 09:31:23 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:177560 Archived-At: --000000000000ebce3c05a145636e Content-Type: text/plain; charset="UTF-8" Hi, Been using a custom theme in Ubuntu 18.04 with no problems. Now tweaking my setup to also work with Windows 10, but I get the following error (even though it has a package version): *emacs error: Package lacks a "Version" or "Package-Version" header* As you can see it does have a version: ;;; michael-theme.el --- Emacs theme with a dark background and bright colors for use with a projector. ;; Author: Michael ;; Version: 0.1 ;; Keywords: michael theme I see other people have encountered the problem here: https://emacs.stackexchange.com/questions/52142/debugging-package-lacks-a-file-header https://github.com/syl20bnr/spacemacs/issues/10645 It is most perplexing when trying to solve. It one version controls one's config with GIT (as many do), GIT automatically changes CR's to CRLF's in windows when checking out the code. I am guessing the package header parser part that split fields is not identifying the line termination character. Curse the day CRLF ever became a thing! There are certinaly ways around it, but I feel many others maybe tripped up by this. Kind Regards Michael In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 built on CIRROCUMULUS Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd Windowing system distributor 'Microsoft Corp.', version 10.0.17134 Recent messages: Loading paren...done Loading c:/Users/Michael/AppData/Roaming/.emacs.d/custom.el (source)...done Turning on magit-auto-revert-mode...done Truncate long lines enabled For information about GNU Emacs and the GNU system, type C-h C-a. Truncate long lines enabled Making completion list... delete-backward-char: Text is read-only [2 times] Entering debugger... Making completion list... Quit Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static -g3'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2 Important settings: value of $LANG: ENG locale-coding-system: cp1252 Major mode: Debugger Minor modes in effect: show-paren-mode: t save-place-mode: t global-magit-file-mode: t diff-auto-refine-mode: t magit-auto-revert-mode: t global-git-commit-mode: t async-bytecomp-package-mode: t shell-dirtrack-mode: t which-key-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail cl-print debug vc-git browse-url url-util elec-pair warnings lisp-mnt paren cus-start cus-load saveplace magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode diff-mode magit-core magit-autorevert autorevert filenotify magit-margin magit-transient magit-process magit-mode git-commit transient magit-git magit-section magit-utils crm log-edit message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor async-bytecomp async shell pcomplete comint ansi-color ring server subr-x dash which-key advice whitespace cl-extra help-mode use-package use-package-ensure use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode use-package-core finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars 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 menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame 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 minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 311911 38471) (symbols 48 33537 1) (miscs 40 95 233) (strings 32 101197 2343) (string-bytes 1 2658699) (vectors 16 34044) (vector-slots 8 813898 65712) (floats 8 100 366) (intervals 56 1894 1765) (buffers 992 16)) --000000000000ebce3c05a145636e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,
Been using a custom theme in Ubuntu 18.04 wi= th no problems.=C2=A0
Now tweaking my setup to also work with Windows 1= 0, but I
get the following error (even though it has a package version):=
emacs error: Package lacks a "Version= " or "Package-Version" header

As you can see it does have a version:
;;= ; michael-theme.el --- Emacs theme with a dark background and bright colors= for use with a projector.

;; Author: Michael
;; Version: 0.1
= ;; Keywords: michael theme

I see other people have encountere= d the problem here:
https://emacs.stackexchange.c= om/questions/52142/debugging-package-lacks-a-file-header
https://github.com/syl2= 0bnr/spacemacs/issues/10645=C2=A0=C2=A0

It is most perplexing wh= en trying to solve. It one version controls one's config with GIT (as m= any do), GIT automatically changes CR's to CRLF's in windows when c= hecking out the code. I am guessing the package header parser part that spl= it fields is not identifying the line termination character.=C2=A0

Curse the day CRLF ever became a thing!
There ar= e certinaly ways around it, but I feel many others maybe tripped up by this= .

Kind Regards
Michael

In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
=C2=A0of 2019-08-29= built on CIRROCUMULUS
Repository revision: 96dd0196c28bc36779584e47fffc= ca433c9309cd
Windowing system distributor 'Microsoft Corp.', ver= sion 10.0.17134
Recent messages:
Loading paren...done
Loading c:/U= sers/Michael/AppData/Roaming/.emacs.d/custom.el (source)...done
Turning = on magit-auto-revert-mode...done
Truncate long lines enabled
For info= rmation about GNU Emacs and the GNU system, type C-h C-a.
Truncate long = lines enabled
Making completion list...
delete-backward-char: Text is= read-only [2 times]
Entering debugger...
Making completion list...Quit
Configured using:
=C2=A0'configure --without-dbus --host= =3Dx86_64-w64-mingw32
=C2=A0--without-compress-install 'CFLAGS=3D-O2= -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG= RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS THREADS L= CMS2

Important settings:
=C2=A0 value of $LANG: ENG
=C2=A0 loc= ale-coding-system: cp1252

Major mode: Debugger

Minor modes in= effect:
=C2=A0 show-paren-mode: t
=C2=A0 save-place-mode: t
=C2= =A0 global-magit-file-mode: t
=C2=A0 diff-auto-refine-mode: t
=C2=A0 = magit-auto-revert-mode: t
=C2=A0 global-git-commit-mode: t
=C2=A0 asy= nc-bytecomp-package-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 whic= h-key-mode: t
=C2=A0 override-global-mode: t
=C2=A0 tooltip-mode: t=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 m= ouse-wheel-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mo= de: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2= =A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 au= to-compression-mode: t
=C2=A0 buffer-read-only: t
=C2=A0 column-numbe= r-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t
Load-path shadows:
None found.

Features:
(shadow sort mai= l-extr emacsbug sendmail cl-print debug vc-git
browse-url url-util elec-= pair warnings lisp-mnt paren cus-start cus-load
saveplace magit-submodul= e magit-obsolete magit-blame magit-stash
magit-reflog magit-bisect magit= -push magit-pull magit-fetch magit-clone
magit-remote magit-commit magit= -sequence magit-notes magit-worktree
magit-tag magit-merge magit-branch = magit-reset magit-files magit-refs
magit-status magit magit-repos magit-= apply magit-wip magit-log
which-func imenu magit-diff smerge-mode diff-m= ode magit-core
magit-autorevert autorevert filenotify magit-margin magit= -transient
magit-process magit-mode git-commit transient magit-git magit= -section
magit-utils crm log-edit message rmc puny dired dired-loaddefs<= br>format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail
rmail-= loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc204= 5 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils
mailhead= er pcvs-util add-log with-editor async-bytecomp async shell
pcomplete co= mint ansi-color ring server subr-x dash which-key advice
whitespace cl-e= xtra help-mode use-package use-package-ensure
use-package-delight use-pa= ckage-diminish use-package-bind-key bind-key
easy-mmode use-package-core= finder-inf info package easymenu epg-config
url-handlers url-parse auth= -source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache ur= l-vars seq byte-opt gv bytecomp
byte-compile cconv cl-loaddefs cl-lib ti= me-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks li= sp-float-type mwheel dos-w32
ls-lisp disp-table term/w32-win w32-win w32= -vars term/common-win
tool-bar dnd fontset image regexp-opt fringe tabul= ated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode re= gister page
menu-bar rfn-eshadow isearch timer select scroll-bar mouse j= it-lock
font-lock syntax facemenu font-core term/tty-colors frame cl-gen= eric
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 minibuffer=
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
t= ext-properties overlay sha1 md5 base64 format env code-pages mule
custom= widget hashtable-print-readable backquote threads w32notify w32
lcms2 m= ulti-tty make-network-process emacs)

Memory information:
((conses= 16 311911 38471)
=C2=A0(symbols 48 33537 1)
=C2=A0(miscs 40 95 233)<= br>=C2=A0(strings 32 101197 2343)
=C2=A0(string-bytes 1 2658699)
=C2= =A0(vectors 16 34044)
=C2=A0(vector-slots 8 813898 65712)
=C2=A0(floa= ts 8 100 366)
=C2=A0(intervals 56 1894 1765)
=C2=A0(buffers 992 16))<= br>
--000000000000ebce3c05a145636e--