-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Anki Error: Caught exception #22
Comments
I'm getting the exact same To try to fix the issue, I completely deleted Anki for macOS, removing all related files in I'm running macOS 10.15.6 and Anki 2.1.32 (as you can see in my pasted 'Error' output below).
|
same issue |
I found two approaches that solved this problem. A quick fixJust go to Tools-> Add-ons -> Auto Markdown, and click the configbutton. You will see something like this: {
"auto": {
"enabled": true,
"uiEditFieldCheckbox": true
},
"code": {
"colorScheme": "default",
"lineNums": true
},
"manual": {
"shortcut": "Ctrl+M",
"uiToggleFieldMarkdownButton": true
}
} Change the line another fixopen the file def fieldDialog__init__(self, mw, nt, ord=0, parent=None):
QDialog.__init__(self, parent or mw)
self.mw = aqt.mw
self.parent = parent or mw
self.col = self.mw.col
self.mm = self.mw.col.models
self.model = nt
self.note = nt
self.mm._remove_from_cache(self.model["id"])
self.mw.checkpoint(_("Fields"))
self.change_tracker = ChangeTracker(self.mw)
self.form = aqt.forms.fields.Ui_Dialog()
self.form.setupUi(self)
self.markdownCheckbox = QCheckBox("Convert to/from markdown automatically")
row = self.form._2.rowCount() + 1
self.form._2.addWidget(self.markdownCheckbox, row, 1)
self.setWindowTitle(_("Fields for %s") % self.model["name"])
self.form.buttonBox.button(QDialogButtonBox.Help).setAutoDefault(False)
self.form.buttonBox.button(QDialogButtonBox.Cancel).setAutoDefault(False)
self.form.buttonBox.button(QDialogButtonBox.Save).setAutoDefault(False)
self.currentIdx = None
self.oldSortField = self.model["sortf"]
self.fillFields()
self.setupSignals()
self.form.fieldList.setDragDropMode(QAbstractItemView.InternalMove)
self.form.fieldList.dropEvent = self.onDrop
self.form.fieldList.setCurrentRow(0)
self.exec_() |
Neither solution worked for me. Still seeing the error. |
Anki Error
The text was updated successfully, but these errors were encountered: