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

Screen Grayed Out After Loading smart_sources #959

Open
vonlaughing opened this issue Jan 12, 2025 · 0 comments
Open

Screen Grayed Out After Loading smart_sources #959

vonlaughing opened this issue Jan 12, 2025 · 0 comments

Comments

@vonlaughing
Copy link

vonlaughing commented Jan 12, 2025

Hi, thank you for making this!

I have an issue using OpenAI's Text-3 Large embedding. The screen grays out completely each time it is loading smart_sources.
image

When using the debug mode, it pauses at this function:
image

var FileItemDataAdapter = class extends ItemDataAdapter {
        /**
   * @returns {Object} Filesystem interface derived from environment or collection settings.
   */
        get fs() {
            return this.item.collection.data_fs || this.item.collection.env.data_fs;
        }
        get data_path() {
            throw new Error("Not implemented");
        }
        async load_if_updated() {
            const data_path = this.data_path;
            if (await this.fs.exists(data_path)) {
                const loaded_at = this.item.loaded_at || 0;
                const data_file_stat = await this.fs.stat(data_path);
                if (data_file_stat.mtime > loaded_at + 1 * 60 * 1e3) {
                    console.log(`Smart Collections: Re-loading item ${this.item.key} because it has been updated on disk`);
                    await this.load();
                }
            }
        }
    }

Do you know what the problem is? Thank you!

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