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]: "Cannot open load file" "No such file or directory" "f-shortdoc" #129

Closed skallinen closed 8 months ago

skallinen commented 11 months ago

Expected behavior

should not throw an exception

Actual behavior

throws an error. it works when remove the version check for over emacs 29.

running on emacs-mac. emacs version 29.1.

f.el version

0.20.0

Emacs version

something else (please specify)

Relevant code or log output

Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "f-shortdoc")
  require(f-shortdoc)
  byte-code("\301\302!\210\301\303!\210\304\305\10\"\203\23\0\301\306!\210\307\310\311\312#\210\307\310\313\314#\207" [emacs-version require s dash version<= "28.1" f-shortdoc put f-guard-error error-conditions (error f-guard-error) error-message "Destructive operation outside sandbox"] 4)
  require(f)
  eval-buffer(#<buffer  *load*> nil "/Users/user/.config/emacs/straight/build/h..." nil t)  ; Reading at buffer position 1572
  load-with-code-conversion("/Users/user/.config/emacs/straight/build/h..." "/Users/user/.config/emacs/straight/build/h..." nil t)
  autoload-do-load((autoload "helpful" "Show help for interactive command bound to KEY-SEQ..." t nil) helpful-key)
  command-execute(helpful-key)

----
Hack in f-shortdoc.el that removes the error:
(when (version<= "28.1" emacs-version)
  (when t ;;(< emacs-major-version 29)
    (require 'shortdoc))
ludamillion commented 10 months ago

I'm having this as well.

Phundrak commented 8 months ago

I’ll publish a fix this evening.