reuseman / flashcards-obsidian

🎴 An Anki plugin for Obsidian.md
MIT License
897 stars 87 forks source link

upadate obsidian to 1.4.0+ can't return the id label after the nots. #197

Open Peingxious opened 1 year ago

Peingxious commented 1 year ago

I tested Obsidian 1.3.5 and 1.3.7, it's OK.

But the update to 1.4.0 changed the yaml styles and can't return the id label after the nots.

Now it's obsidian 1.4.3。

Peingxious commented 1 year ago

194 there is a upper fixed the plugin's bug , and I dev it and sent it . If someone looked at it ,you can download it and replace it ,fix can't used at obsidian 1.4.4

main_166.zip

yshhwy commented 1 year ago

Thank you for your fix. It works well! Saved the day!

borisnaydis commented 1 year ago

If anyone wants to check what is changed in the main_166.js compared to the unmodified main.js, you need to format main.js with Prettier. After that it's much easier to spot the changes.

joe19960 commented 1 year ago

thanks,your code works well.

jzkelter commented 1 year ago

194 there is a upper fixed the plugin's bug , and I dev it and sent it . If someone looked at it ,you can download it and replace it ,fix can't used at obsidian 1.4.4 main_166.zip

If anyone doesn't know how to replace main.js for the plugin, this video should help: https://www.youtube.com/watch?v=ffGfVBLDI_0

subwaysurety commented 1 year ago

Unfortunately, it doesn't work, at least on Mac Version 1.4.14. , it doesn't work. Anki 2.1.65

I reloaded the plugins after adding but still the same. main_166 renamed to main.js

I would appreciate some help or a workaround cos it completely threw a wrench in my language learning.

WEelCh commented 12 months ago

I would appreciate some help or a workaround cos it completely threw a wrench in my language learning.

Some crude workaround would be to manually delete the YAML in the file EVERY TIME you want to "push" to anki ( The Plugin will then generate it new with its cards-deck prop )

Very bloody i know :(

** Also keep in mind, that if you use any other YAML props in the file, you need to, i guess copy 'n paste them every time you use this "solution" *** Also SETTINGS > EDITOR > PROPERTIES IN DOCUMENT > SOURCE is needed for this to work easy (the "UI" for the Properties is weird)

crossz commented 11 months ago

Unfortunately, it doesn't work, at least on Mac Version 1.4.14. , it doesn't work. Anki 2.1.65

I reloaded the plugins after adding but still the same. main_166 renamed to main.js

I would appreciate some help or a workaround cos it completely threw a wrench in my language learning.

This patched js file works for me, Obsidian 1.4.16, Anki 2.1.66. Just FYR.

subwaysurety commented 11 months ago

Unfortunately, it doesn't work, at least on Mac Version 1.4.14. , it doesn't work. Anki 2.1.65 I reloaded the plugins after adding but still the same. main_166 renamed to main.js I would appreciate some help or a workaround cos it completely threw a wrench in my language learning.

This patched js file works for me, Obsidian 1.4.16, Anki 2.1.66. Just FYR.

Obisdian Version 1.4.16 (Installer 1.4.13), Version 1.4.16 (Installer 1.4.13), Anki Version ⁨23.10 (51a10f09)⁩

still the same unfortatelly on Mac Intel

GribbleP commented 10 months ago

I'm having the same issue. M1 Macbook Air, Obsidian 1.4.16, Anki 2.1.65. Tried replacing the main.js with main_166, reloaded the plugins, restarted everything, etc. Still getting the following error in the console:

image

Have absolutely loved this plugin, and this is a huge bummer! Especially it happening a month away from my upcoming board exam... would really benefit from this working again.

MatanRubin commented 9 months ago

I can confirm the fix worked for me on macOS, Obsidian 1.4.16, and Anki 23.10.1

GribbleP commented 8 months ago

What plugins are you running, if you don't mind me asking?

I can confirm the fix worked for me on macOS, Obsidian 1.4.16, and Anki 23.10.1