glutanimate/highlight-search-results

[Highlight Search Results in the Browser] google.protobuf.pyext._message.RepeatedScalarConta' object has no attribute 'index'

ijgnd opened this issue · 2 comments

ijgnd commented

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 description on AnkiWeb for known issues?
  • Did you perform a cursory search through existing issue reports?

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

shift+return triggers this error for me:

Anki 2.1.25 (898801eb) Python 3.8.1 Qt 5.14.1 PyQt 5.14.1
Platform: Linux
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-05-03 20:21:46
Add-ons possibly involved: ⁨Highlight Search Results in the Browser⁩

Caught exception:
Traceback (most recent call last):
File "../Anki2/addons21/225180905/browser_search_highlight_results.py", line 121, in <lambda>
    s.activated.connect(lambda: self.onCustomSearch(True))
File "../Anki2/addons21/225180905/browser_search_highlight_results.py", line 95, in onCustomSearch
    idx = cids.index(cur) + 1
AttributeError: 'google.protobuf.pyext._message.RepeatedScalarConta' object has no attribute 'index'

Version information

My debug info:

Anki 2.1.25 (898801eb) Python 3.8.1 Qt 5.14.1 PyQt 5.14.1
Platform: Linux
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-05-03 20:21:46


===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Highlight Search Results in the Browser ['225180905', 2018-02-17T01:40, 'None', '']

===IDs of active AnkiWeb add-ons===
225180905

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])

Thanks for the report! This should be fixed with c7573a9. This, and fixes for everything else broken by 2.1.24+ will land in the next release.

(Of course: If you have the time, I'd appreciate it if you could give master a try and let me know if it works for you. Four eyes are always better than two!)