Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

tasklib crashes/hangs when parsing historical dates from Taskwarrior 3.x (SQLite backend)

オープン
#136 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python, sqlite
領域
backend, databases

調査の方向性

まず、SQLiteバックエンドで過去の作成日時を使用して Taskwarrior 3.x の失敗を再現し、その後、タスクの初期化中に tasklib が日付を解析する処理を追跡します。古いタイムスタンプが例外やハングを発生させずに解析され、現代のタイムスタンプは引き続き正常に動作することを確認します。

索引モデルが issue の本文から書いたものです。

説明

Hey guys,

Ran into an edge case where tasklib completely fails to parse a task if it contains an older historical creation date.
How it happens:

If you manually force an old date on a task using task edit (for example, setting Created: 1979-07-14 00:00:00), Taskwarrior 3.x saves it to the SQLite database just fine.

However, when a frontend library like vit tries to initialize and read the tasks via tasklib, it throws this validation error and gets stuck in an infinite loop:
Plaintext

'300769200' is not a valid date in the '' format.

It looks like the internal date parser chokes on the smaller Unix timestamp integer (300769200) coming out of the modern Taskwarrior 3 SQLite backend, treating it as malformed text.

Changing the date back to a modern timestamp via the standard CLI (task modify entry:2026-07-01) fixes the issue immediately, but it would be great if tasklib had a defensive check or fallback format handler here to stop the parser from completely dying on older dates.

主要言語
Python
スター
158
フォーク
29
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GothenburgBitFactory/tasklib のほかの issue

GothenburgBitFactory/tasklib の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。