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
178 stars 24 forks source link

After the plug-in is updated, the screenshot function cannot be used to fill in the field of the card #235

Closed WangChen-coding closed 3 years ago

WangChen-coding commented 3 years ago

Describe the bug A clear and concise description of what the bug is. After the plug-in is updated, the screenshot function cannot be used to fill in the field of the card To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error After the screenshot is filled in the specified field of the card, the content will not be displayed. After switching the card type, the contents of the screenshot will appear in the fields of other cards. image

image After restarting the add card page, the problem can be solved, and it will appear again later

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

fonol commented 3 years ago

Can you start Anki in console mode and look for any errors that appear if you use the scissor tool?

Edit: Also, does the issue persist with other add-ons disabled?

WangChen-coding commented 3 years ago

I don't know how to turn on console mode. I don't know if you will encounter this problem, but if it can't be used, I can directly use the screenshot of the system, and then paste it into the field of the card (it doesn't affect me much, but there is no such problem before the update).

fonol commented 3 years ago

I don't know how to turn on console mode.

If you are on Windows, there should be anki-console.exe in Anki's installation folder. I think on a Mac you should be able to start Anki with anki in the terminal, as on linux.

Also, does the issue persist with other add-ons disabled?

Did you test that?

WangChen-coding commented 3 years ago

After all add ins are disabled, the fields that can be added to the card can be used normally. After switching the card type (including selecting the current type again), the console will report an error in the last line. At this moment, the screenshot cannot be added to the field correctly image (normal) image (Error occurred after switching card type)

fonol commented 3 years ago

Thanks, I think I now know what the problem is. I'll include a fix with the next update.

WangChen-coding commented 3 years ago

excellent! The problem was solved after the update, and the new icon was particularly beautiful