anki icon indicating copy to clipboard operation
anki copied to clipboard

CSV import error message is not ideal

Open Arthur-Milchior opened this issue 3 months ago • 4 comments

How to reproduce:

  • Have a empty file empty.csv
  • do file>import and import empty.csv

Actual result:

  • a view titled "Import file", with content "500: The file you selected is empty". and nothing else
Image

Expected:

  • 500 should not be here. It's not user relevant.
  • there should at least be a button to close the view. In practice it can be closed with esc, and I assume other standard shortcut, but it's not discoverable

Arthur-Milchior avatar Sep 17 '25 14:09 Arthur-Milchior

Hi! I’m pretty new to contributing to open source. I’d like to try tackling this issue as my first contribution to Anki, to get familiar to the codebase. I feel like it should be a beginner-friendly issue.

josod827 avatar Sep 17 '25 21:09 josod827

Hi josod827, in my opinion you solution is buggy because you just removed four first letters of message but you what woud occur if source changes from error generetor? your solution is not good, but it works.

medProgAyat avatar Oct 06 '25 08:10 medProgAyat

#4383

medProgAyat avatar Oct 06 '25 15:10 medProgAyat

i solved it in this way

medProgAyat avatar Oct 06 '25 15:10 medProgAyat