brianpetro/obsidian-smart-connections

Many errors

Smitty010 opened this issue · 4 comments

I get hundreds of the following errors:

import @ plugin:smart-connections:7022
"TypeError: Cannot read properties of undefined (reading 'stat')\n at SmartSource.import (plugin:smart-connections:7001:21)\n at eval (plugin:smart-connections:7538:83)\n at Array.map ()\n at SmartSources.process_import_queue (plugin:smart-connections:7538:58)\n at async SmartSources.process_load_queue (plugin:smart-connections:7528: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:13941:5)\n at async SmartConnectionsPlugin.initialize (plugin:smart-connections:13922:5)"

I also notice that there are no blocks in the ajson files in .smart_env/multi

Maybe this helps:
SYSTEM INFO:
Obsidian version: v1.7.3
Installer version: v1.6.5
Operating system: Windows 11 Pro 10.0.22631
Login status: logged in
Language: en
Catalyst license: insider
Insider build toggle: on
Live preview: on
Base theme: light
Community theme: Primary v2.10.0
Snippets enabled: 16
Restricted mode: off
Plugins installed: 106
Plugins enabled: 67
1: Tasks v7.10.2
2: Templater v2.7.3
3: Calendar v1.5.10
4: Kanban v2.0.51
5: Excalidraw v2.5.1
6: Outliner v4.8.1
7: Natural Language Dates v0.6.2
8: QuickAdd v1.11.1
9: Periodic Notes v0.0.17
10: Homepage v4.0.6
11: Minimal Theme Settings v8.1.1
12: Note Refactor v1.8.2
13: Recent Files v1.6.0
14: Spaced Repetition v1.12.8
15: Style Settings v1.0.9
16: Workspaces Plus v0.3.3
17: Tag Wrangler v0.6.1
18: Hotkeys++ v0.2.7
19: Fullscreen mode plugin v0.1.2
20: Projects v1.17.4
21: Plugin Update Tracker v1.5.2
22: Open vault in VSCode v1.2.3
23: Grandfather v1.0.1
24: No dupe leaves v0.0.12
25: Callout Manager v1.1.0
26: Quiet Outline v0.3.36
27: Linter v1.26.0
28: MySnippets v1.2.3
29: Auto Link Title v1.5.4
30: Status Bar Pomodoro Timer v0.1.14
31: Advanced URI v1.44.1
32: Update time on edit v2.4.0
33: Metadata Menu v0.8.7
34: Scroll to Top v2.1.4
35: Supercharged Links v0.12.1
36: Dataview v0.5.67
37: Sort Frontmatter v1.0.24
38: Charts v3.9.0
39: Quick Switcher++ v4.6.0
40: Editing Toolbar v2.4.16
41: Settings Search v1.3.10
42: Gemini Assistant v1.0.4
43: Beautitab v1.6.1
44: Omnisearch v1.24.1
45: Meta Bind v1.2.1
46: Text Extractor v0.5.2
47: Advanced Canvas v3.1.0
48: Canvas minimap v1.0.15
49: File Cooker v1.9.0
50: Commander v0.5.1
51: Sortable v0.3.1
52: Banners v1.3.3
53: Copy as source v1.0.2
54: Advanced Tables v0.22.0
55: Footnote Shortcut v0.1.3
56: Text Generator v0.7.41
57: Admonition v10.3.2
58: Highlightr v1.2.2
59: Modal forms v1.52.0
60: CardBoard v0.7.9
61: CSS Inlay Colors v1.1.0
62: Block Link Plus v1.0.4
63: Text Format v3.1.0
64: Lazy Plugin Loader v1.0.18
65: File Explorer Note Count v1.2.2
66: Doubleshift v2.2.1
67: Smart Connections v2.2.81

Screenshots of the errors are most helpful 🌴

There is an error stack in the initial comment. Is this better?
image

Also, it looks like you do thing in two step. I let it run all night and got some embeddings embeddings and then it seemed to stop. I have a large vault (16,000+).
image
Here are the last entries in the developer logs
image
It looks like it has stopped processing files. The files with embedding all show they they were created in the same minute last night (2:15 a.m.). There are 2,759 files out of the 16,944 files in the .smart-evn/multi folder that appeared to have embeddings

Yeah, that helps, screenshots give more context and are easier to read than copy&pasted text.

It's probably a file type bug that's appeared in a few other recent issues.

If you figure out a specific file type is causing the issue, let me know because that would help me fix the bug.

Either way, I will aim to make ensure unexpected file types don't throw errors and stop the processing like this before the next release
🌴