Exception after clearing cache, the code tries to delete not existing image file
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- dart, flutter
- 領域
- mobile-dev
調査の方向性
cache_store.dart を調査し、issue で説明されている _removeCachedFile の 3 つの呼び出しを特定します。まずキャッシュのクリアと画像の更新のフローを追跡し、その後、キャッシュをクリアして直ちに画像を更新することで動作を確認します。報告された例外が発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
After executing
await DefaultCacheManager().emptyCache();
to clear cache, and immediately refresh images, I get exceptions in the library code trying to delete non existing files.
I have noticed 3 missing awaits when calling _removeCachedFile in cache_store.dart. Adding the 3 missing awaits solves the issue for me...
I think missing awaits calling _removeCachedFile produces internal awaits not waiting code execution, and that's the reason exceptions trying to delete non existing files, even if the code checked that the file exists.
Can anybody add the missing awaits in the code please?
- 主要言語
- Dart
- スター
- 810
- フォーク
- 510
- 平均マージ
- 2日 2時間
- マージ済み PR(30日)
- 11
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Baseflow/flutter_cache_manager のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Baseflow/flutter_cache_manager#450 · コメント 9 件 · リアクション 8 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 48/100
Baseflow/flutter_cache_manager#507 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
Baseflow/flutter_cache_manager#501 · コメント 1 件 · リアクション 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
Baseflow/flutter_cache_manager#500 · コメント 1 件 · リアクション 3 件 ·
Baseflow/flutter_cache_manager の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
flutter-webrtc/flutter-webrtc#2206 ·
-
[Super Editor][Chat] - Floating editor scaffold does not reset panel height after closing panel オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
a2ui-project/a2ui#2763 ·
-
[FR] 移动评论点赞按钮到左边 オープンenhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
bggRGjQaUbCoE/PiliPlus#3062 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
AOSSIE-Org/Ell-ena#332 ·