Comments (7)
Thanks for investigating! I'll see how to fix this
from pter.
Tested, seems to work fine, thank you!
from pter.
Strange, I can't reproduce it anymore... @vonshednob Can you?
from pter.
OK, figured it out!
abc xyz 123 due:2024-12-12
<- this kind of task will trigger the bug
2023-01-01 abc xyz 123 due:2024-12-12
<- this kind of task will NOT trigger the bug
Missing creation date seems to be the culprit. I have tasks with and without it.
from pter.
I cannot reproduce the issue, but I cannot archive tasks either 😅 so I'm fixing that bug at least.
I also see how the bug that you describe could be triggered, but I don't understand how pter can get into this type of situation. I'll investigate some more.
from pter.
Ah! I think I understand how this happened. Probably happened every 2nd time you try to archive a task; but the first time it doesn't actually archive it (because that was broken with an update to pytodotxt, I think).
The change is in how pter triggers the detection of a change in the task: task.parse("")
, but with a more recent version(?) of pytodotxt parsing an empty string would not cause any change in the description, thus the task appears unchanged → problems.
Anyway, appears to be fixed for both deletion and archiving (not released yet, but the changes are in the codeberg repo).
from pter.
Probably happened every 2nd time you try to archive a task; but the first time it doesn't actually archive it
I think so, yes. Try to archive the first time -- nothing appears to happen. Try to do it a second time -- pter crashes.
but I don't understand how pter can get into this type of situation
I've migrated my todo.txt from another tool and some of my todos had missing creation dates. That may have been a factor.
Thanks for fixing it, I'll test the code soon.
from pter.
Related Issues (20)
- Commands to increase/decrease due dates HOT 11
- Distraction-free task editing/creation HOT 3
- Patch for help screen HOT 5
- Mouse-wheel scrolling broken after editing a task externally HOT 38
- Patch to fix caret key issues HOT 1
- Patch to improve line editing some more HOT 6
- Patch: UI proofreading/minor editing HOT 7
- Patch to invert completion highlighting HOT 2
- Helpbar improvements (configurable hints and key sorting) HOT 23
- Regression: pter crashes when choosing a filename to save the task to HOT 1
- Distraction-free mode should show task list on "jump-to" action HOT 6
- Bug: chained keybindings do not seem to work on the Help screen HOT 20
- What does "N" (edit note) do? HOT 6
- Request: Add filename in task format? HOT 13
- Add file name completion when searching HOT 8
- Bug: Editor keybindings not dumped? HOT 2
- Centralised archive with multiple todo.txt file HOT 1
- Support for different sources of tasks
- qpter not finding PyQt5 under python3 (No longer easily available under pip install) HOT 4
- new qpter issue (at least on my end!) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pter.