[Zotero 7 Beta] Add/Remove Dictionaries for Spell Check

I would like to add a language to the spellcheck.
I do:
1) Right-click in a note -> Languages -> Add/Remove Dictionaries
-> It opens a window with a list of languages to select from
2) Select "Français"
3) Click on "Ok"
-> I get the following error:
Unable to install “Français”:

Win error 5 during operation remove on file C:\Users\mjthoraval\AppData\Local\Temp\Zotero\fr-dicollecte@dictionaries.addons.mozilla.org (Accès refusé.

)
How can I get it to work?

The Debug ID is D1279949249.
Zotero 7.0.0-beta.68+c31a40c74 (64-bit)
Windows 10
  • It seems to be a permission issue. Does it work if you try to install any other language? You can also try to delete 'C:\Users\mjthoraval\AppData\Local\Temp\Zotero'.
  • edited March 18, 2024
    Same for all languages.
    I can delete the folder.

    When I try to add languages again, it re-creates the folder and even downloads the files:
    https://s3.amazonaws.com/zotero.org/images/forums/u265723/t61be49q8rfsvoxm7eed.png

    But every time I try to press "OK" with more languages, I hit the Error window, so I have no other choice to close the popup window from "Ok" and then exit with "Cancel":
    https://s3.amazonaws.com/zotero.org/images/forums/u265723/9d8jrpmqdfaf5722oj2t.png

    At the end, I still only have English as the proposed language, even though the folder contains the files for other languages:
    https://s3.amazonaws.com/zotero.org/images/forums/u265723/vaztiklp6i7d43moons4.png

    Also, the folder is automatically deleted when closing Zotero. So it does not seem to have any permission issue to write in there or to finally delete the folder.
  • Does it help if you run Zotero as administrator?
  • Ok, here's what I believe is happening: The dictionary does get installed, but the process encounters an issue at the final step when it tries to delete the temporary file. Due to this partial failure, the dictionary gets uninstalled. This issue could arise if the file in the Zotero temp folder is being accessed by another program, such as security software, which then prevents its deletion.

    Do you have any security software active?

    Regardless, we should modify the dictionary installation code to ensure that installation isn't aborted due to a non-critical error like file cleanup.
  • I do not have any security software active.
    I can reproduce in a Windows 10 VM with only Zotero installed, with a different test account. So if anything is interfering, that would be a basic Windows process. I can scan through the Task Manager if you think that would be useful.

    Another observation:
    Just after clicking on "Add/Remove Dictionaries", the Debug Output shows:
    (3)(+0012483): HTTP GET https://download.zotero.org/dictionaries/dictionaries.json

    (3)(+0000095): HTTP GET https://download.zotero.org/dictionaries/dictionaries.json succeeded with 200

    (3)(+0000003): No dictionary updates found
    And in the top part (Report Errors):
    [JavaScript Error: "NS_ERROR_FAILURE"]
    (which sounds familiar)

    After trying to add a new language, I get:
    (3)(+0006505): Removing dictionaries from fr-dicollecte@dictionaries.addons.mozilla.org

    (3)(+0000000): Installing dictionaries from fr-dicollecte@dictionaries.addons.mozilla.org

    (3)(+0000000): Saving https://download.zotero.org/dictionaries/fr-dicollecte@dictionaries.addons.mozilla.org-7.0b.xpi to C:\Users\mjthoraval\AppData\Local\Temp\Zotero\fr-dicollecte@dictionaries.addons.mozilla.org

    (3)(+0000026): Extracting README_dict_fr.txt

    (3)(+0000001): Extracting META-INF/manifest.mf

    (3)(+0000001): Extracting dictionaries/fr-classic.dic

    (3)(+0000011): Extracting META-INF/cose.sig

    (3)(+0000001): Extracting META-INF/mozilla.rsa

    (3)(+0000001): Extracting dictionaries/fr-classic.aff

    (3)(+0000002): Extracting META-INF/cose.manifest

    (3)(+0000001): Extracting META-INF/mozilla.sf

    (3)(+0000000): Extracting manifest.json

    (1)(+0000209): Error:

    (1)(+0000008): Error:

    (3)(+0000001): Alert: Unable to install “Français”: Win error 5 during operation remove on file C:\Users\mjthoraval\AppData\Local\Temp\Zotero\fr-dicollecte@dictionaries.addons.mozilla.org (Accès refusé. )
    And in the top part:
    [JavaScript Error: "Win error 5 during operation remove on file C:\Users\mjthoraval\AppData\Local\Temp\Zotero\fr-dicollecte@dictionaries.addons.mozilla.org (Accès refusé.
    )" {file: "(unknown module)" line: 0}]

    [JavaScript Error: "Win error 5 during operation remove on file C:\Users\mjthoraval\AppData\Local\Temp\Zotero\fr-dicollecte@dictionaries.addons.mozilla.org (Accès refusé.
    )" {file: "(unknown module)" line: 0}]
    Is it the same problem as the other bug?
  • Yes, I think it's the same issue.

    The fix will be in the next update.
  • @mjthoraval: This would be caused by the same Mozilla bug that caused the file-sync problem you reported last year.

    They've confirmed the bug but haven't fixed it yet.
Sign In or Register to comment.