mdelobelle / metadatamenu

For data management enthusiasts : type and manage the metadata of your notes.
https://mdelobelle.github.io/metadatamenu
MIT License
520 stars 27 forks source link

Unable to add classes to files post update #594

Closed AlisAquilae closed 7 months ago

AlisAquilae commented 7 months ago

Hi there,

I just updated to metadata menu V0.8.1 and am experiencing some issues

I am currently unable to add any of my existing classes to new files. I can choose a fileclass upon creation, which shows all my existing classes, but when I select one it does not do anything and leaves me with an empty note without a class. Moreover, when I right click the note and go to field options, the menu does not pop up at all.

All of my classes are still present. The icons besides the files still show properly, the fieldclass settings are still fine, and all settings are the same. I checked and re-added all file paths (i.e. base class and fileClass folder), but that did not help either.

I should note that I updated because I was experiencing another issue where 1 specific note was not shown in queries for inlinks. I don't know if and how that could have anything to do with it, but in the case it does I wanted to have mentioned it anyways.

I have very little knowledge of programming or bug-fixing, but if there is anything I can do, any information I can provide, do let me know

mdelobelle commented 7 months ago

Hi. Are there any error printed in the console when choosing a fileclass for new file? and when you right click > fields options?

AlisAquilae commented 7 months ago

Yes, quite a few of them. This is the console log after opening obsidian, image This is the log after creating a new note image And after clicking field options image

mdelobelle commented 7 months ago

ok could you type "MetadataMenu.fieldIndex" in the console and paste the result here? (please click on the little arrow on the left to expand the object before taking the screenshot)

AlisAquilae commented 7 months ago

Done image

AlisAquilae commented 7 months ago

Wait, sorry, didn't notice it continued off-screen. image

mdelobelle commented 7 months ago

The globalFileClass seems to cause the issue (see the list of 4 undefined values). Could you paste the content of your gloabl fileclass (the source frontmatter of the .md file) please?

AlisAquilae commented 7 months ago

fields:

mdelobelle commented 7 months ago

ok thanks i can reproduce and I've located the issue. Will try to fix it asap

AlisAquilae commented 7 months ago

Great! Thank you so much for taking the time to look at my issue. Loving the plugin and looking forward to being able to continue working with it <3

mdelobelle commented 7 months ago

Thanks a lot, very much appreciated :) could you test this version https://github.com/mdelobelle/metadatamenu/releases/tag/0.8.2-beta-1 ? replace the main.js in the .obsidian/plugins/metadata-menu folder of your vault Then disable/enable the plugin

The issue should be solved for global fileclass, we'll see if there are new issues coming up

AlisAquilae commented 7 months ago

Just tried it. The issue seems to be resolved, and everything seems to be working the way it should (though I still have another issue which I'd hoped would disappear alongside it, but I think that is dataview related and not metadata menu).

One thing is that I had the console open alongside trying all the usual buttons and actions. On one occasion the global fileclass did not load, only the class I added myself. The console also gave a warning about this:

image

I tried repating the steps I had until then but have not been able to reproduce this or narrow it down. Don't know whether it was a slight hiccup or whether there is still a little issue somewhere, but wanted to have shared it anyways

mdelobelle commented 7 months ago

Great! I will release this version then. This warning isn't related to metadata menu and I have to say that I have no idea where this comes from....

I'll close this issue, don't hesitate to open a new one should you encounter a new problem