syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

`vim-powerline` startup error #15654

Closed caiquefigueiredo closed 1 year ago

caiquefigueiredo commented 2 years ago

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:

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

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

System Info :computer:

Backtrace :paw_prints:

lebensterben commented 2 years ago

you're on the wrong branch.

caiquefigueiredo commented 2 years ago

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

lebensterben commented 2 years ago

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

caiquefigueiredo commented 2 years ago

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

lebensterben commented 2 years ago

try a fresh install then...

caiquefigueiredo commented 2 years ago

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 commented 2 years ago

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

lebensterben commented 2 years ago

Note that your changes are erroneous....

caiquefigueiredo commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

🧐

caiquefigueiredo commented 2 years ago

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 commented 2 years ago

Rather strange.

lebensterben commented 2 years ago

please install gnu tar and retry.

humorForus commented 2 years ago

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

prepor commented 2 years ago

the same error for me

caiquefigueiredo commented 2 years ago

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

lebensterben commented 2 years ago

@prepor @humorForus

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

ograycode commented 2 years ago

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

lebensterben commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

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.

lebensterben commented 1 year ago

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

adeltby commented 1 year ago

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