Exception after clearing cache, the code tries to delete not existing image file
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 52/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 领域
- mobile-dev
调研方向
检查 cache_store.dart,并找到 issue 中所述的三处 _removeCachedFile 调用。首先跟踪清除缓存和刷新图像的流程,然后通过清除缓存并立即刷新图像来验证行为。报告的异常不再发生即表示完成。
由索引模型根据 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
- 星标
- 812
- 派生
- 511
- 平均合并
- 28 分钟
- 30 天内合并 PR
- 12
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Baseflow/flutter_cache_manager 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
Baseflow/flutter_cache_manager#450 · 9 条评论 · 8 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
Baseflow/flutter_cache_manager#535 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 30/100
Baseflow/flutter_cache_manager#508 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 48/100
Baseflow/flutter_cache_manager#507 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 30/100
Baseflow/flutter_cache_manager#501 · 1 条评论 · 3 个 reaction ·
维护者通常 1 天内回复
查看 Baseflow/flutter_cache_manager 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 92/100
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
atsign-foundation/at_server#2832 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
-
难度 2/5 1-3 小时 新手友好度 90/100
flutter/agent-plugins#244 · 1 条评论 ·