CSS files in snippets folder not recognized

I have been using custom CSS files in the snippets folder for a while. Now suddenly, after restarting, Obsidian can’t find any of the files anymore.

If I go to Setting > Appearance and scroll to the bottom, none of my CSS files are listed there. But if I open the folder via macOS Finder (there is a button to launch it from this settings page) I see the files being present.

I’ve tried creating new files in the snippets folder. They are also not recognized.

Copying the vault into a new one doesn’t help either. However, creating a new vault and adding snippets there does work.

Any ideas how I could debug this further?

Is your vault in a sync or cloud location? iCloud/OneDrive/GoogleDrive/etc.?

I am using Obsidian Sync for syncing this vault.

Also, I just checked on my other computer. There the CSS files have been deleted by the sync process. And also all the plugins. :cry:

Is there a way to restore the state of Obsidian Sync at a certain point in time? Not each file individually, rather the whole vault.

Yes, understood, but where is the vault on disk? Is it in a sync service folder or somewhere watched by a sync service?

The vault is saved under $HOME/Obsidian/personal, which is not watched by any other sync service other than Obsidian Sync. Hope this answers the question.

Still not sure what caused the issue. Bu I was able to resolve the it as follows:

  1. Move the current vault folder to some other location
  2. Resync from Obsidian Sync
  3. Restore some files manually from the moved vault folder (running diff -qr $new $old)

Now the CSS snippets are found and all my plugins are enabled.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.