Simple fix of broken add-ons for the latest Anki (by Shige)

Really appreciate that, thank you! I tested it some and it works perfectly. Back to my old workflow finally :folded_hands: By the way, do you think adding a keyboard shortcut option for toggling it would be a simple matter? I saw that it was an old feature request, and it’s something I’ve been missing too.

And @eroscard, I re-read my previous comment above and realize I was a bit rude. I apologize for that.

2 Likes

that’s a good idea, I added a shortcut key. it should work when you update the add-on: tools → add-ons → check for update

1 Like

That’s great, thank you so much!

1 Like

@Shigeyuki, a gentle ping in case this was forgotten.

1 Like

Hi vaibhav thanks for the ping. This feature has a problem that doesn’t work properly on MacOS, so I plan to fix it at the same time, please wait.

1 Like

@Shigeyuki How can I make the add-on Review lookup search for the exact phrase “ABC XYZ” instead of searching for each individual word “ABC” and “XYZ” separately?

1 Like

Hi thanks for the screenshot it’s easy to understand. That feature is not yet developed so it is not available, I’ll try to enhance it later so please wait.

1 Like

In Shige’s spellchecker add-on, if I go to Advanced → select a dictionary → Disable, I get the following error.

Anki 25.08b5 (d4862e99) (ao)
Python 3.13.5 Qt 6.8.1 PyQt 6.8.1
Platform: Windows-11-10.0.26100-SP0

Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Anki2\addons21\143753963\dict.py", line 268, in _disable
    os.remove(file_path)
    ~~~~~~~~~^^^^^^^^^^^
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\User\\AppData\\Roaming\\Anki2\\dictionaries\\en.bdic'

If I try to delete it directly through the Windows File Manager, I get this error:

The action can't be completed because the file is open in Python
Close the file and try again.

Workaround: Close Anki and delete the file through the File Manager.

1 Like

Hi thanks for reporting the problem. It seems that the dictionary file is still in use by the add-on so it cannot be deleted, I think the code needs to be changed to either completely release access or delete it after restarting Anki, so I’ll look into it.

1 Like

This error got resolved after I added a personal.aff file to the %APPDATA%\Anki2\addons21\143753963\user_files\user_dics folder. I obtained this file by copying the en_US.aff file from LibreOffice and renaming it to personal.aff

1 Like