-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New tasks sometimes don't get saved #1138
Comments
I can repro with old commits too, which could indicate something wrong with my test setup. Like I didn't clean a build folder or something. Except that I can also repro one the 0.7-dev-20240913 flatpak! Even installed from scratch. I did the following:
Then run the flatpak, click the +, give a random title, close the modal. The task isn't anywhere to be found (in the app or in the data file). Fascinating bug. Is anyone able to reproduce it or should I just toss my laptop into the ocean? :) |
Curiouser and curiouser. This has happened on my work computer too, and it's running an old (1-2 months) flatpak. |
Hi @SqAtx,
It is indeed exciting. No need to toss your laptop into the ocean, I don't think the turtles would like it. 🐢 😉 I started logging the input and the return value of the |
Yep, seeing the same thing.
and amazingly, Interestingly, if I pre-select a tag before clicking the + to create the task, the I noticed that when the problem happens, |
Good points! If I see the situation correctly, we should just ensure that each (Fun fact regarding the inconsistent reproducibility: if you stop for 5 seconds while typing your new task title, it is saved as expected.) |
Ahhh that must be it! Pretty sure we save periodically. And likely we also save when automatically adding tags in the scenario I described above. But as you say, I guess we're not saving when the editor gets closed and before doing anything else. That would be good news. If the auto save happens every 5 seconds as you describe, then this is not a very common problem and that's why I'd rarely seen it outside of tests. |
The problem seems to be that within We can't just blindly call I wonder if Anyway that's all the time I had for today. Writing notes for future me. |
Create a task using the + in the top left
Upon closing the modal, the task doesn't get created.
The Quick Add at the bottom works.
I'll
git bisect
to figure out when this broke.GTG: 0.7-dev-8a8d7497
Flatpak: False
Snap: False
Display Name: wayland-0
Desktop: ubuntu:GNOME
lxml: True
caldav: True
liblarch: False
Cheetah3: False
dbus-python: False
pdflatex: False
pypdftk: False
OS: Ubuntu 24.04 LTS
Python: CPython 3.12.3
GLib: 2.80.0
PyGLib: 3.48.2
PyGObject: 3.48.2
GTK: 4.2.14
The text was updated successfully, but these errors were encountered: