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

Mystery error #175

Open
menagerie198 opened this issue Nov 24, 2024 · 8 comments
Open

Mystery error #175

menagerie198 opened this issue Nov 24, 2024 · 8 comments

Comments

@menagerie198
Copy link

I do not have any lapse in performance (that I have noticed) but, I keep getting this error in the Developer Console:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '/')
at getEl (plugin:folder-notes:2515:55)
at removeCSSClassFromEL (plugin:folder-notes:2500:28)
at eval (plugin:folder-notes:2431:7)
at Array.forEach ()
at loadFileClasses (plugin:folder-notes:2425:40)
at eval (plugin:folder-notes:5746:9)
at t. (app.js:1:2155014)
at app.js:1:237228
at Object.next (app.js:1:237333)
at a (app.js:1:236051)

Just thought i might be useful to FYI it...

@LostPaul
Copy link
Owner

When do you get this kind of error? I got it once but I don't get it anymore.

@menagerie198
Copy link
Author

image
I never noticed an event causing it, but it was always there when i went to the developer window. I just closed and restarted Obsidian, and this is the result...

@frankreporting
Copy link

I'm getting same error on startup. Potential clue: Not all of my folder notes are getting the bold treatment in File Explorer. Some are bold, and some aren't. I can still click on the non-bold folder names to load the folder note itself. It just seems not to be rendering them all correctly in File Explorer. Possibly related to the error?

@LostPaul
Copy link
Owner

LostPaul commented Feb 4, 2025

Could you both try out the beta version in duplicated version of your vault to see if that changes anything? https://github.com/LostPaul/obsidian-folder-notes/releases/tag/1.7.30-25-beta

@frankreporting
Copy link

Just tried it, and it does appear to have addressed the error. When I reload my main vault, I still see the error in @menagerie198's screenshot. When I switch to a duplicate vault with the beta version swapped in for the official version, I no longer see the error when starting up or reloading.

I didn't do any more extensive testing than that, so this doesn't rule out, say, any settings I have in my main vault vs. the default settings in my default. But it seems promising.

@menagerie198
Copy link
Author

menagerie198 commented Feb 5, 2025

Hi - I used BRAT to install 1.7.30-25-beta. I am getting the following error messages in the dev window.

Image

It means nothing to me, but the reference to 'obsidian-front-matter-title-plugin' strikes me as odd. I may have installed it once, but that would have been a long time ago. There is certainly not a folder by that name in my plugin folder.

@LostPaul
Copy link
Owner

LostPaul commented Feb 5, 2025

Hi - I used BRAT to install 1.7.30-25-beta. I am getting the following error messages in the dev window.

Image

It means nothing to me, but the reference to 'obsidian-front-matter-title-plugin' strikes me as odd. I may have installed it once, but that would have been a long time ago. There is certainly not a folder by that name in my plugin folder.

It's because I'm using the api to support some features of it I may be able to remove it if you don't have to the plugin installed.

@menagerie198
Copy link
Author

Out of curiosity a (re) installed 'obsidian-front-matter-title-plugin'. On restarting Obsidian I got 182 errors in the inspector! Seems to be one for each of my 'Folder Note' files. 'obsidian-front-matter-title-plugin' does not supply any functionality I need, so if you could easily, un-damagingly remove the dependency, I for one would appreciate it -- one person does not seem to be a terribly compelling reason for such a burden though ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

3 participants