ransome1 / sleek

todo.txt manager for Linux, Windows and MacOS, free and open-source (FOSS)
https://github.com/ransome1/sleek/wiki
MIT License
1.35k stars 105 forks source link

Can't archive (done.txt is not created) on Mac OS #400

Closed naunan closed 1 year ago

naunan commented 2 years ago

Sleek Version 1.2.1 (Github prebuilt version) Mac OS 12.4

Steps to reproduce:

  1. Create a task
  2. Check task to mark it done
  3. Click the "Archive" button on the task
  4. Confirm the "All completed todos will be moved from this file to a done.txt file in the same directory" question with "Confirm"

Result: The question prompt will disappear and no done.txt file will be written.

Expected result: done.txt should be written

Note: Things I tried:

khangdx1998 commented 2 years ago

Same issue in Linux

jminnamon commented 2 years ago

Same issue in Windows 10

CPUGPU commented 2 years ago

I think it's looking for the done file to already exist. I started sleek from the console and got this message when attempting to archive:

Error occurred in handler for 'getContent': Error in getContent(): Error: ENOENT: no such file or directory, open '/mnt/linox/home/[redacted]/syncmobile/tasklists/todo_done.txt'

I manually created "todo_done.txt" file and selected alt -> Todos -> Archive -> Confirm and all of the completed tasks were moved to the new file. Also received this message in the console:

Info: File /mnt/linox/home/[redacted]/syncmobile/tasklists/todo.txt has changed

Repeated the process on another file with a different name. Same steps, same results, same resolution.

The workaround until it's fixed is manually create the xxxx_done.txt file.

ransome1 commented 1 year ago

@jminnamon @khangdx1998 @CPUGPU @naunan hey guys, thanks again for reporting this. Can I ask you to check this pre-release, if the error still occurs?

https://github.com/ransome1/sleek/releases/tag/v1.2.3-rc.2

naunan commented 1 year ago

@ransome1 works for me with this release! todo_done.txt with the expected contents is created. Also works for differently named todo lists.

ransome1 commented 1 year ago

Has been released with https://github.com/ransome1/sleek/releases/tag/v1.2.3, I'm closing here.

CPUGPU commented 1 year ago

Confirmed working as expected. Thank you!

But looks like a new display bug has appeared: Any task with priority now shows on two rows. I'll open an issue.

ransome1 commented 1 year ago

But looks like a new display bug has appeared: Any task with priority now shows on two rows. I'll open an issue.

Yes please, that would be nice.