obsidian-week-planner icon indicating copy to clipboard operation
obsidian-week-planner copied to clipboard

Moving to any date deletes task

Open gypsyav opened this issue 2 years ago • 8 comments

I ran into an issue where moving a task to a specific date causes the task to disappear entirely.

It seems to happen when a new note must be created to move the task to but not when moving the task to an already existing page. It creates a new page but the task is never copied over and the page is blank.

There are no errors in the console to indicate a problem.

gypsyav avatar Jan 20 '23 23:01 gypsyav

Couldn't reproduce. On which OS are you?

rwirdemann avatar Jan 21 '23 13:01 rwirdemann

I'm on linux.

Further testing I discovered it's a conflict with the MAKE.md plugin.

I turned off all plugins and the task was moved correctly. I then enabled the plugins one by one and as soon as I enabled the MAKE.md plugin the issue appeared.

gypsyav avatar Jan 21 '23 16:01 gypsyav

Installed and enabled MAKE.md but still not able to reproduce.

rwirdemann avatar Jan 21 '23 17:01 rwirdemann

That's weird because I can reliably reproduce it every time. If I disable MAKE.md everything works and when I enable it again tasks won't copy over. Now I'm going to be trying to figure out what setting and/or plugin in combination with MAKE.md is causing the issue.

It's not a deal breaker for me. I installed it for only one or two features and don't use it very much. I can just turn it off until I figure out what's going on.

EDIT: The plugin I don't use very much and can turn off is MAKE.md. This plugin is more useful to me.

gypsyav avatar Jan 21 '23 22:01 gypsyav

Did you check your filesystem for the newly created file? Since MAKE.md maintains its own sort order it's sometimes hard to find the newly created file in the MAKE.md explorer view. That's what I found out.

rwirdemann avatar Jan 22 '23 09:01 rwirdemann

The file is created, that's not the issue. The issue is the new file that is created is blank. The task is removed from whichever file it was originally in and is not added to the newly created file.

If the file exists before the task is moved there is no problem. The task is moved correctly.

For example:

I have these files before moving a task 2023-01-16-Monday 2023-01-17-Tuesday 2023-01-18-Wednesday

I move a task This works Move from 2023-01-16 to 2023-01-17 New file listing 2023-01-16-Monday - This file is correct. The task has been removed 2023-01-17-Tuesday - This file is correct. The task has been added 2023-01-18-Wednesday - This file is correct. No Change

This does not work Move from 2023-01-16 to 2023-01-19 New file listing 2023-01-16-Monday - This file is correct. The task has been removed 2023-01-17-Tuesday - this file is correct. No Change 2023-01-18-Wednesday - This file is correct. No Change 2023-01-19-Thursday - This file has been created but is blank. The task does not show up.

This only happens to me when MAKE.md is enabled. It works as expected if that plugin is not enabled.

gypsyav avatar Jan 22 '23 16:01 gypsyav

Still not able to reproduce. Could be an OS-related issue (don't think so), or some side effect that doesn't exist in my current version, that includes some changes. I'm going to release a new version by the end of the week.

rwirdemann avatar Jan 23 '23 08:01 rwirdemann

I'll give using MAKE.md another try when you release the next version. If I wasn't able to reliably reproduce this in my vault every time I'd think I was crazy.

gypsyav avatar Jan 23 '23 15:01 gypsyav