radian-software / straight.el

🍀 Next-generation, purely functional package manager for the Emacs hacker.
MIT License
2.76k stars 151 forks source link

Can't install popup.el, repo has empty files #1128

Closed nlw0 closed 1 year ago

nlw0 commented 1 year ago

I'm trying to install popup.el (It's a dependency from https://melpa.org/#/julia-snail ). It seems that straight-use-package runs fine, but then require says "...elc failed to provide feature 'popup'. I took a look at thestraight/repos/popup-el`, and there are empty files there, and git commands don't work.

drwxrwxr-x 2 user user 4,0K okt 30 20:38 tests/
-rw-rw-r-- 1 user user    0 okt 30 20:38 README.md
-rw-rw-r-- 1 user user    0 okt 30 20:38 popup.el
-rw-rw-r-- 1 user user    0 okt 30 20:38 Makefile
-rw-rw-r-- 1 user user    0 okt 30 20:38 LICENSE
drwxrwxr-x 3 user user 4,0K okt 30 20:38 etc/
-rw-rw-r-- 1 user user    0 okt 30 20:38 Eask

Anything wrong when cloning the project?...

progfolio commented 1 year ago

Please evaluate the following in your *scratch* buffer and share the contents of the results buffer:

Test Case ```emacs-lisp (straight-bug-report :post-bootstrap (straight-use-package 'popup) (let ((default-directory (straight--build-dir "popup"))) (message "%S" (straight--process-run "ls" "-lah")))) ```
Output ```emacs-lisp Bootstrapping straight.el... Bootstrapping straight.el...done Looking for gnu-elpa-mirror recipe → Cloning melpa... Looking for gnu-elpa-mirror recipe → Cloning melpa...done Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror... Looking for nongnu-elpa recipe → Cloning gnu-elpa-mirror...done Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa... Looking for emacsmirror-mirror recipe → Cloning nongnu-elpa...done Looking for emacsmirror-mirror recipe → Cloning el-get... Looking for emacsmirror-mirror recipe → Cloning el-get...done Looking for straight recipe → Cloning emacsmirror-mirror... Looking for straight recipe → Cloning emacsmirror-mirror...done Building straight... Building straight...done Test run with version: prerelease (HEAD -> develop, origin/develop) b3760f5 2023-10-21 Cloning popup-el (for popup)... Cloning popup-el (for popup)...done Building popup... Building popup...done (0 "total 80K drwxr-xr-x 2 n n 100 Nov 1 17:07 . drwxr-xr-x 4 n n 80 Nov 1 17:07 .. -rw-r--r-- 1 n n 538 Nov 1 17:07 popup-autoloads.el lrwxrwxrwx 1 n n 61 Nov 1 17:07 popup.el -> /tmp/straight.el-test-dxGPKk/straight/repos/popup-el/popup.el -rw-r--r-- 1 n n 73K Nov 1 17:07 popup.elc " nil) Packages: "straight" n/a develop b3760f5 2023-10-21 "org-elpa" n/a n/a "melpa" n/a master 327f330c 2023-10-29 "gnu-elpa-mirror" n/a master 16c8e4a 2023-10-31 "nongnu-elpa" n/a main e5adab3 2023-10-20 "el-get" melpa master a5ba5852 2023-10-20 "emacsmirror-mirror" n/a master 7410c31 2023-10-30 "popup" melpa master 2868885 2023-09-06 ```
nlw0 commented 1 year ago

I eventually wiped the directory out, and then it worked. I believe what happened is that I had a network issue while cloning the repo, and was left with these empty files... Perhaps a suggestion to verify if the repo is corrupt and check it out again if necessary. Thanks for the help!

raxod502 commented 1 year ago

I wonder how that's even possible. Git populates the .git directory first before checking out any files. I'm not sure how you would end up with a repository that has files checked out, but no .git directory.