Use `task id:… op` and `task uuid:… op` for robustness
まだ誰も着手していません。
評価
調査の方向性
tasklib/backends.py の 408 行目付近から始め、tasklib が taskwarrior フィルターを構築している他の箇所を調べます。Issue にある UUID の例を再現し、その後、影響を受けるフィルターが明示的な uuid: または id: プレフィックスを使用し、報告されたパーサーエラーをもう発生させないことを確認します。
索引モデルが issue の本文から書いたものです。
説明
taskwiki tests uncovered that some UUID aren't parsed as UUIDs:
$ task 0003717d-b325-4fd1-8367-7492996250df export
Cannot subtract strings
$ task 0000000d-000a-0000-0000-000000000000 export
Cannot subtract strings
$ task 0000000d-0000-0000-0000-000000000000 export
The expression could not be evaluated.
This was reported to taskwarrior as https://github.com/GothenburgBitFactory/taskwarrior/issues/2306 but looking at the project activity I'm afraid it might stay unfixed for a while, and I'm not feeling confident enough to reorder the lexer myself. Therefore I suggest that tasklib use a more explicit form of filter to avoid hitting this bug.
So I'd suggest to alter https://github.com/robgolding/tasklib/blob/670836f56f8072cae112c4d1bf1b872472150b50/tasklib/backends.py#L408 (and a few other places) to include an explicit uuid: or id: prefix to help the taskwarrior parser do the correct thing.
- 主要言語
- Python
- スター
- 158
- フォーク
- 29
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GothenburgBitFactory/tasklib のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
GothenburgBitFactory/tasklib#136 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
GothenburgBitFactory/tasklib#135 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
GothenburgBitFactory/tasklib#133 · コメント 1 件 · リアクション 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
GothenburgBitFactory/tasklib#132 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
GothenburgBitFactory/tasklib#131 · コメント 2 件 ·
GothenburgBitFactory/tasklib の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
browser-use/browser-use#5905 ·
-
type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ynput/ayon-python-api#363 ·
-
bug needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
modelscope/FunASR#3728 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
open-compass/opencompass#2655 ·