Closed mydearxym closed 8 years ago
I install hexo via MELPA on a cleaned Emacs without error, please elaborate your issue.
@kuanyui thanks i installed from spacemacs repo。 instead , i install it manually and other issue came out:
my work flow is use _posts
directly , i don't have a _drafts
dir
Hmm... I want to know if mkdir _drafts
, it still cannot work?
noop .. i replace it with the latest hexo.el and i add _drafts in source, i got this error:
M-x toggle-debug-on-error
and try it again, then show me the error message, please!
i get this:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
propertize(nil face hexo-date)
(vector (if (equal (hexo-get-article-parent-dir-name file-path) "_posts") (propertize "post" (quote face) (quote hexo-status-post)) (propertize "draft" (quote face) (quote hexo-status-draft))) (file-name-base file-path) (propertize (cdr (assq (quote title) info)) (quote face) (quote hexo-title)) (propertize (cdr (assq (quote date) info)) (quote face) (quote hexo-date)) (mapconcat (function (lambda (x) (propertize x (quote face) (quote hexo-category)))) (cdr (assq (quote categories) info)) "/") (mapconcat (function (lambda (x) (propertize x (quote face) (quote hexo-tag)))) (hexo-sort-string-list (cdr (assq (quote tags) info))) " "))
(list file-path (vector (if (equal (hexo-get-article-parent-dir-name file-path) "_posts") (propertize "post" (quote face) (quote hexo-status-post)) (propertize "draft" (quote face) (quote hexo-status-draft))) (file-name-base file-path) (propertize (cdr (assq (quote title) info)) (quote face) (quote hexo-title)) (propertize (cdr (assq (quote date) info)) (quote face) (quote hexo-date)) (mapconcat (function (lambda (x) (propertize x (quote face) (quote hexo-category)))) (cdr (assq (quote categories) info)) "/") (mapconcat (function (lambda (x) (propertize x (quote face) (quote hexo-tag)))) (hexo-sort-string-list (cdr (assq (quote tags) info))) " ")))
(let ((info (hexo-get-article-info file-path))) (list file-path (vector (if (equal (hexo-get-article-parent-dir-name file-path) "_posts") (propertize "post" (quote face) (quote hexo-status-post)) (propertize "draft" (quote face) (quote hexo-status-draft))) (file-name-base file-path) (propertize (cdr (assq (quote title) info)) (quote face) (quote hexo-title)) (propertize (cdr (assq (quote date) info)) (quote face) (quote hexo-date)) (mapconcat (function (lambda (x) (propertize x (quote face) (quote hexo-category)))) (cdr (assq (quote categories) info)) "/") (mapconcat (function (lambda (x) (propertize x (quote face) (quote hexo-tag)))) (hexo-sort-string-list (cdr (assq (quote tags) info))) " "))))
hexo-generate-file-entry-for-tabulated-list("/Users/xieyiming/blog/source/_posts/hello-world.md")
mapcar(hexo-generate-file-entry-for-tabulated-list ("/Users/xieyiming/blog/source/_posts/hello-world.md" "/Users/xieyiming/blog/source/_posts/testfuck.md"))
(let ((entries (mapcar (function hexo-generate-file-entry-for-tabulated-list) (hexo-get-all-article-files repo-root-dir (quote include-drafts))))) (if filter (cl-remove-if-not filter entries) entries))
hexo-generate-tabulated-list-entries("~/blog/" nil)
(setq tabulated-list-entries (hexo-generate-tabulated-list-entries hexo-root-dir hexo-tabulated-list-entries-filter))
hexo-setq-tabulated-list-entries()
run-hooks(tabulated-list-revert-hook)
tabulated-list-revert()
(progn (setq hexo-tabulated-list-entries-filter nil) (tabulated-list-revert) (tabulated-list-init-header))
(if (eq major-mode (quote hexo-mode)) (progn (setq hexo-tabulated-list-entries-filter nil) (tabulated-list-revert) (tabulated-list-init-header)) (message "Please run his command in `hexo-mode' buffer (M-x `hexo')."))
(hexo-mode-only (setq hexo-tabulated-list-entries-filter nil) (tabulated-list-revert) (tabulated-list-init-header))
hexo-command-revert-tabulated-list()
(let* ((hexo-buffer (get-buffer-create "*Hexo*")) (win (get-buffer-window hexo-buffer)) (--hexo-root (or custom-repo-root-path hexo-root-dir (hexo-find-root-dir default-directory) (hexo-ask-for-root-dir)))) (save-current-buffer (set-buffer hexo-buffer) (cd (setq hexo-root-dir --hexo-root)) (hexo-mode)) (if win (select-window win) (switch-to-buffer hexo-buffer)) (hexo-command-revert-tabulated-list) (tabulated-list-print (quote remember-pos)))
hexo("~/blog/")
blog()
call-interactively(blog record nil)
command-execute(blog record)
#[257 "\303\304!\203\f \305\306!!\210\306!\307\306!\310\"*\207" [current-prefix-arg this-command prefix-arg featurep smex smex-rank intern command-execute record] 4 "\n\n(fn CMD)"]("blog")
ivy-call()
ivy-read("M-x " ("toggle-debug-on-error" "package-install" "yas-reload-all" "customize-face" "yas/reload-all" "yas/expand" "hexo" "react-mode" "evil-jump-backward" "align-regexp" "company-mode" "json-pretty-print-buffer" "replace-regexp" "evil-delete-backward-word" "js-doc-insert-function-doc" "js-doc-insert-tag" "newline" "web-mode" "js2-jsx-mode" "shell-command-on-region" "add-mode-abbrev" "js2-mode" "open-line" "zilongshanren/smart-open-line" "newline-and-indent" "move-end-of-line" "indent-relative" "indented-text-mode" "indent-guide-mode" "linum-relative-toggle" "linum-mode" "helm-imenu" "customize-mode" "global-highlight-parentheses-mode" "imenu" "auto-highlight-symbol-mode" "isearch-forward-symbol-at-point" "smartparens-mode" "highlight-symbol-at-point" "isearch-yank-word-or-char" "rainbow-mode" "customize-group" "ace-jump-mode" "isearch-complete" "isearch-yank-word" "ace-jump-word-mode" "unhighlight-regexp" "isearch-forward-symbol" "evil-search-word-forward" "rainbow-identifiers-mode" ...) :predicate nil :require-match t :history extended-command-history :action #[257 "\303\304!\203\f \305\306!!\210\306!\307\306!\310\"*\207" [current-prefix-arg this-command prefix-arg featurep smex smex-rank intern command-execute record] 4 "\n\n(fn CMD)"] :sort nil :keymap (keymap (67108908 . counsel--info-lookup-symbol) (67108910 . counsel-find-symbol)) :initial-input "^" :caller counsel-M-x)
counsel-M-x()
call-interactively(counsel-M-x nil nil)
command-execute(counsel-M-x)
I got it. Your problem is resulted from the lack of date:
item in your article. I ignore this bug when developing, so it's time to deal with it.
cool ! can you fix that ?
Fixed. Try again and let me know if it solve your problem.
now works great ! thanks!
amazing work!
error when install from melpa via
package install