-
Notifications
You must be signed in to change notification settings - Fork 22
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
Files and subfolders will no longer display in folders on v1.5.8 #135
Comments
Same problem here. I think
Basically, only folders (and files) directly under the space's root are displayed, clicking on them doesn't open them. |
The console displays the following error:
|
Hi @dustincoates, @jmatsushita, thanks for reporting the problem! To complete this bug context please post here the information about your platform (windows / linux / macos / mobile) and the version of the custom-sort plugin I'm asking for the additional details because the described behavior resembles a known incompatibility with Obsidian, which was addressed in 2.1.7 release of the plugin (the newest release for now is 2.1.8) - maybe there are scenarios / cases which are not covered by the fix. Knowing the environment on your side I should be able to reproduce the problem. |
I have the same issue. custom-sort version 2.1.8; Obsidian 1.5.8; OS is macos 14.3.1. I have to disable the custom-sort plugin in order to see contents of subfolders level 3 and lower. |
unfortunately I don't have the macos 14.x at hand to test in exactly the same environment. The issue seems tricky :-( Could you please tell me the installer version, in addition to the Obsidian 1.5.8? Sometimes an old installer can cause problems. I definitely need help from you, and/or @dustincoates , @jmatsushita:
As you probably guess, the problem is not observable on my side (unfortunately) There must be some factor which causes the problem on your environments I'd appreciate your help in identifying the problem! thanks in advance! |
I ran into the same problem yesterday:
Updating the plugin solved the problem |
Thank you @Andrei-Sager and @zakhar9lov for the details and suggestions! Let me recap and give more context to this issue Obsidian in version 1.5.4 introduced some internal breaking changes which caused the I asked the reporters for the missing versions information and at that point @JeNeSuisPasDave joined with details - Obsidian 1.5.8, custom-sort 2.1.8 and the problem observable on his machine. Now waiting for further input from the original reporters (versions information). And/or for more information and help from @JeNeSuisPasDave, whose report is most concerning here. It suggests that with the newest plugin release and the newest Obsidian, under some (unknown yet) circumstances, the breaking changes in Obsidian can still prevent the custom-sort plugin from working correctly Thank you all! |
Version 1.5.8 (Installer 1.4.13) |
I created a new vault, and built out the necessary levels of nested folders. After installing the add-in, I could not reproduce the problem. So, then I opened the problem vault and enabled the plugin, then closed and opened that vault again and now, today, it is working as expected and I don't have any missing folders. Very weird (because it was highly reproducible at the time I posted my original comment). The only thing that happened (that I'm aware of) between when it was broken (the time I posted my original comment) and when it started working (just before posting this comment) that could possibly influence this is that I logged out of my Macbook yesterday, and then logged back in. I didn't open Obsidian after logging back in, not until just now. FYI. I have a single sortspec.md document with about 4 different target folder specs. The one that was directed at the folders where I noticed the issue was:
When the problem was happening, it was only showing two levels of content below the Training/Log subfolder, while I actually have 4 levels of content below that folder. Also FYI, my vaults are entirely local. No syncing of any kind. |
thanks a lot for checking on your side and coming back with the details! Such a feedback is really helping to keep plugin up-to-date! Overall, the symptoms which you observed (and what others reported) result from breaking changes introduced by Obsidian. And because of two or three levels of not obvious caching on various levels, even if you update the affected plugin(s), the process of recovering your Obsidian vault instances is multi-step:
This guarantees that all internal structures and caches will be purged and loaded anew The custom-sort plugin intentionally doesn't save any caches to disk. Yet, when it generated the File Explorer data structure in a broken way (due to updated Obsidian and not updated thus incompatible plugin), the broken structure was kept by Obsidian even if you disabled or uninstalled the plugin. I have an impression that this could even outlive the restart of Obsidian. That's why the 1-7 steps were needed to guarantee a correct refresh. Obviously there is a quicker way - disable the File Explorer (Obsidian core plugin names Files) and re-enable it, which would enforce it to recreate all internal structures. Yet because there are many less advanced user of Obsidian, this could be unclear, vs. the simple app restart scenario. What you encountered on your side was a mixture of old and new internal states. I've created the #137 ticket to see if from plugin side the future potential similar scenarios can be made less confusing or avoided. Thanks! |
@SebastianMC apologies for the delay in replying; I am on version 2.1.2 and affected me on both Windows and Ubuntu. 2.1.8 does indeed fix the issue. |
That's a great workaround! I didn't really understand why that could work until I read your explanation about the caches and other data structures that Obsidian maintains. Thanks for that. BTW, on my computer that core plugin is just called "Files". |
Thanks @dustincoates for the update, it allows closing this ticket. I'm transforming this issue to a discussion of Q&A type - there will be more people facing similar problem and informations presented in this thread can be helpful. Thanks for all for your input!!! |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
With version 1.5.8, files and subfolders will no longer display when trying to expand the parent folders.
For example, with the following structure:
When expanding
A
, you will not seeB
orfile.md
.I have confirmed that this is due to the custom sort plugin by disabling it and restarting Obsidian.
The text was updated successfully, but these errors were encountered: