spacemacs icon indicating copy to clipboard operation
spacemacs copied to clipboard

`vim-powerline` startup error

Open caiquefigueiredo opened this issue 2 years ago • 20 comments

Description :octocat:

After updating emacs to the latest development branch, I was getting the following error on every startup:

(Spacemacs) --> installing package: vim-powerline@spacemacs-modeline... [1/1]
Fetcher: file
Source: nil

/Users/haru/.emacs.d/.cache/quelpa/build/vim-powerline/vim-colors.el -> /var/folders/ts/5p4gxt6941q3mbmflmmrqm2w0000gn/T/vim-powerlineA7SmZK/vim-powerline-20220721.194245/vim-colors.el
/Users/haru/.emacs.d/.cache/quelpa/build/vim-powerline/vim-powerline-theme.el -> /var/folders/ts/5p4gxt6941q3mbmflmmrqm2w0000gn/T/vim-powerlineA7SmZK/vim-powerline-20220721.194245/vim-powerline-theme.el
Error getting PACKAGE-DESC: (file-missing Opening input file No such file or directory /Users/haru/.emacs.d/.cache/quelpa/packages/vim-powerline-20220721.194245.tar)
(Spacemacs) Error: 
An error occurred while installing vim-powerline (error: (wrong-type-argument package-desc nil))

Reproduction guide :beetle:

  • Start Emacs with latest develop release

Observed behaviour: :eyes: :broken_heart: Emacs starts and is otherwise functional

Expected behaviour: :heart: :smile: Emacs starts without errors

System Info :computer:

  • OS: darwin
  • Emacs: 28.1
  • Spacemacs: 0.999.0
  • Spacemacs branch: fix-vim-powerline (rev. baf1256b0)
  • Graphic display: nil
  • Running in daemon: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(asciidoc
 (auto-completion :variables auto-completion-enable-snippets-in-popup t)
 (c-c++ :variables c-c++-backend 'lsp-clangd)
 (clojure :variables clojure-backend 'cider clojure-enable-clj-refactor t clojure-enable-linters
          '(clj-kondo joker)
          clojure-indent-style 'always-indent)
 coffeescript
 (colors :variables colors-enable-nyan-cat-progress-bar nil colors-colorize-identifiers nil)
 command-log d
 (dhall :variables dhall-format-at-save nil dhall-use-header-line nil dhall-command nil)
 (docker :variables docker-dockerfile-backend 'lsp)
 emacs-lisp emoji git
 (go :variables go-tab-width 2 go-backend 'lsp)
 (haskell :variables haskell-completion-backend 'lsp)
 helm html
 (java :variables java-backend 'lsp)
 javascript
 (json :variabels json-backend nil)
 (lsp :variables lsp-enable-file-watchers t lsp-file-watch-threshold 10000 lsp-log-io t)
 markdown multiple-cursors
 (osx :variables osx-right-command-as 'super)
 pass pdf perl5 python racket
 (ruby :variables ruby-backend 'nil)
 rust
 (scala :variables scala-backend 'scala-metals)
 (scheme :variables scheme-implementations
         '(guile racket))
 (shell :variables shell-default-shell 'vterm shell-default-term-shell "zsh" vterm-clear-scrollback-when-clearing t)
 (spacemacs-layouts :variables spacemacs-layouts-restrict-spc-tab t persp-autokill-buffer-on-remove 'kill-weak)
 (sql :variables sql-backend 'lsp sql-capitalize-keywords t)
 syntax-checking
 (terraform :variables terraform-backend 'lsp)
 themes-megapack
 (treemacs :variables treemacs-use-scope-type 'Perspectives)
 unicode-fonts
 (version-control :variables version-control-diff-side 'left)
 xclipboard yaml
 (zig :variables zls-backend 'lsp))
  • System configuration features: ACL GLIB GMP GNUTLS JPEG JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS ZLIB

Backtrace :paw_prints:

caiquefigueiredo avatar Jul 21 '22 23:07 caiquefigueiredo

you're on the wrong branch.

lebensterben avatar Jul 21 '22 23:07 lebensterben

Reported the issue in the PRs branch by mistake. This happened on develop

caiquefigueiredo avatar Jul 21 '22 23:07 caiquefigueiredo

try clearing ~/.emacs.d/.cache/quelpa/packages first.

lebensterben avatar Jul 21 '22 23:07 lebensterben

Same error. I did clear the entire ~/.emacs.d/.cache before trying syl20bnr/spacemacs#15653. Would that have unwanted side-effects?

caiquefigueiredo avatar Jul 21 '22 23:07 caiquefigueiredo

try a fresh install then...

lebensterben avatar Jul 21 '22 23:07 lebensterben

Took a while, but same error. If I'm the only one facing this issue, I'm cool with closing it. I'll just keep my build with my fork.

caiquefigueiredo avatar Jul 22 '22 00:07 caiquefigueiredo

Although this was from a clean develop (not counting my .spacemacs)

caiquefigueiredo avatar Jul 22 '22 00:07 caiquefigueiredo

Note that your changes are erroneous....

lebensterben avatar Jul 22 '22 00:07 lebensterben

Maybe worth nothing: the error only showed up after restarting emacs. During the reinstall, everything was ok. But after I've closed emacs and reopened it, the error showed up.

caiquefigueiredo avatar Jul 22 '22 00:07 caiquefigueiredo

Note that your changes are erroneous....

In the sense it breaks? I took that fix out of code I've seen around the repo. Such as this one

caiquefigueiredo avatar Jul 22 '22 00:07 caiquefigueiredo

🧐

lebensterben avatar Jul 22 '22 00:07 lebensterben

There might be something a little deeper at play here. Using a clean develop branch, I'm now getting the following:

(Spacemacs) --> installing package: zonokai-emacs@themes-megapack... [1/2]
Fetcher: github
Source: ZehCnaS34/zonokai-emacs

Updating /Users/haru/.emacs.d/.cache/quelpa/build/zonokai-emacs/
/Users/haru/.emacs.d/.cache/quelpa/build/zonokai-emacs/zonokai-blue-theme.el -> /var/folders/ts/5p4gxt6941q3mbmflmmrqm2w0000gn/T/zonokai-emacsI6O7tw/zonokai-emacs-20160321.2325/zonokai-blue-theme.el
/Users/haru/.emacs.d/.cache/quelpa/build/zonokai-emacs/zonokai-red-theme.el -> /var/folders/ts/5p4gxt6941q3mbmflmmrqm2w0000gn/T/zonokai-emacsI6O7tw/zonokai-emacs-20160321.2325/zonokai-red-theme.el
/Users/haru/.emacs.d/.cache/quelpa/build/zonokai-emacs/zonokai-theme.el -> /var/folders/ts/5p4gxt6941q3mbmflmmrqm2w0000gn/T/zonokai-emacsI6O7tw/zonokai-emacs-20160321.2325/zonokai-theme.el
/Users/haru/.emacs.d/.cache/quelpa/build/zonokai-emacs/zonokai.el -> /var/folders/ts/5p4gxt6941q3mbmflmmrqm2w0000gn/T/zonokai-emacsI6O7tw/zonokai-emacs-20160321.2325/zonokai.el
Error getting PACKAGE-DESC: (file-missing Opening input file No such file or directory /Users/haru/.emacs.d/.cache/quelpa/packages/zonokai-emacs-20160321.2325.tar)
(Spacemacs) Error: 
An error occurred while installing zonokai-emacs (error: (wrong-type-argument package-desc nil))

(Spacemacs) --> installing package: vim-powerline@spacemacs-modeline... [2/2]
Fetcher: file
Source: nil

/Users/haru/.emacs.d/.cache/quelpa/build/vim-powerline/vim-colors.el -> /var/folders/ts/5p4gxt6941q3mbmflmmrqm2w0000gn/T/vim-powerlineKRATVB/vim-powerline-20220721.205145/vim-colors.el
/Users/haru/.emacs.d/.cache/quelpa/build/vim-powerline/vim-powerline-theme.el -> /var/folders/ts/5p4gxt6941q3mbmflmmrqm2w0000gn/T/vim-powerlineKRATVB/vim-powerline-20220721.205145/vim-powerline-theme.el
Error getting PACKAGE-DESC: (file-missing Opening input file No such file or directory /Users/haru/.emacs.d/.cache/quelpa/packages/vim-powerline-20220721.205145.tar)
(Spacemacs) Error: 
An error occurred while installing vim-powerline (error: (wrong-type-argument package-desc nil))

Basically the same error, but with the github fetcher involving ZehCnaS34/zonokai-emacs

caiquefigueiredo avatar Jul 22 '22 00:07 caiquefigueiredo

Rather strange.

lebensterben avatar Jul 22 '22 00:07 lebensterben

please install gnu tar and retry.

lebensterben avatar Jul 22 '22 05:07 lebensterben

The same error, it seems cannot get package from github.

humorForus avatar Jul 22 '22 10:07 humorForus

the same error for me

prepor avatar Jul 22 '22 13:07 prepor

Indeed. Adding gnutar from nixpgks into my home-manager setup made it work 🎉 Thanks for the help, @lebensterben

caiquefigueiredo avatar Jul 22 '22 16:07 caiquefigueiredo

@prepor @humorForus

Are you running bugOS? Try to install gnu tar and retry.

lebensterben avatar Jul 22 '22 17:07 lebensterben

I had the same issue, brew install gnu-tar solved it for me. Thanks.

ograycode avatar Jul 22 '22 18:07 ograycode

Although installing gnu-tar fixes the issue, it turns out that I made a mistake in a recent commit.

The latest commit should have fixed it without requiring of gnu-tar on macOS or Windows.

lebensterben avatar Jul 23 '22 08:07 lebensterben

I just recently experienced the same problem on macOS, and installing gnu-tar fixed it. Here are the details as best I recall (I was not taking notes).

Started with Emacs 28.1 where I don't recall having the error.

Updated Emacs to 28.2 and got errors. Here are snippets from the *Messages* buffer:

Error getting PACKAGE-DESC: (wrong-type-argument stringp nil)
(Spacemacs) Error:
An error occurred while installing vim-powerline (error: (wrong-type-argument package-desc nil))
...
Error getting PACKAGE-DESC: (wrong-type-argument stringp nil)
(Spacemacs) Error:
An error occurred while installing inspector (error: (wrong-type-argument package-desc nil))

Updated Spacemacs/develop to 913962b3e, restarted, and had the same errors.

Installed gnu-tar and Spacemacs started cleanly, no errors in ~Messages~ buffer.

mirkov avatar Nov 23 '22 21:11 mirkov

I'm on Windows and am having this same issue with a fresh install of emacs 28.1, Spacemacs develop branch (commit f1c7979b6). But I can't figure out how to install gnu-tar on Windows.

Prometheus77 avatar Jan 05 '23 16:01 Prometheus77

I'm on Windows and am having this same issue with a fresh install of emacs 28.1, Spacemacs develop branch (commit f1c7979b6). But I can't figure out how to install gnu-tar on Windows.

There is a section in readme about installing GNU tar on Windows via scoop.sh

lebensterben avatar Jan 05 '23 17:01 lebensterben

I had the same issue on MacOS and brew install gnu-tar solved that.

adeltby avatar Mar 12 '23 12:03 adeltby