TODO state cycling doesn't work consistently

Hi there.

I can create simple tasks with

* [ ] my task

and this toggles fine.

When I create a task like this:

* [TODO] my other task

I think I’m supposed to be able to toggle the state by clicking on the [TODO], but this doesn’t happen for me:

In the console the same message repeats when I click the todo state:

Using 0.9.2 on macOS - Firefox and Edge.

Thank you!

Nick

… and yet briefly, after posting this, it did work - at least, toggled between two states (I think TODO and IN PROGRESS, can’t be sure). Then not.

Then a few mins later - notice that if I change the state within the square brackets from e.g. TODO to DONE I can toggle by clicking; although at some point this stops happening. Alt-T sometimes works, sometimes not.

I noticed an error like ‘todo state DONE not found’ or similar in the console once (but deleted it :man_facepalming: )

The Node Object { type: "TaskState", from: 34, to: 40, children: (3) […], parent: {…} } message in console only appears when the toggling doesn’t work

Same inconsistent behaviour in Debian Bookwork/Edge.

This is just a wild guess: do you have other copies of tasks states, or you have only one pair of TODO and DONE? ( then task change state simply erases one)
I don’t use states, but it sure worked when I had „a copy o possible states” one one page, then the cycling worked through the whole space.

Sorry what do you mean? I don’t have any definitions of task states (was wondering how that was achieved)

Have created a new page and things seem to work a little more reproducibly for now … :man_shrugging:

… although would like to know how the states are defined

As far as I know(figured out) - the states are defined simply by existing.
The moment you switch one state to another, and that would be „the only state copy left”, the state ceases to exist, hence switching back is impossible.
For me that was try and error for reaching that conclusion, can’t help you more with that- but I know the manual is unclear in terms of the state’s mechanism.

1 Like

By Jove you’ve cracked it! This is a very flexible way of arranging things I guess but doesn’t quite pass the Principle of Least Astonishment test