trgkanki / cloze_hide_all

GNU Affero General Public License v3.0
13 stars 3 forks source link

toggle button won't work, settings doesn't apply, shows everything on the back #38

Closed vivabear closed 4 years ago

vivabear commented 4 years ago

after update, it will show everything on the back with a dead toggle button well. I don't know what is going on and I can not go back to the older version.

Reproduction step

back: shows everything. (toggle) does not work. change (cards)

  1. Go to front issue
  2. Click on 'review answer', shows everything on the back issue-back
  3. Scroll down to 'toggle'
  4. it is not clickable.
  5. click on 'edit', 'cards', preview is exactly same as the back
  6. click the checkbox 'fill empty fields' in options issue-fill empty fields
  7. everything works as expected in back preview
  8. click 'save', goes back to anki
  9. issue still persist.

ps. change settings for cloze all doesn not solve the issues, ie, "true" to the hide on the back. issue-settings

Expected behavior

BACK:

  1. shows the indicated answer, cloze others.
  2. click on 'toggle', shows everything.

Anki/OS versions

Additional context

Thank you for your time and this wonderful add on. I guess I can live with it but it is frustrating to lose all my settings.

scripts for my back settings scrips

this is the error report after I tried to download from website to overwrite but failed

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site. Debug info: Anki 2.1.34 (8af8f565) Python 3.8.0 Qt 5.15.1 PyQt 5.15.1 Platform: Windows 10 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2020-10-20 05:25:46

Caught exception: Traceback (most recent call last): File "aqt\progress.py", line 43, in handler File "aqt\main.py", line 142, in on_window_init File "aqt\main.py", line 190, in setupProfileAfterWebviewsLoaded File "aqt\main.py", line 231, in setupProfile File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-22>", line 2, in loadProfile File "anki\hooks.py", line 638, in decorator_wrapper File "anki\hooks.py", line 629, in repl File "aqt\main.py", line 427, in loadProfile File "aqt\gui_hooks.py", line 2033, in call File "anki\hooks.py", line 583, in runHook File "C:\Users\hiyi\AppData\Roaming\Anki2\addons21\1709973686\clozeHideAllModel.py", line 16, in registerClozeModel updateClozeModel(mw.col) File "C:\Users\hiyi\AppData\Roaming\Anki2\addons21\1709973686\model\migrator__init__.py", line 19, in updateClozeModel models.save(clozeModel) File "anki\models.py", line 87, in save File "anki\models.py", line 231, in update File "anki\rsbackend_gen.py", line 414, in add_or_update_notetype File "anki\rsbackend.py", line 267, in _run_command anki.rsbackend.TemplateError: Card template ⁨1⁩ has a problem.

phu54321 commented 4 years ago

Omg...

phu54321 commented 4 years ago

1) There is no syntax like {{^~~~~~~}} in Anki. Error below occurred because of this. The template seems seriously screwed. image

2) Please export and upload your full deck (.apkg file). You can upload a file here by drag&dropping it to textbox.

vivabear commented 4 years ago

lol. that is how it shows up to me. I do not know how to coding. I mean I have download some anki decks for studying...but I doubt that is the cause??anyways. thank you for looking into this.. funny I am still using it today...swear almost get used to it. almost... lol

well. is only that deck works? I have the full decks of 60+m...and it won't allow me to upload it here. I uploaded only that deck. if not I will have to email you..or google share... Also I have to change the type to zip. but you can just change it back to .apkg

Thank youuu

btw. if I try to delete that, it shows the message as it did need one "^" image

ps. I disable the cloze all add-on and only solved the error message...the rest is all the same. but I can use it for now~

3321__wk 7 cha 22 understanding quality, risk and safety.zip

phu54321 commented 4 years ago
  1. {{^ seems to be an undocumented feature of Anki. It serves as a placeholder after the field is removed. This has been fixed
vivabear commented 4 years ago
  1. {{^ seems to be an undocumented feature of Anki. It serves as a placeholder after the field is removed. This has been fixed

what do I do? or where can I find the fix?

phu54321 commented 4 years ago

Could you try manually updating the addon?

vivabear commented 4 years ago

Could you try manually updating the addon?

I would love to try but would you say it in detail? what do I do? I am not super good at this. I assume download package and click? so where do I find the resources? do I need to delete the add on first? or enable it first(as I currently disabled it)?

phu54321 commented 4 years ago

Press this button.

image

vivabear commented 4 years ago

thank you. it works like a wonder. all good now :)