-
Notifications
You must be signed in to change notification settings - Fork 8
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
Since installing Obsidian 1.6.0, the File nav tree (left) takes very long time (~20s) to appear on launch #120
Comments
In the meantime you can try Attachment MANAGER plugin in the meantime which can move attachments and you can use Attachment Name Formatting plugin to rename attachments (except if you are saving attachments into a subfolder in the attachments folder, then renaming attachments doesn't work). |
@itoldusoandso Thank you but I did try that and it doesn't work for my vault which is already heavily organized with attachment subfolders. |
I started debugging on my own because I don't know if @trganda is around much I bisected the initializing functions in obsidian-attachment-management/src/main.ts Line 158 in a764324
>>> console.log("in onLayoutReady!"); I see there's some crazy recursion going on, the func is called 6744 times when Obsidian starts! It feels like an Obsidian bug, since the plugin code hasn't changed, but I don't know if we can work around it somehow, or why |
I forked the repo and created a fix for this bug. I don't know if it's correct, but please check out luckman212@205362a?diff=unified&w=1 So far it's working for me! If anyone else wants to test:
|
Tks for @luckman212 working. I have no right to using Obsidian v1.6.0 at this time, since I'm not the VIP user (accessing early verison) of Obsidian. I will checking your fix, and if everything ok I will add it to this repo. |
I have merged PR and released a new version. |
@trganda One small thing, I realize I left a debug message in that commit, you may want to remove it. It's here:
|
Tks for your tips, I will update and try to adapt the new version. |
I am not sure why, but with Attachment Management enabled, the file explorer tree on the left appears completely blank for a long time after launch of Obsidian.
I tested this on 2 separate computers, both Obsidian 1.6.0, and with NO other extensions enabled.
This is what the UI looks like during that time
After some time, the file list appears. There is nothing additional shown in the Console (debug log).
The text was updated successfully, but these errors were encountered: