brianpetro / obsidian-smart-connections

Chat with your notes & see links to related content with AI embeddings. Use local models or 100+ via APIs like Claude, Gemini, ChatGPT & Llama 3
https://smartconnections.app
GNU General Public License v3.0
2.72k stars 182 forks source link

Obsidian turns black when importing smart connections #842

Open RomanRietsche opened 2 weeks ago

RomanRietsche commented 2 weeks ago

Dear Team,

Thank you very much for this creative tool and your outstanding work.

For a couple of weeks, obsidian has turned black when importing the smart connections (only restarting obsidian helps).

Bildschirmfoto 2024-10-16 um 08 05 16

Latest OSX (M2), Obsidian and smart connections version.

Any ideas on how to debug the problem to help you more? log files?

3-ark commented 1 week ago

check the indexing files if there is extra embedding, I have seen similar problom before. I deleted the folder to start embedding again. Then everything's back to normal.

RomanRietsche commented 1 week ago

I tried to find the folder. Do you have a hint?

brianpetro commented 1 week ago

Look for .smart-env in your system explorer. The folder isn't visible in the Obsidian file explorer.

Also, turning on the "legacy transformers" setting might help depending on what the problem is.

Lastly, opening the developer console log before the crash happens might give us some error messages we can use to further debug the issue 🌴

RomanRietsche commented 1 week ago

I deleted everything.

It imported everything; however, the same error appeared.

After reloading, the embeddings are created.

However, again, I got the error.

Console message:

Bildschirmfoto 2024-10-19 um 21 54 38

TypeError: Cannot read properties of undefined (reading 'stat') at SmartSource.import (plugin:smart-connections:7079:48) at MarkdownSourceAdapter.read (plugin:smart-connections:8631:31) at async SmartSource.read (plugin:smart-connections:7227:23) at async SmartSource.get_embed_input (plugin:smart-connections:7123:19) at async Promise.all (index 5) at async SmartSources.process_embed_queue (plugin:smart-connections:6935:9) at async SmartSources.process_import_queue (plugin:smart-connections:7640:5) at async SmartSources.process_load_queue (plugin:smart-connections:7621:7) at async _SmartEnv.load_collections (plugin:smart-connections:5482:9) at async _SmartEnv.load_main (plugin:smart-connections:5468:5) at async _SmartEnv.init (plugin:smart-connections:5434:5) at async _SmartEnv.create (plugin:smart-connections:5421:18) at async SmartConnectionsPlugin.load_env (plugin:smart-connections:14096:5) at async SmartConnectionsPlugin.initialize (plugin:smart-connections:14077:5) "TypeError: Cannot read properties of undefined (reading 'stat')\n at SmartSource.import (plugin:smart-connections:7079:48)\n at MarkdownSourceAdapter.read (plugin:smart-connections:8631:31)\n at async SmartSource.read (plugin:smart-connections:7227:23)\n at async SmartSource.get_embed_input (plugin:smart-connections:7123:19)\n at async Promise.all (index 5)\n at async SmartSources.process_embed_queue (plugin:smart-connections:6935:9)\n at async SmartSources.process_import_queue (plugin:smart-connections:7640:5)\n at async SmartSources.process_load_queue (plugin:smart-connections:7621:7)\n at async _SmartEnv.load_collections (plugin:smart-connections:5482:9)\n at async _SmartEnv.load_main (plugin:smart-connections:5468:5)\n at async _SmartEnv.init (plugin:smart-connections:5434:5)\n at async _SmartEnv.create (plugin:smart-connections:5421:18)\n at async SmartConnectionsPlugin.load_env (plugin:smart-connections:14096:5)\n at async SmartConnectionsPlugin.initialize (plugin:smart-connections:14077:5)" import @ plugin:smart-connections:7100 read @ plugin:smart-connections:8631 await in read (async) read @ plugin:smart-connections:7227 get_embed_input @ plugin:smart-connections:7123 eval @ plugin:smart-connections:6935 process_embed_queue @ plugin:smart-connections:6935 await in process_embed_queue (async) process_import_queue @ plugin:smart-connections:7640