fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
177 stars 24 forks source link

Addon UI ruins after first (successful) call #302

Closed camerooncameroon closed 2 years ago

camerooncameroon commented 2 years ago

Describe the bug After installing, the first try to use the addon is ok (pls see the screenshot): 2021-11-18_17-55-23

... but then you try to use it for the second etc time, then it looks like: 2021-11-18_17-55-46

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Add new Note' dialog
  2. And you will see first - normal addons behaviour (pls see 1st screenshot)
  3. If you do it again - then you'll see a strange addon's view (2nd screenshot)

Expected behavior Expected is to always show as for the first time after installing/reactivating the addon

Screenshots Pls see above

Environment (please complete the following information):

fonol commented 2 years ago

Hi, I see you are using some other edit add-ons (multi-column?). Does the error occur when disabling these? In general, I don't think the add-on version on Ankiweb will run on 2.1.49 (there have been lots of changes to the editor). 2.1.50 (which can be tested in beta) will introduce even more breaking changes, and that is why it is the version that I currently test against. Which means I will wait until 2.1.50 is released, and then update the add-on on Ankiweb.

camerooncameroon commented 2 years ago

Thanks! Yes I disabled all addons and then tried to run your addon with the same results. Good luck in coding the new version for the 2.1.50 Anki Desktop, we'll be waiting to try ))

camerooncameroon commented 2 years ago

I found the cause of the error, it's the conflict with the addon Customize Editor Stylesheet. After disabling (NB: and restart Anki!), there's no damage to the SIAC addon UI

fonol commented 2 years ago

Thanks for investigating! :)