licht1stein / obsidian.el

Obsidian Notes for Emacs
GNU General Public License v3.0
360 stars 27 forks source link

Getting error with obsidian-jump #99

Open emacsbliss opened 3 weeks ago

emacsbliss commented 3 weeks ago

When I invoke M-x obsidian-jump, I got error:

Debugger entered--Lisp error: (wrong-type-argument sequencep :null)

Here's the full backtrace:

Debugger entered--Lisp error: (wrong-type-argument sequencep :null)
  obsidian-find-tags("---\nposter: https://m.media-amazon.com/images/M/MV5BMzcwYWFkYzktZjAzNC00OGY1LWI4YTgtNzc5MzVjMDVmNjY0XkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg\nimdbId: tt0268978\nscoreImdb: 8.2\nlength: 135 min\ngenre: Biography, Drama, Mystery\nyear: 2001\ncast: Russell ...")
  obsidian-find-tags-in-file("/Users/emacsbliss/obsidian/Movies/A Beautiful Mind.md")
  obsidian-list-all-tags()
  obsidian-update-tags-list()
  obsidian-update()
  obsidian-jump()
  funcall-interactively(obsidian-jump)
  command-execute(obsidian-jump record)
  execute-extended-command(nil "obsidian-jump" "b")
  funcall-interactively(execute-extended-command nil "obsidian-jump" "b")
  command-execute(execute-extended-command)

Here's the full content of file A Beautiful Mind.md:

  ---
poster: https://m.media-amazon.com/images/M/MV5BMzcwYWFkYzktZjAzNC00OGY1LWI4YTgtNzc5MzVjMDVmNjY0XkEyXkFqcGdeQXVyMTQxNzMzNDI@._V1_SX300.jpg
imdbId: tt0268978
scoreImdb: 8.2
length: 135 min
genre: Biography, Drama, Mystery
year: 2001
cast: Russell Crowe, Ed Harris, Jennifer Connelly
director: Ron Howard
tags: 
rating: 
status: complete
---

# Plot 
A mathematical genius, John Nash made an astonishing discovery early in his career and stood on the brink of international acclaim. But the handsome and arrogant Nash soon found himself on a harrowing journey of self-discovery.

my M-x emacs-version reports this:

GNU Emacs 29.4 (build 2, aarch64-apple-darwin23.3.0, NS appkit-2487.40 Version 14.3.1 (Build 23D60)) of 2024-08-03

Thanks!

licht1stein commented 2 weeks ago

My guess is that the url is not parsed correctly as a tag. Can you remove the "poster" tag and try again, just to check?

emacsbliss commented 2 weeks ago

removing the poster tag does not seem to work, got same error from other front-matter fields