chrisbarrett / skeletor.el

Powerful project skeletons for Emacs
GNU General Public License v3.0
126 stars 17 forks source link

`make install`fails with `Wrong type argument: arrayp, nil` #17

Closed ghost closed 10 years ago

ghost commented 10 years ago

Hi Chris!

Cloning the repo and running make && make install fails with Wrong type argument: arrayp, nil. Here is the full log:

% make && make install
cask install
Making version-control local to dash-autoloads.el while let-bound!
Wrote ~/src/skeletor/.cask/24.4.50.1/elpa/dash-20140811.523/dash-autoloads.el
Wrote ~/src/skeletor/.cask/24.4.50.1/elpa/s-20140910.334/s-autoloads.el
Wrote ~/src/skeletor/.cask/24.4.50.1/elpa/f-20140828.716/f-autoloads.el
Making generated-autoload-file local to  *autoload-file* while let-bound!
Wrote ~/src/skeletor/.cask/24.4.50.1/elpa/org-plus-contrib-20140922/org-plus-contrib-autoloads.el
Wrote ~/src/skeletor/.cask/24.4.50.1/elpa/org-plus-contrib-20140922/org-loaddefs.el
Wrote ~/src/skeletor/.cask/24.4.50.1/elpa/epl-20140823.609/epl-autoloads.el
Wrote ~/src/skeletor/.cask/24.4.50.1/elpa/pkg-info-20140610.630/pkg-info-autoloads.el
Wrote ~/src/skeletor/.cask/24.4.50.1/elpa/flycheck-20140922.757/flycheck-autoloads.el
Wrote ~/src/skeletor/.cask/24.4.50.1/elpa/flycheck-cask-20140814.116/flycheck-cask-autoloads.el
cask package dist
Wrote ~/src/skeletor/dist/skeletor-readme.txt
cask pkg-file
cp -f skeletor-pkg.el dist/skeletor-pkg.el
cp -f skeletor.el dist/skeletor.el
cask exec emacs --batch -Q \
    -l org -l ox-texinfo \
    --file=doc/skeletor.org -f org-texinfo-export-to-info
Saving file ~/src/skeletor/doc/skeletor.texi...
Wrote ~/src/skeletor/doc/skeletor.texi
Processing Texinfo file ./skeletor.texi...
Process completed.
cp -f doc/skeletor.info dist/skeletor.info
cp -rf project-skeletons dist/project-skeletons
tar -cvf dist/skeletor-1.4.0.tar -C dist --exclude skeletor-1.4.0.tar .
a .
a ./project-skeletons
a ./skeletor-pkg.el
a ./skeletor-readme.txt
a ./skeletor.el
a ./skeletor.info
a ./project-skeletons/elisp-package
a ./project-skeletons/elisp-package-with-docs
a ./project-skeletons/generic
a ./project-skeletons/haskell-project
a ./project-skeletons/python-library
a ./project-skeletons/python-library/.gitignore
a ./project-skeletons/python-library/__init__.py
a ./project-skeletons/python-library/CONTRIBUTING.md
a ./project-skeletons/python-library/INSTALL
a ./project-skeletons/python-library/Makefile
a ./project-skeletons/python-library/README.md
a ./project-skeletons/haskell-project/.gitignore
a ./project-skeletons/haskell-project/CONTRIBUTING.md
a ./project-skeletons/haskell-project/README.md
a ./project-skeletons/generic/CONTRIBUTING.md
a ./project-skeletons/generic/README.md
a ./project-skeletons/elisp-package-with-docs/.dir-locals.el
a ./project-skeletons/elisp-package-with-docs/.gitignore
a ./project-skeletons/elisp-package-with-docs/.travis.yml
a ./project-skeletons/elisp-package-with-docs/__PROJECT-NAME__.el
a ./project-skeletons/elisp-package-with-docs/Cask
a ./project-skeletons/elisp-package-with-docs/CONTRIBUTING.md
a ./project-skeletons/elisp-package-with-docs/doc
a ./project-skeletons/elisp-package-with-docs/Makefile
a ./project-skeletons/elisp-package-with-docs/README.md
a ./project-skeletons/elisp-package-with-docs/test
a ./project-skeletons/elisp-package-with-docs/test/__PROJECT-NAME__-tests.el
a ./project-skeletons/elisp-package-with-docs/doc/__PROJECT-NAME__.org
a ./project-skeletons/elisp-package-with-docs/doc/fdl-1.3.texi
a ./project-skeletons/elisp-package/.dir-locals.el
a ./project-skeletons/elisp-package/.gitignore
a ./project-skeletons/elisp-package/.travis.yml
a ./project-skeletons/elisp-package/__PROJECT-NAME__.el
a ./project-skeletons/elisp-package/Cask
a ./project-skeletons/elisp-package/CONTRIBUTING.md
a ./project-skeletons/elisp-package/Makefile
a ./project-skeletons/elisp-package/README.md
a ./project-skeletons/elisp-package/test
a ./project-skeletons/elisp-package/test/__PROJECT-NAME__-tests.el
cask pkg-file
cp -f skeletor-pkg.el dist/skeletor-pkg.el
cp -f skeletor.el dist/skeletor.el
tar -cvf dist/skeletor-1.4.0.tar -C dist --exclude skeletor-1.4.0.tar .
a .
a ./project-skeletons
a ./skeletor-pkg.el
a ./skeletor-readme.txt
a ./skeletor.el
a ./skeletor.info
a ./project-skeletons/elisp-package
a ./project-skeletons/elisp-package-with-docs
a ./project-skeletons/generic
a ./project-skeletons/haskell-project
a ./project-skeletons/python-library
a ./project-skeletons/python-library/.gitignore
a ./project-skeletons/python-library/__init__.py
a ./project-skeletons/python-library/CONTRIBUTING.md
a ./project-skeletons/python-library/INSTALL
a ./project-skeletons/python-library/Makefile
a ./project-skeletons/python-library/README.md
a ./project-skeletons/haskell-project/.gitignore
a ./project-skeletons/haskell-project/CONTRIBUTING.md
a ./project-skeletons/haskell-project/README.md
a ./project-skeletons/generic/CONTRIBUTING.md
a ./project-skeletons/generic/README.md
a ./project-skeletons/elisp-package-with-docs/.dir-locals.el
a ./project-skeletons/elisp-package-with-docs/.gitignore
a ./project-skeletons/elisp-package-with-docs/.travis.yml
a ./project-skeletons/elisp-package-with-docs/__PROJECT-NAME__.el
a ./project-skeletons/elisp-package-with-docs/Cask
a ./project-skeletons/elisp-package-with-docs/CONTRIBUTING.md
a ./project-skeletons/elisp-package-with-docs/doc
a ./project-skeletons/elisp-package-with-docs/Makefile
a ./project-skeletons/elisp-package-with-docs/README.md
a ./project-skeletons/elisp-package-with-docs/test
a ./project-skeletons/elisp-package-with-docs/test/__PROJECT-NAME__-tests.el
a ./project-skeletons/elisp-package-with-docs/doc/__PROJECT-NAME__.org
a ./project-skeletons/elisp-package-with-docs/doc/fdl-1.3.texi
a ./project-skeletons/elisp-package/.dir-locals.el
a ./project-skeletons/elisp-package/.gitignore
a ./project-skeletons/elisp-package/.travis.yml
a ./project-skeletons/elisp-package/__PROJECT-NAME__.el
a ./project-skeletons/elisp-package/Cask
a ./project-skeletons/elisp-package/CONTRIBUTING.md
a ./project-skeletons/elisp-package/Makefile
a ./project-skeletons/elisp-package/README.md
a ./project-skeletons/elisp-package/test
a ./project-skeletons/elisp-package/test/__PROJECT-NAME__-tests.el
emacs --batch -Q -l package \
    -f package-initialize  --eval '(package-install-file "dist/skeletor-1.4.0.tar")'
Parsing tar file...
Parsing tar file...done
Wrong type argument: arrayp, nil
make: *** [install] Error 255

I ran emacs -Q -l package -f package-initialize created a function pifthat runs (package-install-file "dist/skeletor-1.4.0.tar"), here is the trace:

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
  tar--check-descriptor(nil)
  tar-get-file-descriptor("./.-pkg.el")
  package-tar-file-info()
  package-install-from-buffer()
  package-install-file("dist/skeletor-1.4.0.tar")
  pif()
  eval((pif) nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)

As you might have guessed I don't have much experience debugging emacs lisp, but let me know if I can help you with this!

PS: GNU Emacs 24.4.50.1, on OSX 10.9.4, installed with brew install emacs --use-git-head, if that's relevant.

chrisbarrett commented 10 years ago

Thanks for the report. I've updated the makefile and added MELPA installation instructions.

ghost commented 10 years ago

Thanks!