-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
mapcar: Wrong type argument: sequencep, 108 #84
Comments
Can you tell which was the previous version you used? There is at least one additional error for |
I'm sorry. I'm not sure. I think it was the version created in November 2023. |
I have the same error after updated to 56f6861. After I rolled back to version 1.4.1, this bug disappeared and was probably introduced in version 1.4.2. |
Let me know please if something else is not working after the fix |
Unfortunately, using the latest version, there are still errors, the information is as follows: Wrong type argument: sequencep, 2023 |
@licht1stein Hello ) Have got "mapcar: Wrong type argument: sequencep, 108" after upgrade obsidian.el and restart emacs Please suggest me. Which variables or settings will be useful for debugging the issue Part of my .emacs
|
How can I replicate? |
Please do |
I found that a problematic YAML front matter was causing this error for me:
Backtrace from
After changing the front matter it worked fine:
|
Debugger entered--Lisp error: (wrong-type-argument sequencep 2023)
concat("#" 2023)
(closure (t) (tag) (concat "#" tag))(2023)
mapcar((closure (t) (tag) (concat "#" tag)) [2023 "daily"])
(and front-matter (mapcar add-tag (gethash 'tags front-matter)))
(append (and front-matter (mapcar add-tag (gethash 'tags front-matter))) (s-match-strings-all obsidian--tag-regex s))
(-flatten (append (and front-matter (mapcar add-tag (gethash 'tags front-matter))) (s-match-strings-all obsidian--tag-regex s)))
(let ((front-matter (obsidian-find-yaml-front-matter s)) (add-tag #'(lambda (tag) (concat "#" tag)))) (-flatten (append (and front-matter (mapcar add-tag (gethash 'tags front-matter))) (s-match-strings-all obsidian--tag-regex s))))
obsidian-find-tags("---\naliases:\n - 2023 Daily\ntags:\n - 2023\n - dai...")
(-distinct (obsidian-find-tags (obsidian-read-file-or-buffer file)))
obsidian-find-tags-in-file("/daily-sync-repo/daily-in-obsid...")
mapcar(obsidian-find-tags-in-file ("/daily-sync-repo/daily-in-obsid..." ...))
(-flatten (mapcar #'obsidian-find-tags-in-file (obsidian-list-all-files)))
(-distinct (-flatten (mapcar #'obsidian-find-tags-in-file (obsidian-list-all-files))))
obsidian-list-all-tags()
(setq obsidian--tags-list (obsidian-list-all-tags))
obsidian-update-tags-list()
obsidian-update()
funcall-interactively(obsidian-update)
command-execute(obsidian-update) The file front matter:
|
Me too. Thanks!!! |
obsidian-update and obsidian-jump return "mapcar: Wrong type argument: sequencep, 108"
obsidian.el
Version: 20231211.1857
Commit: 56f6861
Summary: Obsidian Notes interface
GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-07-30
PS: Previous version obsidian.el worked fine
Update: On note opening returning "File mode specification error: (wrong-type-argument sequencep 108)"
The text was updated successfully, but these errors were encountered: