buggood first issuehacktoberfesthacktoberfest2025
Repository metrics
- Stars
- (0 stars)
- PR merge metrics
- (PR metrics pending)
Description
name: Example Bug – Task Completion Not Saved about: There is a major bug with marking tasks as complete in the current To-Do Manager. title: "[Bug]: Task completion not persisted" labels: ["bug", "help wanted", "good first issue"] assignees: ''
Description
When a user marks a task as complete using the complete command, the status message is shown, but the completion is not actually saved to the file. After restarting the script or listing tasks again, the task shows as pending.
Steps to Reproduce
- Add a new task:
- Mark the task as complete:
- List tasks or restart the script:
Expected Behavior
- After marking a task complete, its status should show as Done (or ✅), and this status should remain even after restarting the script.
Actual Behavior
- The message “Task marked complete.” is printed, but the file is not updated, so the task remains pending every time.
Suggested Solution
- Ensure that the function responsible for marking tasks as complete also saves the updated list to the file immediately.
Environment
- OS: Windows 11 / Ubuntu 20.04 / macOS Ventura
- Python version: 3.8+
Additional Context
- Add error handling if the user tries to complete a non-existent task index.