Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim-powerline startup error #15654

Closed
caiquefigueiredo opened this issue Jul 21, 2022 · 24 comments · Fixed by #15874
Closed

vim-powerline startup error #15654

caiquefigueiredo opened this issue Jul 21, 2022 · 24 comments · Fixed by #15874

Comments

@caiquefigueiredo
Copy link

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 🪲

  • Start Emacs with latest develop release

Observed behaviour: 👀 💔
Emacs starts and is otherwise functional

Expected behaviour: ❤️ 😄
Emacs starts without errors

System Info 💻

  • OS: darwin
  • Emacs: 28.1
  • Spacemacs: 0.999.0
  • Spacemacs branch: fix-vim-powerline (rev. baf1256)
  • 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 🐾

@lebensterben

This comment was marked as resolved.

@caiquefigueiredo

This comment was marked as resolved.

@lebensterben
Copy link
Collaborator

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

@caiquefigueiredo
Copy link
Author

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

@lebensterben
Copy link
Collaborator

try a fresh install then...

@caiquefigueiredo
Copy link
Author

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
Copy link
Author

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

@lebensterben
Copy link
Collaborator

Note that your changes are erroneous....

@caiquefigueiredo
Copy link
Author

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
Copy link
Author

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

@lebensterben
Copy link
Collaborator

🧐

@caiquefigueiredo
Copy link
Author

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

@lebensterben
Copy link
Collaborator

Rather strange.

@lebensterben
Copy link
Collaborator

please install gnu tar and retry.

@humorForus
Copy link

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

@prepor
Copy link

prepor commented Jul 22, 2022

the same error for me

@caiquefigueiredo
Copy link
Author

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

@lebensterben
Copy link
Collaborator

@prepor @humorForus

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

@ograycode
Copy link

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

@lebensterben
Copy link
Collaborator

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.

@mirkov
Copy link

mirkov commented Nov 23, 2022

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.

@Prometheus77
Copy link

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

@lebensterben
Copy link
Collaborator

I'm on Windows and am having this same issue with a fresh install of emacs 28.1, Spacemacs develop branch (commit f1c7979). 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 added a commit that referenced this issue Jan 6, 2023
There are reports of unexpected failure when installing packages on systems with BSD Tar.

So from now on GNU Tar is a REQUIRED dependency.

fixes #15654
@adeltby

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants