hans / obsidian-citation-plugin

Obsidian plugin which integrates your academic reference manager with the Obsidian editor. Search your references from within Obsidian and automatically create and reference literature notes for papers and books.
MIT License
1.04k stars 76 forks source link

Citation doesn't recognize database path #227

Closed reADwwt closed 1 year ago

reADwwt commented 1 year ago

Describe the bug Starting from this morning, Obsidian has been having trouble locating my literature note folder, which is the same folder that I have been using for more than a year with no trouble. When I try to open a literature note from the navigation interface, it throws a message at me that says "Unable to access literature note. Please check that the literature note folder exists, or update the Citations plugin settings". After I try to add a literature note after the message disappears, nothing happens. And after I close and reopen Obsidian and try to add a literature note again, the same message pops up.

Suggestions that I have tried but didn't work:

  1. change the "Citation database path" to a different folder with shorter directory
  2. change the json database that I have been using
  3. uninstall and reinstall the Citation plugin

Until the issue occurred, I had not made any system changes or updating Obsidian or anything

Also when I change the citation database path or the json file, the editor interface for the plugin shows this message that "loaded library with xxx references", suggesting to me that the path/file is recognized. But for some wierd reason, it is not recognizing the path or file when I need to add a literature note to my note

To Reproduce Steps to reproduce the behavior:

  1. open literature note
  2. pick a note and press enter

Console output not sure how to do this

Expected behavior A clear and concise description of what you expected to happen.

Screenshots test

Platform

Additional context The citation database path and the json file are the ones that I have been using for over a year with no trouble previously at all

orionpilot commented 1 year ago

I agree this does look a bit weird. For reference, to access the console its ctrl-shift-i on Windows. I think that means its cmd-shift-i on macOS (or whatever the equivalent to ctrl is).

It does look like the citation database path is fine (since its recognizing the XXX entries). But what about the literature note path? There are two different paths in the settings and it looks like you only focused on the first one. Since you say that everything was working fine for a long time, maybe some other process changed the literature note path/folder name. Double check if that path is correct and see if the error persists if that path is blank (so that the notes appear in the root and as a check that its that path that's the issue).

reADwwt commented 1 year ago

For the literature note folder, I previously just used the default "Reading Notes" as the folder name. I just changed it to some other names and created folders accordingly. But again none of the new folders worked. But after I deleted the folder name and left the literature note folder blank, it worked and I can now open literature note without getting that annoying message.

Still not sure what happened but it looks like the problem is resolved. Thanks!