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 77 forks source link

Can't open the note I searched #212

Closed yuyenda0 closed 1 year ago

yuyenda0 commented 1 year ago

Describe the bug Cannot open the note I searched in the citations database.

To Reproduce Steps to reproduce the behavior:

  1. Ctrl + Shift + O 2.1. Searched for the articles I wanted to open (Image 1) => Clicked and the note didn't appear (Image 2) 2.2. Meanwhile, if I clicked the articles that appears/listed already, the note would be created (Image 3,4)

Expected behavior The note I searched for would appear/open/be created.

Screenshots Image 1:

image

Image 2:

image

Image 3:

image

Image 4:

image

Platform

orionpilot commented 1 year ago

More information is needed to properly help you, though I have a couple ideas. What exactly is your CTRL-SHIFT-O hotkey set to? There may be a conflict between the citations plugin and something else. What happens if you select the Open literature note command directly from the command palette instead of the hotkey? Also, what are your citation plugin folder settings (i.e, the paths)?

yuyenda0 commented 1 year ago

I'm sorry, I thought that hotkey was default. It's Open literature note, and it made no different when I select it directly from the command palette. I don't think the hotkey is conflictual.

My database path is: /Users/username/Desktop/Documents/Academia Obsidian/My Library.json Literature note folder is just "Zotero"

image
orionpilot commented 1 year ago

The hotkey may have been the default, but since it can be changed, that was one idea I had. I think its also possible that multiple plugins could have the same default hotkey. This was why I asked if you could replicate the issue by selecting that command directly, rather than through the hotkey. I agree it looks like that’s not the issue.

Thanks for sharing the settings. Since you can see the list of papers from the screenshots you shared, it looks like your database is being properly loaded. Initially, I thought that your settings looked fine but then I think I replicated the issue. Is there an extra space in the folder name “Zotero”? It would look fine without clicking into the textbox.

Having Zotero in the settings but Zotero being the actual folder name can cause this error. I got the error you got by adding an extra space at the end of my literature note folder setting.

yuyenda0 commented 1 year ago

Thank you. I've checked the extraspace before, but there's none.

orionpilot commented 1 year ago

Oh that's interesting. If that's the case, I am not entirely sure what is the source of this problem. My guess is that its something else in your particular vault for some reason. One idea to help troubleshoot: create a new vault on your computer and only setup the citations plugin. If the issue persists, my guess is that its your database somehow that's the issue. If the issue does not persist, then I am pretty sure that the issue is caused by something else in your vault/on your computer. Try adding things back slowly in the new vault and see if the issue pops up again. That should help figure out the culprit.

yuyenda0 commented 1 year ago

Thank you very much for your help. Anyway, I've resorted to the last available option, which is to change the citation database format (from CSL-JSON to BibLaTex) and now it's working just fine. I guess the issue can be closed for now.