amake / macports.el

An Emacs porcelain for MacPorts
GNU General Public License v3.0
12 stars 2 forks source link

Cannot open load file" "No such file or directory" "macports-reclaim #2

Closed ferdy closed 2 years ago

ferdy commented 2 years ago
Ciao,

I got the error in the subject as soon as I type "M-x macports"

I use to manage packages via paradox:

macports                               h 20220509.1326        installed                                                A porcelain for MacPorts

debug-on-error log follows:

 Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "macports-reclaim")
  command-execute(macports record)
  execute-extended-command(nil "macports")
  smex-read-and-run(("macports" "paradox-list-packages" "find-function" "system-log--log-open-log" "log-view-mode" "Info-menu" "Info-toc" "info-finder" "emacs-uptime" "emacs-version" "query-replace" "comment-region" "ediff-regions-linewise" "highlight-compare-buffers" "revert-buffer" "global-set-key" "run-python" "insert-file" "magit-status" "load-file" "eval-buffer" "magit-commit" "ag" "eww-search-words" "w3m" "ggtags-find-tag-dwim" "ggtags-mode" "find-tag" "other-frame" "compare-windows" "magit-wip-mode" "kill-region" "gnus" "offlineimap" "gnus-toggle-ticked-articles" "emojify-mode" "org-gcal-sync" "notmuch" "eval-region" "ediff" "dashboard-mode" "notmuch-search" "benchmark-init/show-durations-tree" "gfm-show-emacs-environment" "bbdb" "sunshine-forecast" "info" "package-list-packages" "describe-personal-keybindings" "load-theme" ...))
  smex()
  funcall-interactively(smex)
  command-execute(smex)

I build emacs from git source on MacOS 11.6.5:

(GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2022.60 Version 11.6.5 (Build 20G527)) of 2022-05-06)

thank you very much in advance (and thank you for the package itself too :-) -- ferdy

amake commented 2 years ago

Thanks for the report.

I tried to reproduce by doing the following:

  1. Run emacs -Q
  2. Set up MELPA
  3. Install paradox
  4. Use paradox to install macports
  5. Run M-x macports

But I was unable to get your result.

Can you provide some sort of minimum configuration that reproduces the issue?

ferdy commented 2 years ago
ciao,

my thanks for the prompt reply.

I tried this:

  1. emacs -Q

  2. copy&paste in the *Scratch* buffer these emacs-lisp lines:

(emacs-version)
(setq debug-on-error t)
(setq package-archives
      '(("gnu"          . "https://elpa.gnu.org/packages/")
        ("melpa"        . "https://melpa.org/packages/")
    ("melpa-stable" . "https://stable.melpa.org/packages/")
    ;; ("marmelade"    . "https://marmalade-repo.org/packages/")
    ("org"          . "https://orgmode.org/elpa/")
    ("elpy"         . "http://jorgenschaefer.github.io/packages/")
    ))
(package-initialize)
(locate-library "macports")
  1. evaluating each line with C-x C-e, getting these messages in *Messages* buffer:
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
"GNU Emacs 29.0.50 (build 1, x86_64-apple-darwin20.6.0, NS appkit-2022.60 Version 11.6.5 (Build 20G527))
 of 2022-05-06"
t
(("gnu" . "https://elpa.gnu.org/packages/") ("melpa" . "https://melpa.org/packages/") ("melpa-stable" . "https://stable.melpa.org/packages/") ("org" . "https://orgmode.org/elpa/") ("elpy" . "http://jorgenschaefer.github.io/packages/"))
Package cl is deprecated
"/Users/ferdy/.emacs.d/elpa/macports-20220509.1326/macports.elc"
  1. run M-x macports getting this in the *Backtrace* buffer:
Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "macports-reclaim")
  command-execute(macports record)
  execute-extended-command(nil "macports" "macports")
  funcall-interactively(execute-extended-command nil "macports" "macports")
  command-execute(execute-extended-command)

I would also add that I tried the same steps obtaining the same results with other versions of Emacs:

BTW, I am not an emacs-lisp wizard at all, but surely there is no "macports-reclaim" file in the installed package:

ferdy@wabi:~/.emacs.d/elpa/macports-20220509.1326$ pwd
/Users/ferdy/.emacs.d/elpa/macports-20220509.1326
ferdy@wabi:~/.emacs.d/elpa/macports-20220509.1326$ ls -al
total 104
drwxr-xr-x  16 ferdy staff   512 May 11 11:50 ./
drwxr-xr-x 187 ferdy staff  5984 May 11 11:50 ../
-rw-r--r--   1 ferdy staff  1923 May 11 11:50 macports-autoloads.el
-rw-r--r--   1 ferdy staff  6736 May 11 11:50 macports-core.el
-rw-r--r--   1 ferdy staff 10145 May 11 11:50 macports-core.elc
-rw-r--r--   1 ferdy staff  2160 May 11 11:50 macports-describe.el
-rw-r--r--   1 ferdy staff  1796 May 11 11:50 macports-describe.elc
-rw-r--r--   1 ferdy staff 13874 May 11 11:50 macports-installed.el
-rw-r--r--   1 ferdy staff 12988 May 11 11:50 macports-installed.elc
-rw-r--r--   1 ferdy staff  6259 May 11 11:50 macports-outdated.el
-rw-r--r--   1 ferdy staff  7128 May 11 11:50 macports-outdated.elc
-rw-r--r--   1 ferdy staff   368 May 11 11:50 macports-pkg.el
-rw-r--r--   1 ferdy staff  3457 May 11 11:50 macports-select.el
-rw-r--r--   1 ferdy staff  4780 May 11 11:50 macports-select.elc
-rw-r--r--   1 ferdy staff  1167 May 11 11:50 macports.el
-rw-r--r--   1 ferdy staff   258 May 11 11:50 macports.elc
ferdy@wabi:~/.emacs.d/elpa/macports-20220509.1326$

hope this helps and please let me know if you want me to do some more experiments/tests. cheers, -- ferdy

amake commented 2 years ago

Actually I think I figured it out. I misunderstood one of the arguments to autoload: https://github.com/amake/macports.el/commit/81e3ca64b754a83aca9e9841874844b4f715518e

You can patch it locally or wait for MELPA to pick it up.

ferdy commented 2 years ago

ciao, i have just upgraded from melpa to version 20220512.9 and I am not getting the error any longer. i will commence playing with the package and will let you know should any other issue will arise meanwhile I close this issue as resolved. thank you very much for your support! cheers, -- ferdy