-
Notifications
You must be signed in to change notification settings - Fork 10
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parent dirs in elfeed-score-rule-stats-file are not created automatically #32
Comments
Got a stack trace? Error message? |
sp1ff
added a commit
that referenced
this issue
Jul 25, 2023
Setting `elfeed-score-rule-stats-file` to a path with intermediate directories that don't exist will error-out. This fix will at least attempt to create them.
Michael ***@***.***> writes:
Got a stack trace? Error message?
1. (setq elfeed-score-rule-stats-file "/home/yantar92/.emacs.d/var/elfeed/score/score-rule-stats.eld")
~/.emacs.d/var/elfeed/score directory does not exist.
2. Do something in elfeed
3.
Debugger entered--Lisp error: (error "/home/yantar92/.emacs.d/var/elfeed/score/: no such directory")
(error "%s: no such directory" "/home/yantar92/.emacs.d/var/elfeed/score/")
(elfeed-score-rule-stats--sexp-to-file (:version 1 :stats #<hash-table equal 6/65 0x1560cb87daf3 ...>) "/home/yantar92/.emacs.d/var/elfeed/score/score-rul..." ";;; Elfeed score rule stats file DO NOT EDIT ...")
(elfeed-score-rule-stats-write "/home/yantar92/.emacs.d/var/elfeed/score/score-rul...")
(elfeed-score-rule-stats-update-hook "https://habr.com/ru/rss/company/ruvds/blog/?fl=ru")
(run-hook-with-args elfeed-score-rule-stats-update-hook "https://habr.com/ru/rss/company/ruvds/blog/?fl=ru")
(#f(compiled-function (status) #<bytecode -0x94a2bba2247cae1>) nil)
(#f(compiled-function (status) #<bytecode 0xee460ebc46ef954>) nil)
(elfeed-curl--fail-callback #<buffer *curl*-891389> #f(compiled-function (status) #<bytecode 0xee460ebc46ef954>))
(apply elfeed-curl--fail-callback (#<buffer *curl*-891389> #f(compiled-function (status) #<bytecode 0xee460ebc46ef954>)))
(timer-event-handler [t 25791 30676 458315 nil elfeed-curl--fail-callback (#<buffer *curl*-891389> #f(compiled-function (status) #<bytecode 0xee460ebc46ef954>)) nil 868000 nil])
…--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
|
sp1ff
added a commit
that referenced
this issue
Jul 27, 2023
Setting `elfeed-score-rule-stats-file` to a path with intermediate directories that don't exist will error-out. This fix will at least attempt to create them. Also, update the CI workflow & prep for the merge.
sp1ff
added a commit
that referenced
this issue
Jul 28, 2023
Setting `elfeed-score-rule-stats-file` to a path with intermediate directories that don't exist will error-out. This fix will at least attempt to create them. Also, update the CI workflow & generally prep for the merge (new version &c) As an aside, the regression test was originally written using `file-name-concat' which was only introduced in Emacs 28.1 (we support 26.1). It now uses a purpose-build Emacs Lisp replacement.
sp1ff
added a commit
that referenced
this issue
Jul 28, 2023
Setting `elfeed-score-rule-stats-file` to a path with intermediate directories that don't exist will error-out. This fix will at least attempt to create them. Also, update the CI workflow & generally prep for the merge (new versions in docs &c) As an aside, the regression test was originally written using `file-name-concat' which was only introduced in Emacs 28.1 (we support 26.1). It now uses a purpose-build Emacs Lisp replacement.
sp1ff
added a commit
that referenced
this issue
Jul 28, 2023
Setting `elfeed-score-rule-stats-file` to a path with intermediate directories that don't exist will error-out. This fix will at least attempt to create them. Also, update the CI workflow & generally prep for the merge (new versions in docs &c) As an aside, the regression test was originally written using `file-name-concat' which was only introduced in Emacs 28.1 (we support 26.1). It now uses a purpose-build Emacs Lisp replacement.
Should be fixed. Thanks for the report! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try to set
elfeed-score-rule-stats-file
to a full path in a non-existing directory, elfeed-score errs, instead of creating that directory.The text was updated successfully, but these errors were encountered: