-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Getting error with obsidian-jump #99
Comments
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? |
removing the |
Same issue here. Did you find a solution? |
I believe the issue is with your To be more specific, the As the function |
Maybe ignore the front matter and let the user know that it’s been ignored because it’s invalid?
…On 28 Oct 2024 at 22:40 +0000, Joe Reinhart ***@***.***>, wrote:
I believe the issue is with your tags: key not having a value, and more specifically the value not being a list. If you either removed the tags key, or gave it an empty list as a value a la tags: [], then I think it would fix your issue. You may want to do the same with the rating key while you're at it.
To be more specific, the :null is returned from the call to yaml-parse-string because you have a keys in your front matter that don't have matching values. In your example, both tags and rating are empty keys that will therefore be returned with :null values.
As the function yaml-parse-string isn't parst of obsidian.el it's hard to handle this kind of error gracefully; I think the best options we'd have is to ignore the file altogether when this sort of YAML parsing error occurs, so ideally the user would only include valid yaml in the front matter.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
That makes sense. My changes in PR #100 prevent the error from being thrown, but there's no message telling the user that the front matter is being ignored for a specific file. I'll look into adding that. |
PR #100 has been updated to alert the user that a file was not able to be parsed due to a yaml parsing error. |
When I invoke
M-x obsidian-jump
, I got error:Here's the full backtrace:
Here's the full content of file
A Beautiful Mind.md
:my
M-x emacs-version
reports this:Thanks!
The text was updated successfully, but these errors were encountered: