Closed cmaimone closed 2 months ago
Hmm, let me look into this. You are correct in your interpretation, but I could be clearer in the error message, and what to do next.
The expected behavior is that you can't start a new coding session until the previous session has been resolved using --abandon
or --resolve
. If you wanted to fix the problem, you could open the coding file and the corpus file, update the line breaks, and then run --resolve
.
I'll add clarity to the error message, add a few additional tests to confirm the program's behavior and update here when it's complete. Thanks for sticking with this :)
Thank you for identifying this issue. I completely agree with you on its severity: users must not lose their coding work, even if something goes wrong. In release 1.4.2, I have taken several steps to address the issue:
codes.txt
exists. When you run qc code coder --recover
, the existing coding file is opened. I believe this issue can now be closed. If you would like to test these workflows, I suggest:
In all cases, you'll land in an incomplete coding state, and can either recover or abandon.
I tried coding a file. I think I accidentally entered some line breaks. When I closed the file, I got this error:
Since the error didn't explicitly tell me what to do, I tried to code the same file again to fix the issue, but when codes.txt was opened again, it was blank - it had deleted my codes. That would be really frustrating if you coded a whole file and then made a mistake to have the file deleted.