AnKing-VIP / AnKing-Note-Types

https://www.ankingmed.com
GNU Affero General Public License v3.0
41 stars 20 forks source link

One by One Cloze deletions not revealing answer after hitting spacebar unless I double click #163

Closed ajayp1 closed 6 months ago

ajayp1 commented 6 months ago

One by One Cloze deletions from AnKing V12

Problem description

After updating to V12 from V11, I am having to double click the screen after pressing space bar for the answer of a cloze deletion to be revealed. If I don't double click, the options for "Again" "Hard" "Good" appear at the bottom of the screen but the deletion itself doesn't go away.

Downloaded the AnKing NoteType addon, restarted, updated all note types, the issue persists....

edit: issue appears to be less frequent (not as many cloze cards affected) when restarting Anki while holding shift, but is still present to some extent. I may just not be observing properly, as it is occurs randomly even when NOT holding shift upon starting Anki

Checklist

Please replace the space inside the brackets with an x if the following items apply:

What Anki version are you using?

*Please open Anki, go to Help → About (windows) or Anki → About Anki (mac) to find the version. Edit the value between the backticks below

23.10.1

What Operating system are you using? (i.e. MacOS, Windows, Linux)

Please include OS version as well if possible Windows 11

Error message (if any)

If you've received an error message, please copy and paste it between the backticks below:

AnKingMed commented 6 months ago

can you export one of the notes you're having issues with and upload here? You'll have to zip it in order to attach

ajayp1 commented 6 months ago

Sure, here is one of the notes. anking_v12_onebyone_BUG_NOTE.zip

AnKingMed commented 6 months ago

image I'm getting this for some reason (not sure why as I'm on 23.10.1). Can you try exporting some other way? Not sure why that's happening

ajayp1 commented 6 months ago

Hmmm that is weird. How about if I just give the code for the note type? This is a different note which gave the same issue.

Front template: https://pastebin.com/S0B512kr

Back template: https://pastebin.com/pQ95XfWH

AnKingMed commented 6 months ago

Probably would be best to get the actual note if possible. How did you export it?

ajayp1 commented 6 months ago

I did Ctrl+Shift+E in the browser. I tried it again but checked the "Support older Anki versions" this time: anking_v12_onebyone_BUG_NOTE.zip

ajayp1 commented 6 months ago

I just realized that when I click the ' key it reveals the cloze answer (along w all other 3rd party buttons). Perhaps it's related to that?

AnKingMed commented 6 months ago

I just tested that and everything is working fine for me. I must not understand what your issue is. Can you draw it out with screenshots and/or video?

ajayp1 commented 6 months ago

image

Here is an example. If you look at the bottom, you can see I pressed spacebar but the answer isn't revealed. I have to press the "toggle all" shortcut or double click in order to reveal the answer. Occurs randomly (as far as I can tell).

This started once I switched to V12 and appears to be an issue with One-by-One note type.

AnKingMed commented 6 months ago

I see what you mean. This still happens without addons?

What do you mean the "one by one note type"? That's not a one by one note

ajayp1 commented 6 months ago

Yeah it happens even when I start Anki while holding Shift. However much less frequent.

Ah apologies, when I clicked "edit" then "Cards..." the top "Card Type" drop out was set to "AnKing One by One:OME One by One...." or something like that. However now when I look at the Note Type listed in the card info (Ctrl+Shift+I in browse menu) it states that it's the AnKingOverhaul (AnKing / AnKingMed) card.

I am assuming the note type underwent changes in the v12 update (?), and it would also explain why this happens when addons are disabled. Given that the answer is revealed when I hit the "toggle all" shortcut, I assume there's some bug related to the cloze reveal? entirely guessing

edit: for now i will just change the "toggle all" shortcut to space bar so it still reveals the answer w one keystroke

edit2: it appears I can't use space bar like that :( the frequency of the error is a lot higher when the AnKing NoteTypes and AnkiHub addons are enabled though

AnKingMed commented 6 months ago

Yeah the one by one feature is built in to the AnKingOverhaul note type.

@abdnh or @RisingOrange do you have any idea at all why this would be happening? I can't replicate it and I've not had any other reports of this happening

ajayp1 commented 6 months ago

I'm noticing that Anki is slower in general after updating to 23.10 and adding AnkiHub. Not entirely sure why, was running smoothly before.

I did replace my m.2 SDD just before updating but I doubt that is relevant.

thanks for your availability on christmas eve!

abdnh commented 6 months ago

Here is an example. If you look at the bottom, you can see I pressed spacebar but the answer isn't revealed.

@ajayp1 This is probably a known graphics issue affecting 23.10+. Please try switching the video driver from the preferences.

I'm getting this for some reason (not sure why as I'm on 23.10.1).

@AnKingMed This is caused by the Special Fields add-on.

RisingOrange commented 6 months ago

I'm noticing that Anki is slower in general after updating to 23.10 and adding AnkiHub.

Which actions did you notice being slower? It's true that the startup of Anki is slower with the AnkiHub add-on - we should fix that as it's a bit annoying. Syncing takes longer because the AnkiHub add-on has to download updates from AnkiHub. Other actions should not be slower.

ajayp1 commented 6 months ago

I'm noticing that Anki is slower in general after updating to 23.10 and adding AnkiHub.

Which actions did you notice being slower? It's true that the startup of Anki is slower with the AnkiHub add-on - we should fix that as it's a bit annoying. Syncing takes longer because the AnkiHub add-on has to download updates from AnkiHub. Other actions should not be slower.

Things like moving through the browse cards menu, hopping out of a deck take longer. Though I wouldn't be surprised if this is due to a graphics issue as @abdnh mentioned!

ajayp1 commented 6 months ago

Here is an example. If you look at the bottom, you can see I pressed spacebar but the answer isn't revealed.

@ajayp1 This is probably a known graphics issue affecting 23.10+. Please try switching the video driver from the preferences.

I'm getting this for some reason (not sure why as I'm on 23.10.1).

@AnKingMed This is caused by the Special Fields add-on.

I actually did install the Special Fields add-on as I was transitioning to v12 so that makes sense. Will attempt switching the video driver

AnKingMed commented 6 months ago

@abdnh does 23.12 fix the graphics issue?

abdnh commented 6 months ago

@abdnh does 23.12 fix the graphics issue?

No. The issue appeared after a Qt update.

ajayp1 commented 6 months ago

I changed the video driver to OpenGL and things are running smoothly (so far)! I'll post another issue if anything comes up again. thanks all