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

Spacelpa problem with Emacs 26 #10438

Open
NightMachinary opened this Issue Mar 6, 2018 · 9 comments

Comments

Projects
None yet
7 participants
@NightMachinary

NightMachinary commented Mar 6, 2018

Description :octocat:

Emacs 26 doesn't work with spacelpa.

Reproduction guide 🐞

  • Start Emacs
  • The following error is shown:
Warning (tar): Extracted ‘� �’, a link, as a normal file
Warning (initialization): An error occurred while loading ‘/Users/evar/.emacs.d/init.el’:

Args out of range:  *tar-data spacelpa-0.300.tar.gz*, 513, 234451831318

System Info 💻

  • OS: darwin
  • Emacs: 26.0.9
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. 5c251f6)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(javascript vimscript
            (rust :variables rust-format-on-save t)
            crystal
            (haskell :variables haskell-enable-hindent t)
            html python
            (scala :variables scala-auto-insert-asterisk-in-comments t scala-use-unicode-arrows t scala-auto-insert-asterisk-in-comments t)
            autohotkey kotlin helm
            (auto-completion :variables auto-completion-enable-help-tooltip t)
            emacs-lisp
            (ibuffer :variables ibuffer-group-buffers-by 'modes)
            coq emoji
            (unicode-fonts :variables unicode-fonts-force-multi-color-on-mac t)
            git
            (java :variables java-backend 'ensime)
            markdown org
            (shell :variables shell-default-height 30 shell-default-position 'bottom)
            spell-checking syntax-checking version-control osx racket clojure)
@dp12

This comment has been minimized.

Show comment
Hide comment
@dp12

dp12 Mar 9, 2018

I'm seeing the same thing on Windows with Emacs 26.0.91. I had to set dotspacemacs-use-spacelpa nil to get around the issue for now.

Warning (tar): Extracted ‘� �’, a link, as a normal file
Warning (initialization): An error occurred while loading ‘c:/home/.emacs.d/init.el’:

Args out of range: tar-data spacelpa-0.300.tar.gz, 513, 234451831318

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

dp12 commented Mar 9, 2018

I'm seeing the same thing on Windows with Emacs 26.0.91. I had to set dotspacemacs-use-spacelpa nil to get around the issue for now.

Warning (tar): Extracted ‘� �’, a link, as a normal file
Warning (initialization): An error occurred while loading ‘c:/home/.emacs.d/init.el’:

Args out of range: tar-data spacelpa-0.300.tar.gz, 513, 234451831318

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file. Start Emacs with
the ‘--debug-init’ option to view a complete error backtrace.

@NightMachinary

This comment has been minimized.

Show comment
Hide comment
@NightMachinary

NightMachinary Mar 10, 2018

The issue is present with Emacs 27.0.50 as well:

System Info 💻

  • OS: darwin
  • Emacs: 27.0.50
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. 0fa3658)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(javascript vimscript
            (rust :variables rust-format-on-save t)
            crystal
            (haskell :variables haskell-enable-hindent t)
            html python chrome
            (scala :variables scala-auto-insert-asterisk-in-comments t scala-use-unicode-arrows t scala-auto-insert-asterisk-in-comments t)
            autohotkey kotlin helm
            (auto-completion :variables auto-completion-enable-help-tooltip t auto-completion-enable-snippets-in-popup t)
            emacs-lisp
            (ibuffer :variables ibuffer-group-buffers-by 'modes)
            coq emoji
            (unicode-fonts :variables unicode-fonts-force-multi-color-on-mac t)
            git
            (java :variables java-backend 'ensime)
            markdown org
            (shell :variables shell-default-height 30 shell-default-position 'bottom)
            spell-checking
            (syntax-checking :variables syntax-checking-enable-tooltips t)
            (elm :variables elm-sort-imports-on-save t elm-format-on-save t)
            version-control osx racket clojure)
  • System configuration features: RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS

NightMachinary commented Mar 10, 2018

The issue is present with Emacs 27.0.50 as well:

System Info 💻

  • OS: darwin
  • Emacs: 27.0.50
  • Spacemacs: 0.300.0
  • Spacemacs branch: develop (rev. 0fa3658)
  • Graphic display: t
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(javascript vimscript
            (rust :variables rust-format-on-save t)
            crystal
            (haskell :variables haskell-enable-hindent t)
            html python chrome
            (scala :variables scala-auto-insert-asterisk-in-comments t scala-use-unicode-arrows t scala-auto-insert-asterisk-in-comments t)
            autohotkey kotlin helm
            (auto-completion :variables auto-completion-enable-help-tooltip t auto-completion-enable-snippets-in-popup t)
            emacs-lisp
            (ibuffer :variables ibuffer-group-buffers-by 'modes)
            coq emoji
            (unicode-fonts :variables unicode-fonts-force-multi-color-on-mac t)
            git
            (java :variables java-backend 'ensime)
            markdown org
            (shell :variables shell-default-height 30 shell-default-position 'bottom)
            spell-checking
            (syntax-checking :variables syntax-checking-enable-tooltips t)
            (elm :variables elm-sort-imports-on-save t elm-format-on-save t)
            version-control osx racket clojure)
  • System configuration features: RSVG IMAGEMAGICK NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS
@kyuwoo-choi

This comment has been minimized.

Show comment
Hide comment
@kyuwoo-choi

kyuwoo-choi Mar 18, 2018

here's the same issue with emacs 25.3.2, develop branch, dotspacemacs-use-spacelpa t

kyuwoo-choi commented Mar 18, 2018

here's the same issue with emacs 25.3.2, develop branch, dotspacemacs-use-spacelpa t

@kyuwoo-choi

This comment has been minimized.

Show comment
Hide comment
@kyuwoo-choi

kyuwoo-choi Mar 29, 2018

I fixed this by chmod 777 ~/.emacs.d/.cache/stable-elpa/your.emacs.version/spacelpa-0.300.tar.gz.

I found the file permission is "600"??? too restricted.
So I just gave it a try dotspacemacs-use-spacelpa t after I changed the permission.
And BOOM!!!

I got a luck today 🤣

nah... It doesn't fix. It was a stupid mistake.

kyuwoo-choi commented Mar 29, 2018

I fixed this by chmod 777 ~/.emacs.d/.cache/stable-elpa/your.emacs.version/spacelpa-0.300.tar.gz.

I found the file permission is "600"??? too restricted.
So I just gave it a try dotspacemacs-use-spacelpa t after I changed the permission.
And BOOM!!!

I got a luck today 🤣

nah... It doesn't fix. It was a stupid mistake.

@sutram

This comment has been minimized.

Show comment
Hide comment
@sutram

sutram Mar 31, 2018

Same here with 25.3.1 on OS X. In the file .emacs.d/init.el, I commented out line 32
;; (configuration-layer/stable-elpa-download-tarball)

which I suppose is the same as dotspacemacs-use-spacelpa nil ?

and it worked

sutram commented Mar 31, 2018

Same here with 25.3.1 on OS X. In the file .emacs.d/init.el, I commented out line 32
;; (configuration-layer/stable-elpa-download-tarball)

which I suppose is the same as dotspacemacs-use-spacelpa nil ?

and it worked

@thanhvg

This comment has been minimized.

Show comment
Hide comment
@thanhvg

thanhvg Apr 10, 2018

I found a workaround
After spacemacs crashes go to ~/.emacs.d/.cache/stable-elpa/YOUR_EMACS_VERSION mine is
~/.emacs.d/.cache/stable-elpa/25.3.2
you find a tarball spacelpa-0.300.tar.gz, extract it you will have the repo folder with the same name /spacelpa-0.300
Create a file name version in the same folder with the tarball, put a string 0.300 to it and save.
Restart spacemacs it should work.
I think you can safely delete the tarball
I got it from here #9958

thanhvg commented Apr 10, 2018

I found a workaround
After spacemacs crashes go to ~/.emacs.d/.cache/stable-elpa/YOUR_EMACS_VERSION mine is
~/.emacs.d/.cache/stable-elpa/25.3.2
you find a tarball spacelpa-0.300.tar.gz, extract it you will have the repo folder with the same name /spacelpa-0.300
Create a file name version in the same folder with the tarball, put a string 0.300 to it and save.
Restart spacemacs it should work.
I think you can safely delete the tarball
I got it from here #9958

@bhipple

This comment has been minimized.

Show comment
Hide comment
@bhipple

bhipple May 8, 2018

Thanks @thanhvg! This worked for me:

$ cd ~/.emacs.d/.cache/stable-elpa/25.3.1
$ tar -xzvf spacelpa-0.300.tar.gz
$ echo -n "0.300" > version

Notably, the tarball is just extracted in the same dir, and if the version file has a newline, spacemacs won't recognize it!

bhipple commented May 8, 2018

Thanks @thanhvg! This worked for me:

$ cd ~/.emacs.d/.cache/stable-elpa/25.3.1
$ tar -xzvf spacelpa-0.300.tar.gz
$ echo -n "0.300" > version

Notably, the tarball is just extracted in the same dir, and if the version file has a newline, spacemacs won't recognize it!

@kyuwoo-choi

This comment has been minimized.

Show comment
Hide comment
@kyuwoo-choi

kyuwoo-choi May 8, 2018

HA! thanks @bhipple
for me @thanhvg solution was not working because my version file doesn't have a newline!

👍 for you mentioned a newline.

kyuwoo-choi commented May 8, 2018

HA! thanks @bhipple
for me @thanhvg solution was not working because my version file doesn't have a newline!

👍 for you mentioned a newline.

@PierreR

This comment has been minimized.

Show comment
Hide comment
@PierreR

PierreR Sep 6, 2018

Contributor

@syl20bnr Any hope for a proper fix anytime soon ?

Contributor

PierreR commented Sep 6, 2018

@syl20bnr Any hope for a proper fix anytime soon ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment