rejeep / f.el

Modern API for working with files and directories in Emacs
GNU General Public License v3.0
680 stars 68 forks source link

[Bug]: f-shortdoc.el:31:1:Error: Cannot open load file: No such file or directory, shortdoc #111

Closed djpeebles closed 2 years ago

djpeebles commented 2 years ago

Contact Details

No response

Expected behavior

Hi. I've been getting an error when updating recently. I suspect that this is because shortdoc is only available for more recent versions of Emacs (I'm using version 27.2).

Actual behavior

When updating over the last couple of weeks I get following output.

`Compiling internal form(s) at Wed Jun 8 07:35:09 2022 Leaving directory ‘/home/david/.emacs.d/elpa/f-20220607.1618’

Compiling file /home/david/.emacs.d/elpa/f-20220607.1618/f-shortdoc.el at Wed Jun 8 07:35:09 2022 Entering directory ‘/home/david/.emacs.d/elpa/f-20220607.1618/’ f-shortdoc.el:31:1:Error: Cannot open load file: No such file or directory, shortdoc

Compiling file /home/david/.emacs.d/elpa/f-20220607.1618/f.el at Wed Jun 8 07:35:09 2022`

f.el version

master

Emacs version

27.2

Relevant code or log output

No response

Phundrak commented 2 years ago

That’s weird, `f-shortdoc.el' should only be required if your Emacs version is at least 28.1. I’ll push a hotfix for that, but I’ll keep this issue open while looking for a more elegant solution.

-- Lucien “Phundrak” Cartier-Tilet https://phundrak.com (Français) https://phundrak.com/en (English) Sent from GNU/Emacs

Dickby commented 2 years ago

This errors on emacs 29.05 with Debugger entered--Lisp error: (void-variable f)

djpeebles commented 2 years ago

That’s weird, `f-shortdoc.el' should only be required if your Emacs version is at least 28.1. I’ll push a hotfix for that, but I’ll keep this issue open while looking for a more elegant solution.

Thank you!

Phundrak commented 2 years ago

This errors on emacs 29.05 with Debugger entered--Lisp error: (void-variable f)

I’m temporarily removing f’s shortdoc from master and moving it to the https://github.com/rejeep/f.el/tree/feature/shortdoc branch while I try to see what’s wrong.

-- Lucien “Phundrak” Cartier-Tilet

https://phundrak.com (Français)

https://phundrak.com/en (English)

Sent from GNU/Emacs

Phundrak commented 2 years ago

I attempted to restore shortdoc, this should fix the initial bug in this issue (the second bug report was due to its hotfix). Let me know if there is anything wrong happening again with the shortdoc

Dickby commented 2 years ago

Works! Thanks a lot

djpeebles commented 2 years ago

Yes, I've just updated the package too and it now works without any errors. Thank you!

Phundrak commented 2 years ago

Perfect, closing this issue

mittenchops commented 1 year ago

I'm getting this error in emacs 29.0.5.

Phundrak commented 1 year ago

I reverted commit https://github.com/rejeep/f.el/commit/6544f84aa5adaa76ea8901f185e940ee868a471f which should fix the issue.

onetom commented 1 year ago

Just for the record, I'm getting this error on GNU Emacs 30.0.50 (build 1, aarch64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3.1 (a) (Build 22E772610a)) of 2023-05-19 too, when I'm trying to run the helpful-key command from the https://github.com/wilfred/helpful package.

I don't understand based on the conversation above what am I supposed to do. I'm using straight.el and I did a straight-pull-all and a restart, but that didn't solve the problem either, so I've just disabled the helpful package.

rileyrg commented 8 months ago

GNU Emacs 29.1.90 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.18.0, Xaw3d scroll bars) of 2023-12-14

Error (use-package): pass/:catch: Cannot open load file: No such file or directory, f-shortdoc ⛔ Error (use-package): dired-filter/:catch: Cannot open load file: No such file or directory, f-shortdoc ⛔ Error (use-package): package-lint/:catch: Opening input file: No such file or directory, /home/rgr/.emacs.d/straight/build/package-lint/data/stdlib-changes ⛔ Error (use-package): helpful/:catch: Cannot open load file: No such file or directory, f-shortdocError (use-package): pass/:catch: Cannot open load file: No such file or directory, f-shortdoc ⛔ Error (use-package): dired-filter/:catch: Cannot open load file: No such file or directory, f-shortdoc ⛔ Error (use-package): package-lint/:catch: Opening input file: No such file or directory, /home/rgr/.emacs.d/straight/build/package-lint/data/stdlib-changes ⛔ Error (use-package): helpful/:catch: Cannot open load file: No such file or directory, f-shortdoc

Happened to me out of the blue after ***ing org ;) suddenly broke again with an error mismatch and I deleted straight/repos/org and build and recloned and built it.

Phundrak commented 8 months ago

@rileyrg I just pushed a commit to master, could you test if it fixed the issue?