Git Product home page Git Product logo

Comments (7)

vonshednob avatar vonshednob commented on May 24, 2024 1

Thanks for investigating! I'll see how to fix this

from pter.

andrei-a-papou avatar andrei-a-papou commented on May 24, 2024 1

Tested, seems to work fine, thank you!

from pter.

andrei-a-papou avatar andrei-a-papou commented on May 24, 2024

Strange, I can't reproduce it anymore... @vonshednob Can you?

from pter.

andrei-a-papou avatar andrei-a-papou commented on May 24, 2024

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.

vonshednob avatar vonshednob commented on May 24, 2024

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.

vonshednob avatar vonshednob commented on May 24, 2024

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.

andrei-a-papou avatar andrei-a-papou commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.