Skip to content
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

Cached Version of Note Breaks Quick Switcher #405

Open
Servinjesus1 opened this issue Jan 10, 2025 · 0 comments
Open

Cached Version of Note Breaks Quick Switcher #405

Servinjesus1 opened this issue Jan 10, 2025 · 0 comments

Comments

@Servinjesus1
Copy link

I can't precisely describe what is happening here but the title is the best logical explanation I can come up with to describe this issue. Essentially, the quick switcher and update literature note commands are broken and the only thing that seems to fix them is modifying the literature note prior to running these commands. As such it seems that if the commands run and get a version of the file that matches some cached version it has, the command breaks. Mind you this is not the version it would recreate if it recreated the file using the existing templates, but rather the file itself. I know this because I added a simple newline to an existing file and just that amount of change fixed the issue.

This is easily reproducible in a new Vault using my settings file (attached). You will have to update the Zotero location obviously and use your own Zotero Notes to reproduce but otherwise follow these instructions:

  1. Create a New Vault and Install (but do not enable ZotLit)
  2. Move my data.json here into the Zotlit plugin directory in .obsidian
  3. Enable Zotlit (add a hotkey for the zotlit quickswitcher like CtrlShiftO to make things easier)
  4. Quick Switch to your first note
  5. Quick Switch to a second note
  6. These note files should now exist and you should now be able to quick switch between them
  7. Close the vault and reopen
  8. Now, the quick switcher fails to load either note, even if you have one of the notes open. Verify the inspector (ctrl alt I (for Indico not L)) produces a console NoteExistsError every time you run the quick switcher
  9. Change a single thing in both files
  10. Now the quick switcher works...

I seem to have ruled out a template issue, so now I'm left wondering what in my settings could be contributing to this? Not to mention all the other glitches I'm having such as the inconsistency in what the object browser shows and what's truly defined within the it object (particularly annotations are undefined when not and notes are empty when they should have items)


Obsidian-Zotlit: 1.1.9
Obsidian-Zotero: 1.0.1
Zotero: 7.0.9
Obsidian: 1.7.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant