Giter Site home page Giter Site logo

cloze-overlapper's Introduction

Cloze Overlapper for Anki


List memorization made easy!

This is an add-on for the spaced-repetition flashcard app Anki. It facilitates memorizing enumerations, lists, or any other type of sequential information by breaking the sequence up into cards where each item serves as the context cue for the next.

Table of Contents

Background

Memorizing lists and enumerations has always been a particularly difficult part of studying flashcards. Good flashcards follow the minimum information principle, where each card is kept as short as possible. Sequential information has unfortunately always somewhat eluded that basic principle because it is hard to break down into smaller chunks. Normally you would employ methods like grouping or categorizing to consolidate information, but with each item building upon the next, that does usually not work for sequences or enumerations.

One of the common recommendations in cases like this has always been to create overlapping flashcards, where each card's answer serves as the question prompt for next card in line. For an array of three list items A, B, C you would end up with three cards of the form A → B, B → C, and C → D. What results is chain of overlapping associations between each sequence node that can potentially improve the storage and retrieval strength of the entire sequence.

While this method is generally assumed to be quite effective, following it requires a significant time investment up-front that only few students are able or willing to make.

The Add-on

This is where Cloze Overlapper comes in. It takes care of all the arduous steps required to create these flashcards manually and provides you with a dead-simple workflow: You paste in the sequence or list, adjust the cloze generation settings, and let the add-on generate the cards for you.

More generally speaking, Cloze Overlaper provides Anki with a completely novel cloze system that can cover almost every use case you can think of, be it revealing each taxon of a classification system individually, or even gradually building up to an entire poem:

Due to working with the formatting tools that Anki provides itself, the cards generated by this add-on are fully compatible with all Anki platforms, smartphone apps included:

Installation

AnkiWeb

The easiest way to install Cloze Overlapper is through AnkiWeb.

Manual installation

Please click on the entry corresponding to your Anki version:

Note: Pre-compiled test builds for Anki 2.1 are now available on my Patreon. These will become public once testing is complete.

Anki 2.1
  1. Make sure you have the latest version of Anki 2.1 installed. Earlier releases (e.g. found in various Linux distros) do not support .ankiaddon packages.
  2. Download the latest .ankiaddon package from my Patreon
  3. From Anki's main window, head to ToolsAdd-ons
  4. Drag-and-drop the .ankiaddon package onto the add-ons list
  5. Restart Anki
Anki 2.0
  1. Go to ToolsAdd-onsOpen add-ons folder
  2. Find and delete the Cloze Overlapper.py file if it already exists.
  3. See if you can find a cloze_overlapper folder. If so:
    1. If the folder contains a meta.json file, copy the file to a safe location. This will allow you to preserve your current settings.
    2. Proceed to delete the cloze_overlapper folder
  4. Download and extract the latest Anki 2.0 add-on release from my Patreon
  5. Move the extracted Cloze Overlapper.py and cloze_overlapper into the add-ons folder
  6. Optional: Place the meta.json file back into the directory if you created a copy beforehand.
  7. Restart Anki

Documentation

The use of the add-on is documented in the Wiki section and a series of video tutorials on YouTube. More information may also be found in the AnkiWeb description.

Building

With Anki add-on builder installed:

git clone https://github.com/glutanimate/cloze-overlapper.git
cd cloze-overlapper
aab build

For more information on the build process please refer to aab's documentation.

Contributing

Contributions are welcome! Please review the contribution guidelines on how to:

  • Report issues
  • File pull requests
  • Support the project as a non-developer

License and Credits

Cloze Overlapper is Copyright © 2019 Aristotelis P. (Glutanimate)

With code contributions from: zjosua, (Thank you!)

I would like to extend my heartfelt thanks to everyone who has helped with testing, provided suggestions, or contributed in any other way!

I'd also like to thank:

Cloze Overlapper is free and open-source software. The add-on code that runs within Anki is released under the GNU AGPLv3 license, extended by a number of additional terms. For more information please see the LICENSE file that accompanied this program.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY.


The continued development of this add-on is made possible
thanks to my Patreon and Ko-Fi supporters.
You guys rock ❤️ !

cloze-overlapper's People

Contributors

glutanimate avatar zjosua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cloze-overlapper's Issues

Add option to reindex cards in existing note

Checklist

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've checked if anyone else suggested this feature before by looking through the issue reports.

Problem case

First a big thanks for developing this useful package. It's been a great help for my study!

I usually uses the tool to recite a paragraph of text, where sequential context matters, so I would cloze selected text one by one:

Lorem ipsum [[oc1::dolor sit amet]], [[oc2::consectetuer adipiscing elit]]. Donec hendrerit tempor
tellus. [[oc3::Donec pretium posuere tellus]]. Proin quam nisl, [[oc4::tincidunt et]], [[oc5::mattis
eget, convallis nec, purus.]] Cum sociis natoque penatibus et magnis dis
parturient montes, [[oc6::nascetur ridiculus mus]]. Nulla posuere. [[oc7::Donec vitae dolor]].
[[oc8::Nullam tristique diam non turpis]]. Cras placerat accumsan nulla. [[oc9::Nullam rutrum.]]
[[oc10::Nam vestibulum]] accumsan nisl.

And this generates 10 cloze cards and a full card.

Now during my review session, I sometimes find the original cloze is too coarse, and I would like to break it down into finer pieces. For example, breaks consectetuer adipiscing elit at oc2 into consectetuer and adipiscing elit. My expected result is:

  • New cards [[oc2::consectetuer]] and [[oc3::adipiscing elit]] added, old [[oc2::consectetuer adipiscing elit]] removed
  • Index of cards that are after the change are added by 1: Original [[oc3::Donec pretium posuere tellus]] becomes [[oc4:Donec pretium posuere tellus]], and original [[oc4:...]] becomes [[oc5:...]], and so on.

11 cloze cards are generated with a new full card.

Solution

Concisely describe the solution you would like

A command to reindex all clozes based on their position.

Concisely describe alternatives you've considered (if any)

Currently, if I remove [[oc2::...]] and use shortcut Ctrl+Shift+C to cloze adipiscing elit, cloze overlappers would use the maximum index (10) and generate [[oc11::adipiscing elit]]. During review then, the context before [[oc11::adipiscing elit]] is considered to be [[oc10::Nam vestibulum]] instead of [[oc2::consectetuer]], so sequential context is lost.

The only way I can achieve this result, for now, is to remove [[oc2::...]], add [oc3::], and manually edit index in all subsequent cards from oc3 to oc10. Disadvantage: becomes tedious when there are many clozes to change.

Yet another solution: remove subsequent clozes one by one, and re-cloze them so they are in the desired order. It's a slight improvement over manual editing. (Side note: I suspect this should work, but the Alt+Shift+R shortcut to remove cloze in selected text, as I have seen in Wiki/Usage, does not work for me. It simply inserts "R" in text box.)

Yet another solution: Break the whole paragraph into lines to utilize the automatic index behavior in list clozes. Disadvantage: it would not look great at all for a paragraph of text.

More information

Additional context: Add any other context or screenshots about the feature request here.

  • Anki Desktop Version 2.1.14 (7b93e985)
  • Arch Linux
  • Cloze Overlapper v0.3.0

Again, thanks for the gorgeous plugin!

Can't resize the Options window, text does not fit

Prerequisite checklist

  • In case of a bug: Have you tried restarting Anki?
  • Are you running the latest version of the add-on. Have you redownloaded the add-on from AnkiWeb to make sure?
  • Did you check the add-on documentation (e.g. AnkiWeb description, Wiki if it exists) for known issues?
  • Did you perform a cursory search through the existing issue reports?

What is the problem/feature you would like to see fixed/implemented?

Many strings do not fit in their space in the window. Pulling a window corner moves the window, unlike with Firefox or Anki.
Bildschirmfoto vom 2019-03-11 17-50-21

How can we reproduce the problem?

[What were you doing when the problem occurred?]

  1. Set the Qt4 font to DejaVu Sans Book size 12 or 14 (using qtconfig-qt4).
  2. Open Cloze Overlapper Options.

Expected behavior:

Text fits, as there is plenty of space on the screen for the window to grow.

If the window can't grow on its own, I can resize it.

Actual behavior:

Neither of the above.

Reproducible?:

Yes.

Version information

Anki

Version 2.0.52
Qt 4.8.1 PyQt 4.9.1

System

  • Operating system: [Linux]
  • Version: [Debian testing]

[Anki 2.0.52] AttributeError: '_Collection' object has no attribute 'schedVer' when rating an old card

Problem description

Can't rate a card created with the previous Cloze Overlapper.
I updated the templates, only adding Text 21-36 and correcting the stylesheet accordingly.

Checklist

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

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:

Version 2.0.52
Qt 4.8.1 PyQt 4.9.1

Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: Debian GNU/Linux 10.3 stable+testing

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Cloze Overlapper version = "0.4.0-alpha.0"

Error message (if any)

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

An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons

Traceback (most recent call last):
  File "aqt/webview.py", line 21, in link
  File "aqt/reviewer.py", line 323, in _linkHandler
  File "aqt/reviewer.py", line 268, in _answerCard
  File "anki/sched.py", line 63, in answerCard
  File "anki/hooks.py", line 61, in repl
  File "/home/fc/.local/share/Anki2/addons/cloze_overlapper/sched.py", line 103, in myBurySiblings
    if mw.col.schedVer() == 1:
AttributeError: '_Collection' object has no attribute 'schedVer'```

Improve support for HTML tags

Awesome add-on.
It could be more awesome if html can be overlapped say tags. The use of this is obvious. Think about wanting to learn and memorize origami through sequence of picture.

Do not show success message if notes not added

E.g. scenario:

  • user has added an additional field in position 1
  • field 1 is empty when adding note, whereas original field is filled out

Expected behavior:

  • no confirmation message from add-on on added notes

Actual behavior:

  • confirmation message regardless of whether note creation succeeded or not

Note: we do account for an empty Original field (because it's usually at position 1). But in corner cases where users have modified their templates the add-on does not behave as expected in this scenario.

Possible enhancements to the Toggle List feature

I really appreciate that you included the feature to toggle ordered and unordered lists. I think your add-on does a better job with lists than the "Power Format Pack" add-on, which I've consequentally deleted. However, there are a few ways I think the list feature could be improved:

  1. Currently every line of text becomes a list item when a Toggle List hotkey is pressed. But sometimes I only want parts of the text to be formatted as a list. Would it be possible to introduce the following behavior when a Toggle List hotkey is pressed: if no text is selected, toggle list formatting for all lines; but if only some text is selected, then toggle list formatting for only those lines.

    (Because this suggestion requires you to no longer assume that the user wants every line to be a list item as well as a cloze deletion, it might make sense to de-link toggling list formatting and generating overlapping clozes.)

  2. I'd love to be able to use the list feature of this add-on even for other note types. It seems this might be possible if you made toggling list formatting and generating overlapping clozes independent commands. That way, the "Reminder: can only generate overlapping clozes ..." warning would only appear when attempting to generate overlapping cloze. Meanwhile, the user could toggle list formatting freely when working with other note types.

Thanks as always for your great work!

Mathjax problem - false alert

Oops, it turns out it was the case of a dumb user. First of all, the problem also occured with regular clozes, and second, could be avoided by adding more whitespace around the < and >.

Problem description

Trying to cloze overlap cards with Mathjax which include < and > symbols. Cloze overlapper shows them in the answer correctly when they are written out as &lt;/&gt; - but then they will be shown as error once "Reveal all clozes" is pressed - and basically vice versa.

image

The issue persists when all add-ons are disabled (please forgive having them toggled on in the screenshot), it surely is some bug in note template.

Here is a test deck (additionally zipped because of Github, not a renamed apkg!):
Default.apkg.zip

Checklist

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

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Anki 2.1.23
Cloze Overlapper 0.40.0-alpha.0

Debug-Info:
Anki 2.1.23 (de9543ff) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.15.4
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-04-02 15:43:11

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Anki Simulator ['anki_simulator', 2020-03-28T20:47, 'None', '']
AwesomeTTS Google Cloud Text-to-Speech unofficial ['814349176', 2020-02-24T13:36, 'None', '']
BetterTags ['bettertags', 2020-01-28T21:30, 'None', '']
Cloze Overlapper ['cloze_overlapper', 2019-02-01T13:37, 'None', '']
Customize Sidebar ['1988760596', 2020-01-28T11:44, 'None', '']
Dancing Baloney Allows changing wallpapers with live preview ['378638814', 2020-03-27T06:28, 'None', mod]
Frozen Fields ['516643804', 2020-03-01T05:12, 'None', '']
Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-01-16T13:36, 'None', '']
ImageResizer ['1214357311', 2020-02-11T14:37, 'None', '']
Puppy Reinforcement ['puppy_reinforcement', 2020-03-02T20:22, 'None', mod]
Review Heatmap ['review_heatmap', 2018-10-28T23:06, 'None', '']
Searching PDF Reading  Note-Taking in Add Dialog ['1781298089', 2020-04-01T23:36, 'None', mod]
Symbols As You Type ['2040501954', 2020-03-18T04:36, 'None', '']
True Retention ['613684242', 2019-07-29T13:23, 'None', '']
Visual Feedback for Reviews ['review_feedback', 2020-01-29T20:43, 'None', '']

===IDs of active AnkiWeb add-ons===
1214357311 1374772155 1781298089 1988760596 2040501954 378638814 516643804 613684242 814349176

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnkiWebView Inspector ['31746032', 2019-05-03T00:43, 'None', '']
Extended Card Stats During Review ['1008566916', 2017-08-29T20:59, 'None', '']
PDF Glossary Exporter ['pdf_glossary', 2019-08-19T14:35, 'None', '']
Progress Bar ['2091361802', 2020-02-01T13:10, 'None', '']

Anki's handling of MathJax and clozes breaks Cloze Overlapper

Problem description

The changes in ankitects/anki@389bf07 break Cloze Overlapper.
The cards now look something like this:
show_all_the_clozes

Checklist

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've built the add-on (9eabb6a) with aab
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I'm running Anki from source from the mentioned commit and ankitects/anki@9bb0348 (the most recent commit at the time)
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

If you are using Anki 2.1
Anki 2.1.17 (389bf07b) Python 3.7.6 Qt 5.12.5 PyQt 5.13.2
Platform: Linux
Flags: frz=False ao=True sv=1

Add-ons:

Extended Card Stats During Review (disabled)
Extended Schema Hash (disabled)
Field History (disabled)
Image Occlusion Enhanced for Anki 21 alpha (disabled)
Search and Replace Tags (disabled)
Symbols (disabled)
Anki Habitica for 21 (disabled)
Trigger and actions change one card depending on what occurs on another card (disabled)
Export cards selected in the Browser (disabled)
Progress Bar (disabled)
Highlight Search Results in the Browser (disabled)
Batch Editing (disabled)
Add Hyperlink (disabled)
Let it Snow (disabled)
Frozen Fields (disabled)
Advanced Browser (disabled)
Hierarchical Tags (disabled)
Anki MC (disabled)
Cloze Overlapper
conflate_excess_ease (disabled)
hourly_breakdown (disabled)
Mini Format Pack (disabled)
Pop-up Dictionary (disabled)
print_as_flashcards (disabled)
Puppy Reinforcement (disabled)
Review Heatmap (disabled)
right_hand_reviews (disabled)
tagedit_subtag_completer (disabled)
visual_feedback (disabled)
Night Mode (disabled)
  • OS: Debian
  • version: bullseye

Error message (if any)

No errors, but I get this on the console.
I'm not sure if it's related though, because I got it with previous commits of Anki as well, where the overlapping cloze cards were still displayed correctly.

template rendering didn't match - please report:
'<div class="front">
  <div class="title">the list</div>
  <div class="text">
    <div><span class=cloze>[...]</span></div><div>2. is</div><div>...</div><div>...</div><div>...</div><div>...</div><div>...</div>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <div class="hidden">
       <div>1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></div>
    </div>
  </div>
</div>'
'<div class="front">
  <div class="title">the list</div>
  <div class="text">
    <div><span class=cloze>[...]</span></div><div>2. is</div><div>...</div><div>...</div><div>...</div><div>...</div><div>...</div>
    <div>1. this</div><div>2. is</div><div>3. some</div><div>...</div><div>...</div><div>...</div><div>...</div>
    <div>...</div><div>2. is</div><div>3. some</div><div>4. list</div><div>...</div><div>...</div><div>...</div>
    <div>...</div><div>...</div><div>3. some</div><div>4. list</div><div>5. with</div><div>...</div><div>...</div>
    <div>...</div><div>...</div><div>...</div><div>4. list</div><div>5. with</div><div>6. some</div><div>...</div>
    <div>...</div><div>...</div><div>...</div><div>...</div><div>5. with</div><div>6. some</div><div>7. items</div>
    <div>...</div><div>...</div><div>...</div><div>...</div><div>...</div><div>6. some</div><div>7. items</div>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <div class="hidden">
       <div>1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></div>
    </div>
  </div>
</div>'
template rendering didn't match - please report:
'<div class="back">
  <div class="title">the list</div>
  <div class="text">
    <div><span class=cloze>1. this</span></div><div>2. is</div><div>...</div><div>...</div><div>...</div><div>...</div><div>...</div>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <div class="hidden">1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></div>
  </div>
  <div class="extra"><hr></div>
  <div class="text"><div class="fullhint">
<a class=hint href="#"
onclick="this.style.display='none';document.getElementById('hint2072769696').style.display='block';return false;">
Show Original</a><div id="hint2072769696" class=hint style="display: none">1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></div>
</div></div>
  <div class="extra">
    
    
  </div>
</div>
<script>
  // remove cloze syntax from revealed hint
  var hint = document.querySelector('.fullhint>[id^="hint"]')
  var html = hint.innerHTML.replace(/\[\[oc(\d+)::(.*?)(::(.*?))?\]\]/mg, "$2")
  hint.innerHTML = html
  // scroll to cloze
  document.addEventListener('DOMContentLoaded', function() {
    setTimeout(function(){
      const cloze1 = document.getElementsByClassName("cloze")[0];
      const rect = cloze1.getBoundingClientRect();
      const absTop = rect.top + window.pageYOffset;
      const absBot = rect.bottom + window.pageYOffset;
      if (absBot >= window.innerHeight) {
        const height = rect.top - rect.bottom
        const middle = absTop - (window.innerHeight/2) - (height/2);
        window.scrollTo(0, middle);};
    }, 1);
  }, false);
</script>'
'<div class="back">
  <div class="title">the list</div>
  <div class="text">
    <div><span class=cloze>1. this</span></div><div>2. is</div><div>...</div><div>...</div><div>...</div><div>...</div><div>...</div>
    <div>1. this</div><div>2. is</div><div>3. some</div><div>...</div><div>...</div><div>...</div><div>...</div>
    <div>...</div><div>2. is</div><div>3. some</div><div>4. list</div><div>...</div><div>...</div><div>...</div>
    <div>...</div><div>...</div><div>3. some</div><div>4. list</div><div>5. with</div><div>...</div><div>...</div>
    <div>...</div><div>...</div><div>...</div><div>4. list</div><div>5. with</div><div>6. some</div><div>...</div>
    <div>...</div><div>...</div><div>...</div><div>...</div><div>5. with</div><div>6. some</div><div>7. items</div>
    <div>...</div><div>...</div><div>...</div><div>...</div><div>...</div><div>6. some</div><div>7. items</div>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    <div class="hidden">1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></div>
  </div>
  <div class="extra"><hr></div>
  <div class="text"><div class="fullhint">
<a class=hint href="#"
onclick="this.style.display='none';
document.getElementById('hint915aeacba8c04fe6').style.display='block';
return false;">
1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></a>
<div id="hint915aeacba8c04fe6" class=hint style="display: none">Show Original</div>
</div></div>
  <div class="extra">
    
    
  </div>
</div>
<script>
  // remove cloze syntax from revealed hint
  var hint = document.querySelector('.fullhint>[id^="hint"]')
  var html = hint.innerHTML.replace(/\[\[oc(\d+)::(.*?)(::(.*?))?\]\]/mg, "$2")
  hint.innerHTML = html
  // scroll to cloze
  document.addEventListener('DOMContentLoaded', function() {
    setTimeout(function(){
      const cloze1 = document.getElementsByClassName("cloze")[0];
      const rect = cloze1.getBoundingClientRect();
      const absTop = rect.top + window.pageYOffset;
      const absBot = rect.bottom + window.pageYOffset;
      if (absBot >= window.innerHeight) {
        const height = rect.top - rect.bottom
        const middle = absTop - (window.innerHeight/2) - (height/2);
        window.scrollTo(0, middle);};
    }, 1);
  }, false);
</script>'

Implement automatic unsuspend when suspend option active

Ideally we would have the full cloze appear once all regular clozes have graduated from learning.

Or, with a more sophisticated implementation: After all regular clozes have reached at least an interval of X days, with X being user-customizable.

Option to limit the number of ellipses

Prerequisite checklist

  • Are you running the latest version of the add-on. Have you redownloaded the add-on from AnkiWeb to make sure?
  • Did you check the add-on documentation (e.g. AnkiWeb description, Wiki if it exists) for known issues?
  • Did you perform a cursory search through the existing issue reports?

What is the problem/feature you would like to see fixed/implemented?

I think all the ellipsis characters provide unnecessary context if you need the association between the previous and the current items not based on their position in a long list (especially relative to a very far end). There could be a way to limit the amount of them like there is with "Context Before" and "Context After".

How can we reproduce the problem?

  1. Generate clozes out of a long list.

Expected behavior: [What you expected to happen]

First line
{{c1::Second line}}
...

or at most

First line
{{c1::Second line}}
...
...

Actual behavior: [What actually happened]

First line
{{c1::Second line}}
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...

Reproducible?:

Yes.

Version information

Anki

Version 2.0.52
Qt 4.8.1 PyQt 4.9.1

System

  • Operating system: Linux
  • Version: Debian testing

Add-on impossible to be installed on Anki

Problem description

I downloaded the Add on Cloze Overlapper and followed precisely your YouTube on how to install it in Anki.
However here I receive the follwoing error message when I restart Anki:

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '⁨cloze_overlapper⁩':
⁨Traceback (most recent call last):
File "aqt/addons.py", line 211, in loadAddons
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/init.py", line 41, in
from . import main # noqa: F401
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/main.py", line 42, in
from .gui.options_global import initializeOptions
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/gui/options_global.py", line 49, in
from .forms import settings_global
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/gui/forms/init.py", line 41, in
from .anki21 import * # noqa: F401
ModuleNotFoundError: No module named 'cloze_overlapper.gui.forms.anki21'

Checklist

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

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

*Please fill out the section corresponding with your Anki version: 2.1.33

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

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.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.15.6
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2020-09-03 13:15:50
Add-ons possibly involved: ⁨cloze_overlapper⁩

Caught exception:
Traceback (most recent call last):
  File "aqt/addons.py", line 211, in loadAddons
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/__init__.py", line 41, in <module>
    from . import main  # noqa: F401
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/main.py", line 42, in <module>
    from .gui.options_global import initializeOptions
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/gui/options_global.py", line 49, in <module>
    from .forms import settings_global
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/gui/forms/__init__.py", line 41, in <module>
    from .anki21 import *  # noqa: F401
ModuleNotFoundError: No module named 'cloze_overlapper.gui.forms.anki21'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "aqt/main.py", line 1094, in onPrefs
  File "aqt/__init__.py", line 105, in open
  File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-8>", line 2, in __init__
  File "anki/hooks.py", line 638, in decorator_wrapper
  File "anki/hooks.py", line 629, in repl
  File "aqt/preferences.py", line 24, in __init__
AttributeError: 'NoneType' object has no attribute 'backend'

If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:


Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: Catalina
  • version: 10.15.6

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

image

Add ons installed:
Advanced Browser
Anki Connect
Batch Editing
Button Colours Good Agzain
Cloze_overlapper
Free Weekend
French Keyboard
Hierarchical Tags 2
Image occlusion Enhanced
Load balancer
Open Added Today from Reviewer
Pop Up dictionnary beta
Progres Graph
Review Heatmap
Search and Replace Tag

Error message (if any)

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

When loading '⁨cloze_overlapper⁩':
⁨Traceback (most recent call last):
  File "aqt/addons.py", line 211, in loadAddons
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/__init__.py", line 41, in <module>
    from . import main  # noqa: F401
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/main.py", line 42, in <module>
    from .gui.options_global import initializeOptions
  File "/Users/gbeyrend/Library/Application Support
[ANki.docx](https://github.com/glutanimate/cloze-overlapper/files/5173631/ANki.docx)
/Anki2/addons21/cloze_overlapper/gui/options_global.py", line 49, in <module>
    from .forms import settings_global
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/gui/forms/__init__.py", line 41, in <module>
    from .anki21 import *  # noqa: F401
ModuleNotFoundError: No module named 'cloze_overlapper.gui.forms.anki21'

I want to make a card with only 1 cloze deletion

I understand this is made for memorizing an order but i want to use it how i use my regular cloze deletion for things that are not in order. I want to make a note with only 1 card can you help?

David
screenshot_5
screenshot_1

Creating New Card Bug

Problem description

Unable to complete any new "close overlapper" card types; prompted with error after completing all fields.

Checklist

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

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

If you are using Anki 2.1

Debug info:
Anki 2.1.28 (7d8818f8) Python 3.8.0 Qt 5.15.0 PyQt 5.15.0
Platform: Mac 10.15.6
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-10-21 15:34:29
Add-ons possibly involved: ⁨Cloze Overlapper⁩

Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 482, in handler
File "aqt/editor.py", line 479, in
File "/Users/alex/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 154, in
editor.saveNow(lambda: callback(editor, *args, **kwargs))
File "/Users/alex/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 283, in onOlClozeButton
return onFieldReady()
File "/Users/alex/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 270, in onFieldReady
overlapper.add()
File "/Users/alex/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
self.updateNote(fields, full, setopts, custom)
File "/Users/alex/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 203, in updateNote
note.flush()
File "anki/notes.py", line 67, in flush
AssertionError

Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: MacOS
  • version: 10.15.6 (19G2021)

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
image
image

Error message (if any)

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

Bug with add on mia

Problem description

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

Checklist

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

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:
2.1.22

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Answer portion of MIA
"Invalid HTML on card: TypeError: Cannot read property 'innerHTML' of null"
If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:


Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: Win
  • version: 10

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Error message (if any)

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

Option to require confirmation before automatically changing text fields

Prerequisite checklist

  • In case of a bug: Have you tried restarting Anki?
  • Are you running the latest version of the add-on. Have you redownloaded the add-on from AnkiWeb to make sure?
  • Did you check the add-on documentation (e.g. AnkiWeb description, Wiki if it exists) for known issues?
  • Did you perform a cursory search through the existing issue reports?

What is the problem/feature you would like to see fixed/implemented?

On a press of a button and even some other actions (review or note edit?) after editing the Original field, CO updates any text in the note fields, including text that I have entered or edited myself. It should ask for a confirmation.

It is a possible serious dataloss for me, because I add pictures for almost every cloze (bus routes). To avoid it, I would have to add a Pre field and a Remarks/Extra field for each cloze field.

How can we reproduce the problem?

  1. Enter "123\n456" into Original and abc into Text1.
  2. Press CO's [.] button. It also happens without pressing any button, if the Original field was edited.

Expected behavior:
A confirmation request.

Actual behavior:
The abc was overwritten with {{c1::123}}\n... silently.

Reproducible?:
Yes.

Version information

Anki Version 2.0.52
Qt 4.8.1 PyQt 4.9.1

CO "Updated 2017-03-08" on AnkiWeb.

System

  • Operating system: Linux
  • Version: Debian GNU/Linux testing

Wrong tool tip for "Don't generate full cloze"

Small issue: the tool tip for "Don't generate full cloze" in the Overlapping Cloze Note Settings seems to be wrong. (It's identical to what I see when hovering my mouse over "No cues for first item".)

My mouse disappeared from the screenshot, but I was hovering over "Don't generate full cloze".

timed-05_17_17 at 09 06 23pm

Scroll to the cloze spot?

Great add-on. I was trying anki cloze, but it doesn't scroll to the cloze spot in long articles. I find a solution on Reddit which leads me here. Does the scroll function work or just me?

How to update notes?

I notice a typo in a cloze note, so I update it. Except that the Text1,Text2, etc. fields do not update to reflect that change. Can I force them to update?

When will this addon available for Anki 2.1?

Checklist

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

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've checked if anyone else asked this question before by looking through the issue reports.

Your question

When will this addon available for Anki 2.1? I was able to build the addon using aab and install it. But I got errors after restarting Anki informing missing forms files

Note ID AssertionError when adding notes on Anki 2.1.28+

Problem description

When creating new notes with overlapping clozes, there is an AssertionError (see below), because there is no id for the new note yet.
I think that the issue was introduced with ankitects/anki@f637ac9#diff-4a37772b551db2baaf677e04d51a3c04, but I'm not sure.

Checklist

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I use Cloze Overlapper's commit 9eabb6a built with aab
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I run Anki from source
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

If you are using Anki 2.1

Debug Info:

    
    Anki 2.1.28 (eb032c4e) Python 3.8.3 Qt 5.12.5 PyQt 5.14.2
    Platform: Linux
    Flags: frz=False ao=True sv=2
    Add-ons, last update check: 2020-05-26 20:07:18
    
    
    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    '' ['hourly_breakdown', 0, 'None', '']
    '' ['print_as_flashcards', 0, 'None', '']
    '' ['puppy_reinforcement', 0, 'None', '']
    '' ['right_hand_reviews', 0, 'None', mod]
    '' ['tagedit_subtag_completer', 0, 'None', '']
    Add Hyperlink ['318752047', 2020-04-03T18:06, 'None', '']
    Anki Zoom ['538879081', 2020-04-04T02:20, 'v1.1.3', '']
    AnkiWebView Inspector ['31746032', 2019-05-03T00:43, 'None', '']
    Batch Editing ['291119185', 2019-06-17T17:52, 'None', '']
    Cloze Overlapper ['cloze_overlapper', 2019-08-11T08:03, 'None', '']
    Extended Card Stats During Review ['1008566916', 2018-10-03T14:53, 'None', '']
    Extended Schema Hash ['1187737890', 2020-01-19T14:09, 'None', '']
    Field History ['1247884413', 2019-01-08T19:34, 'None', mod]
    Frozen Fields ['516643804', 2020-03-01T05:12, 'None', '']
    Hierarchical Tags ['anki-hierarchical-tags', 0, 'None', '']
    Highlight Search Results in the Browser ['225180905', 2019-11-27T16:06, 'None', '']
    Image Occlusion Enhanced ['image_occlusion_enhanced', 2019-09-11T13:45, 'None', '']
    Leaderboard ['41708974', 2020-05-07T12:22, 'None', mod]
    Mini Format Pack ['mini_format_pack', 2019-08-12T09:37, 'None', '']
    Multiple Choice for Anki ['1566095810', 2020-04-10T07:50, 'None', '']
    Opening the same window multiple time ['354407385', 2020-05-16T02:59, 'None', '']
    Pop-up Dictionary ['popup_dictionary', 2019-10-18T20:28, 'None', '']
    Quick tagging 21 ['304770511', 2020-02-11T07:17, 'None', mod]
    Review Heatmap ['review_heatmap', 2020-03-22T06:57, 'None', '']
    Search and Replace Tags ['138501288', 2018-10-01T16:47, 'None', '']
    Spell Check ['spell_check', 2020-03-17T13:19, 'None', '']
    Symbols ['1461102936', 2019-06-17T17:52, 'None', mod]
    Trigger and actions change one card depending on what occurs on another card ['1981494159', 2020-05-04T22:53, 'None', mod]
    Visual Feedback for Reviews ['review_feedback', 2020-01-29T20:43, 'None', '']
    
    ===IDs of active AnkiWeb add-ons===
    1008566916 1187737890 1247884413 138501288 1461102936 1566095810 1981494159 225180905 291119185 304770511 31746032 318752047 354407385 41708974 516643804 538879081
    
    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    Anki Habitica for 21 ['1758045507', 2020-03-24T09:28, 'None', mod]
    Keep model of add cards ['424778276', 2020-05-17T01:18, 'None', '']

Error message (if any)

Caught exception:
Traceback (most recent call last):
  File "/home/zjosua/sw_dev/anki/qt/aqt/webview.py", line 467, in handler
    cb(val)
  File "/home/zjosua/sw_dev/anki/qt/aqt/editor.py", line 477, in <lambda>
    self.web.evalWithCallback("saveNow(%d)" % keepFocus, lambda res: callback())
  File "/home/zjosua/.local/share/Anki2/addons21/cloze_overlapper/editor.py", line 154, in <lambda>
    editor.saveNow(lambda: callback(editor, *args, **kwargs))
  File "/home/zjosua/.local/share/Anki2/addons21/cloze_overlapper/editor.py", line 283, in onOlClozeButton
    return onFieldReady()
  File "/home/zjosua/.local/share/Anki2/addons21/cloze_overlapper/editor.py", line 270, in onFieldReady
    overlapper.add()
  File "/home/zjosua/.local/share/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
    self.updateNote(fields, full, setopts, custom)
  File "/home/zjosua/.local/share/Anki2/addons21/cloze_overlapper/overlapper.py", line 206, in updateNote
    note.flush()
  File "/home/zjosua/sw_dev/anki/pylib/anki/notes.py", line 66, in flush
    assert self.id != 0
AssertionError

Error building from source

Problem description

I read on here that you could build the addon from source, so I downloaded v0.4.0-alpha.0 from the tags page. Then I ran make on the root directory. Instead of building the addons, it returned some errors.

Checklist

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

  • [N/A] I've restarted Anki to see if it helps
  • [N/A] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [N/A] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • [N/A] I've tried to disable other add-ons to see if there are any interactions present
  • [N/A] My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.13.6
Flags: frz=True ao=True sv=1

Add-ons:

Image Occlusion Enhanced for Anki 21 alpha
load balancer
Deck Stats
Anki Habitica for 21
AnkiConnect
Progress Bar
Card Info During Review
Button Colours Good Again
Japanese Support
Allows empty first field during adding and import
Life Drain
Polar Connect - PDF and Incremental Reading with Anki Sync
MorphMan for Anki 21
Review Heatmap

Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: macOS High Sierra
  • version: 10.13.6

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

image

Error message (if any)

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

rm -rf build
find . \( -name '*.pyc' -o -name '*.pyo' -o -name '__pycache__' \) -delete
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
# Create build directory
mkdir -p build/dist build/dist21
# Remove existing release build of same version
rm -f *-release--anki2*.zip
# Create a git snapshot of source files at  tag
git archive --format tar  | tar -x -C build/dist/
usage: git archive [<options>] <tree-ish> [<path>...]
   or: git archive --list
   or: git archive --remote <repo> [--exec <cmd>] [<options>] <tree-ish> [<path>...]
   or: git archive --remote <repo> [--exec <cmd>] --list

    --format <fmt>        archive format
    --prefix <prefix>     prepend prefix to each pathname in the archive
    -o, --output <file>   write the archive to this file
    --worktree-attributes
                          read .gitattributes in working directory
    -v, --verbose         report archived files on stderr
    -0                    store only
    -1                    compress faster
    -9                    compress better

    -l, --list            list supported archive formats

    --remote <repo>       retrieve the archive from remote repository <repo>
    --exec <command>      path to the remote git-upload-archive command

# Copy licenses to module directory
for license in build/dist/LICENSE* build/dist/resources/LICENSE*; do \
		[[ ! -f "$license" ]] && continue ; \
		name=$(basename $license) ; \
		ext="${name##*.}" ; \
		fname="${name%.*}" ; \
		echo "build/dist/src/cloze_overlapper/${fname}.txt" ; \
		cp $license "build/dist/src/cloze_overlapper/${fname}.txt" ; \
	done
# Include referenced assets that are not part of version control
[[ -d "resources/icons/optional" ]] && \
		 cp -r "resources/icons/optional" "build/dist/resources/icons/" || true
# Update credits if possible
type patreon_update_credits_addon >/dev/null 2>&1 && \
		cp addon.json build/dist/ && \
		cd build/dist && patreon_update_credits_addon -r || true
# Duplicate build folder for both build targets
cp -r build/dist/* build/dist21
cp: build/dist/*: No such file or directory
make: *** [buildarchive] Error 1

Cloze deletion single card error when adding to deck

Problem description

The smallest example I can find where the error is reproduced is the following:

image

In short I believe the add-on currently doesn't support single cloze card design.
One useful application would be tables, in which I would like to reveal multiple fields at the same time.
The fields seem to be correctly populated but adding the card to the deck fails with the error below.
This issue is present only when creating/adding new cards, and not when editing existing ones.

Checklist

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

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
MacOS 10.15.5

Error message (if any)

Caught exception:
Traceback (most recent call last):
  File "aqt/webview.py", line 493, in handler
  File "aqt/editor.py", line 481, in <lambda>
  File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-14>", line 2, in _addCards
  File "anki/hooks.py", line 638, in decorator_wrapper
  File "anki/hooks.py", line 635, in repl
  File "/Users/devster/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 301, in onAddCards
    ret, total = overlapper.add()
  File "/Users/devster/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
    self.updateNote(fields, full, setopts, custom)
  File "/Users/devster/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 203, in updateNote
    note.flush()
  File "anki/notes.py", line 67, in flush
AssertionError

Not generating continuous cloze captions

After reinstalling Anki with the Cloze overlapper plug-in, I am not able to generate multiple close captions (oc1, oc2, etc.) Instead both the shortcut Ctrl-Shift-C and the generate caption button on the toolbar are only generating {{c1::}} captions.
screen shot 2018-04-03 at 19 29 54

Show Original is not working with LaTeX

I want to use the cloze-overlapper addon and LaTeX together. The following example works fine except that somehow the cloze syntax does not get removed from the Show Original hint.

[latex]
\section*{Bernoulli's Inequality}

For any real number $x$ [[oc1::$> -1, \, x \neq 0$]] and any integer $n$ [[oc2:: $\geq 2$]] we have
[[oc3::$$(1+x)^n > 1+nx.$$]]
[/latex]

I would be very grateful for any help.

Sincerely, Vincent

Add-on "v0.4.0-alpha.0" failed to load in Anki 2.1

Problem description

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?

  1. Clone repo
  2. Run aab build in the root of the project
  3. Add cloze-overlapper-v0.4.0-alpha.0-anki21.ankiaddon to Anki
  4. Restart
  5. Observe an error as shown in the screenshot at the bottom of the ticket

SHA of commits I tried to run aab build on:

Checklist

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

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

Version 2.1.14 (7b93e985)
Qt 5.12.1 PyQt 5.11.3
If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Anki 2.1.14 (7b93e985) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.14.5
Flags: frz=True ao=True sv=1

Add-ons:

Image Occlusion Enhanced for Anki 21 alpha
Hierarchical Tags Addon 20  21
Button Colours Good Again
True Retention
Cloze Overlapper

Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: macOS Mojave
  • version: 10.14.5 (18F132)

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Screen Shot 2019-09-30 at 1 08 54 PM

Error message (if any)

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

Screen Shot 2019-09-30 at 1 09 50 PM

Ability to add remarks to individual cloze items

SO, basically I want to use the plugin, so that I have a list of items, and as I continue it reveals definitions for each of them at the bottom. is there any way to add definition to separate items on the list ?

Error message while adding cards in Anki 2.1.33

IMPORTANT

The easiest fix that I found online was to downgrade to 2.1.26 which actually worked for me so yay! But one person in Glutaminate's Patreon & another on this thread commented that his error still persisted after downgrading to 2.1.26.

Thank you!

Problem description

Error message pops up when trying to add a cloze overlapper card in Anki 2.1.33. The error also pops up if -

  1. I go to Tools > Cloze Overlapper Options > Clicking on Ok.

  2. While in the process of adding a card, before actually adding it, clicking on the settings icon to open the cloze overlapper settings window, and clicking Ok.

Checklist

  • [ x] I've restarted Anki to see if it helps
  • [ x] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [ x] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • [ x] My issue disappears when I hold shift while starting Anki.
  • [ x] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

2.1.33

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

    
    Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
    Platform: Windows 10
    Flags: frz=True ao=True sv=1
    Add-ons, last update check: 2020-09-18 18:14:54
    
    
    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    BetterTags ['bettertags', 2020-01-29T02:00, 'None', '']
    Cloze Overlapper ['cloze_overlapper', 2019-02-01T18:07, 'None', '']
    Field History ['1247884413', 2020-02-25T09:38, 'None', '']
    Frozen Fields ['516643804', 2020-03-01T09:42, 'None', '']
    Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-04-28T07:51, 'None', '']
    Pop-up Dictionary beta ['153625306', 2019-10-19T19:36, 'None', '']
    Puppy Reinforcement ['puppy_reinforcement', 2020-02-05T12:46, 'None', '']
    Review Heatmap ['review_heatmap', 2018-10-29T03:36, 'None', '']
    TagSelectorV2 ['1022577188', 2020-08-13T08:39, 'None', mod]
    Visual Feedback for Reviews ['review_feedback', 2020-01-30T01:13, 'None', '']
    
    ===IDs of active AnkiWeb add-ons===
    1022577188 1247884413 1374772155 153625306 516643804
    
    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    ReMemorize Rescheduler with sibling and logging v140 ['323586997', 2020-04-17T12:37, 'None', mod]

Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: Windows 10
  • version: 1903 (OS Build 18362.1082)

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

image

Error message (if any)

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

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.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-18 18:14:54

Caught exception:
Traceback (most recent call last):
  File "aqt\webview.py", line 493, in handler
  File "aqt\editor.py", line 481, in <lambda>
  File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-32>", line 2, in _addCards
  File "anki\hooks.py", line 638, in decorator_wrapper
  File "anki\hooks.py", line 635, in repl
  File "C:\Users\Hp\AppData\Roaming\Anki2\addons21\cloze_overlapper\editor.py", line 301, in onAddCards
    ret, total = overlapper.add()
  File "C:\Users\Hp\AppData\Roaming\Anki2\addons21\cloze_overlapper\overlapper.py", line 117, in add
    self.updateNote(fields, full, setopts, custom)
  File "C:\Users\Hp\AppData\Roaming\Anki2\addons21\cloze_overlapper\overlapper.py", line 203, in updateNote
    note.flush()
  File "anki\notes.py", line 67, in flush
AssertionError

Ability To Type in Cloze

I'm not sure where you want features such as this @glutanimate.

The ability to type in the cloze would be helpful at times. I'm not sure how difficult it would be to implement it with this addon though. I've tried a few {{type:cloze:}} combinations, but it doesn't look like it's going to be that simple.

I'll look into this later when I have time to dig into the code.

Unable to add cards: Assertion Error

Hello,

In the Anki version 2.1.33 my cloze-overlapper stops working with the following error message:

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.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.15.6
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-15 21:13:03
Add-ons possibly involved: ⁨cloze_overlapper⁩

Caught exception:
Traceback (most recent call last):
  File "aqt/webview.py", line 493, in handler
  File "aqt/editor.py", line 481, in <lambda>
  File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-18>", line 2, in _addCards
  File "anki/hooks.py", line 638, in decorator_wrapper
  File "anki/hooks.py", line 635, in repl
  File "/Users/kaifengliang/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 301, in onAddCards
    ret, total = overlapper.add()
  File "/Users/kaifengliang/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
    self.updateNote(fields, full, setopts, custom)
  File "/Users/kaifengliang/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 203, in updateNote
    note.flush()
  File "anki/notes.py", line 67, in flush
AssertionError

With the guidance on another thread I have tried to install the last stable version of Anki 2.1.26, but with no luck as the add-on now displays “no configuration is found” and is disabled.

I would really appreciate your help!

Thank you,

Cloze overlapping for "Strip HTML when pasting text"

Hi,

I'm trying to use cloze overlapping under the preference "Strip HTML when pasting text", but when I try to do this I get a message stating there are too many Cloze overlaps generated. I use the "Strip HTML when pasting text" preference because it allows me to copy and paste with the original formatting from Microsoft word (i.e. with colour etc). Is there anything I can do to be able to use Cloze Overlapping with the "Strip HTML when pasting text" preference?

Sibling in 2.1

Checklist

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

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've checked if anyone else asked this question before by looking through the issue reports.

Your question

I know that clozes are treated as sibling in anki 2.0. Is this also true for anki 2.1?

Custom Study with "mark" clozes

Hi Glut!
I'm searching a solution for custom study for cloze overlapper

The problem is:
Is there a way to create a custom study for the clozes i've marked?
Because when i "mark" a card, anky "mark" all the clozes, i only want the specific ones

Here is an exemple

Question1
[oc1::Asw1] (i need to MARK it/Specif Tag )

Question2
[oc2::Asw2]

Question3
[oc3::Asw3]
.
Etc..

Does this work with 2.1.29 or 2.1.26?

Checklist

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

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • [x ] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • [ x] I've checked if anyone else asked this question before by looking through the issue reports.

Your question

I receive an error whenever I try to install it into my anki version :(

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.29 (bbff62bf) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-08-02 23:06:41

Caught exception:
Traceback (most recent call last):
File "C:\Users\cuten\AppData\Roaming\Anki2\addons21\cloze_overlapper\gui\options_global.py", line 107, in onAccept
config.save(reset=reset_req)
File "C:\Users\cuten\AppData\Roaming\Anki2\addons21\cloze_overlapper\libaddon\anki\configmanager.py", line 219, in save
saver(self._config[name])
File "C:\Users\cuten\AppData\Roaming\Anki2\addons21\cloze_overlapper\libaddon\anki\configmanager.py", line 460, in _saveSynced
self._getStorageObj("synced")[self._conf_key] = config
File "lib\site-packages\anki\config.py", line 64, in setitem
File "lib\site-packages\anki\config.py", line 40, in set
orjson.JSONEncodeError: Type is not JSON serializable: WrappedDict

subscripts rendered onto separate lines

Prerequisite checklist

  • [ x] In case of a bug: Have you tried restarting Anki?
  • [ n/a] Are you running the latest version of the add-on. Have you redownloaded the add-on from AnkiWeb to make sure?
  • [ looked through issues] Did you check the add-on documentation (e.g. AnkiWeb description, Wiki if it exists) for known issues?
  • [ x] Did you perform a cursory search through the existing issue reports?

When writing a list of items with cloze overlapper

[Be as specific as possible. Provide screenshots if you think they can help.]

How can we reproduce the problem?

[What were you doing when the problem occurred?]

I generated an overlapping cloze with chemical formulas which contained subscripts

Expected behavior: subscripts should be rendered

Actual behavior: subscripts are on their own lines

template:screen shot 2019-02-11 at 11 36 54 am
as rendered:screen shot 2019-02-11 at 11 37 07 am

simplified test case:
template:
screen shot 2019-02-11 at 11 52 04 am
as rendered:
screen shot 2019-02-11 at 11 52 13 am

Reproducible?:
yes

Version information

Anki

Version 2.1.8 (71e0c880)
Qt 5.12.0 PyQt 5.11.3
cloze-overlapper-release-v0.4.0-alpha.0-anki21.zip (Patreon alpha release)

System

  • Operating system: OS X
  • Version: 10.14.2

Impossible to use the Add on in Anki

Problem description

Installation of the adds-on is going well. The Adds-on is correctly installed.
Once I want to create a card, I got an error if I click on "Generate overlapping clozes" or if I click on overlapping cloze options.

Checklist

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

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version: 2.1.33

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

    
    Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
    Platform: Mac 10.15.6
    Flags: frz=True ao=True sv=1
    Add-ons, last update check: 2020-09-03 13:15:50
    
    
    ===Add-ons (active)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    Advanced Browser ['874215009', 2020-04-23T00:45, 'None', '']
    AnkiConnect ['2055492159', 2020-07-12T21:54, 'None', '']
    Batch Editing ['291119185', 2019-06-02T20:47, 'None', '']
    Button Colours Good Again ['2494384865', 2020-02-09T13:18, 'None', '']
    Cloze Overlapper ['cloze_overlapper', 2019-02-01T13:37, 'None', '']
    Free Weekend - or Any Other Day ['742185195', 2020-04-10T13:57, 'None', '']
    French Keyboard Support AZERTY ['228944836', 2019-03-28T13:36, 'None', '']
    Hierarchical Tags 2 ['594329229', 2020-04-11T18:36, 'None', '']
    Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-04-28T04:21, 'None', '']
    Open Added Today from Reviewer ['861864770', 2019-02-22T20:19, 'None', '']
    Pop-up Dictionary beta ['153625306', 2019-03-23T18:32, 'None', '']
    Progress Graphs and Stats for Learned and Matured Cards ['266436365', 2020-03-29T08:26, 'None', '']
    ReviewHeatmap ['723520343', 2019-08-03T17:14, 'None', '']
    Search and Replace Tags ['138501288', 2017-08-29T20:58, 'None', '']
    load balancer ['1417170896', 2020-08-06T01:58, 'None', '']
    
    ===IDs of active AnkiWeb add-ons===
    1374772155 138501288 1417170896 153625306 2055492159 228944836 2494384865 266436365 291119185 594329229 723520343 742185195 861864770 874215009
    
    ===Add-ons (inactive)===
    (add-on provided name [Add-on folder, installed at, version, is config changed])
    

If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:


Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: Catalina
  • version: 10.15.6

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

image

Error message (if any)

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

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.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.15.6
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-03 13:15:50
Add-ons possibly involved: ⁨Cloze OverlapperCaught exception:
Traceback (most recent call last):
  File "aqt/webview.py", line 493, in handler
  File "aqt/editor.py", line 481, in <lambda>
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 154, in <lambda>
    editor.saveNow(lambda: callback(editor, *args, **kwargs))
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 283, in onOlClozeButton
    return onFieldReady()
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 270, in onFieldReady
    overlapper.add()
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
    self.updateNote(fields, full, setopts, custom)
  File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 203, in updateNote
    note.flush()
  File "anki/notes.py", line 67, in flush
AssertionError

Can I use this add-on as a stand alone script?

Checklist

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

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've checked if anyone else asked this question before by looking through the issue reports.

Your question

It is mentioned in the readme file that it used to be a stand alone script. Can I use it as such with this release?
The issue is that I could not get it to run in anki, It seems that there are some fundamental issues that are still not fixed and I am not able to build the add-on since I am using windows.

2.1 support

Since Anki 2.0 support is ending in 2020.

Please make this compatible with Anki 2.1.x

Checklist

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

  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've checked if anyone else suggested this feature before by looking through the issue reports.

Problem case

Is your feature request related to a problem? If so, please describe it here. E.g.: "My workflow is such and such, and this and that would help."

Solution

Concisely describe the solution you would like

Concisely describe alternatives you've considered (if any)

More information

Additional context: Add any other context or screenshots about the feature request here.

.ankiaddon is nowhere to be found

Problem description

As readme states, i must drag-and-drop .ankiapp into addons list. Sadly i cannot find a file or folder with that name in latest release of this addon.
image
image

Obviously, i tried dragging and dropping this folder into addons list. It doesn't work.
I also tried to paste this files into "addons" folder on my pc. It didn't work either.
image

Checklist

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

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Anki 2.1.13 (3ba55990) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=False sv=1

Add-ons:

Edit Field During Review (disabled)
Right Hand Reviews jkl (disabled)
ImageResizer (disabled)
Syntax Highlighting for Code (disabled)
Night Mode (disabled)
Autosync 21 (disabled)
AnkiConnect (disabled)
Automatic Basic to Cloze (disabled)
Fast cards reposition (disabled)
Deck name in title 21 (disabled)
Life Drain (disabled)
cloze_overlapper
review_heatmap (disabled)

Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: Windows 10
  • version:

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
image

Error message (if any)

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

image

Fix compatibility with Anki 2.1.28+

Problem description

Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?
I was trying to generate overlapping clozes with this add-on but however when i clicked on the button, an error shows up. I've done what Anki recommended which is to hold shift while starting anki. The problem does go away then but whenever i clicked on the button again, the same issue persists.

Checklist

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

  • I've restarted Anki to see if it helps
  • I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
  • I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
  • I've tried to disable other add-ons to see if there are any interactions present
  • My issue disappears when I hold shift while starting Anki.
  • I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.

Information about your Anki set-up

Please fill out the section corresponding with your Anki version:

If you are using Anki 2.1

Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):

Anki 2.1.28 (7d8818f8) Python 3.8.0 Qt 5.15.0 PyQt 5.15.0
Platform: Mac 10.15.5
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-08-05 19:12:20
Add-ons possibly involved: ⁨Cloze Overlapper⁩
If you are using Anki 2.0

Please open Anki, go to Help → About, find the two lines starting with Version: and Qt, and copy-paste them between the backticks below:


Please fill in details about your operating system (Windows/macOS/Linux, which version):

  • OS: macOS
  • version: 10.15.5

Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:

Screen Shot 2020-08-06 at 18 51 43

Error message (if any)

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

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, repeat 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-ons section of our support site. 
Debug info:
Anki 2.1.28 (7d8818f8) Python 3.8.0 Qt 5.15.0 PyQt 5.15.0
Platform: Mac 10.15.5
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-08-05 19:12:20
Add-ons possibly involved: ⁨Cloze Overlapper⁩

Caught exception:
Traceback (most recent call last):
  File "aqt/webview.py", line 482, in handler
  File "aqt/editor.py", line 479, in <lambda>
  File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-12>", line 2, in _addCards
  File "anki/hooks.py", line 638, in decorator_wrapper
  File "anki/hooks.py", line 635, in repl
  File "/Users/meylingtr/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 301, in onAddCards
    ret, total = overlapper.add()
  File "/Users/meylingtr/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
    self.updateNote(fields, full, setopts, custom)
  File "/Users/meylingtr/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 203, in updateNote
    note.flush()
  File "anki/notes.py", line 67, in flush
AssertionError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.