[Feature Request]: print `qenv.error` automatically
还没有人认领这个 Issue。
评估
调研方向
首先追踪 qenv.error 对象是如何创建的,以及在返回其中一个对象时,诸如 join_keys<- 之类的调用是如何进行分派的。确定可以在哪里集中处理自动打印,以及如何在不为每个操作添加一个方法的情况下保持可扩展性;当已为报告的错误情况和相关方法调用定义行为时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Feature description
I'm observing more and more use cases where people don't know how to behave when seeing this:
Error in UseMethod("join_keys<-", x) :
no applicable method for 'join_keys<-' applied to an object of class "c('qenv.error', 'try-error', 'simpleError', 'error', 'condition')"
(or any other method applied on qenv.error class of object)
Usually the only thing they need to do is to print a given object which should have enough information about the error itself. Now I'm thinking if we can do such print automatically and don't ask users to explicitly print it. We can do print right when the error occurs or print on (any) method calls or something else. Please just make sure to make it easily extendable with regard to methods - anti-pattern would be a new methods: join_keys.qenv.error, join_keys<-.qenv.error and so on... That's not very scalable.
Code of Conduct
- I agree to follow this project's Code of Conduct.
Contribution Guidelines
- I agree to follow this project's Contribution Guidelines.
Security Policy
- I agree to follow this project's Security Policy.
- 主要语言
- R
- 星标
- 12
- 派生
- 12
- 平均合并
- 4 天 22 小时
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pharmaverse/teal.code 的其他 Issue
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
pharmaverse/teal.code#305 ·
-
[Feature Request]: High cyclomatic complexity leds to bad readability可能已有人在做 @llrs-roche 于 87 天前认领。 未关闭enhancement
难度 3/5 3-5 天 新手友好度 45/100
pharmaverse/teal.code#295 ·
-
core discussion
难度 5/5 一周以上 新手友好度 25/100
pharmaverse/teal.code#291 · 2 条评论 · 1 个 reaction ·
-
bug core
难度 3/5 1-2 天 新手友好度 45/100
pharmaverse/teal.code#275 ·
-
This is test issue to test copilot capabilities可能已有人在做 @copilot-swe-agent 于 484 天前认领。 未关闭bug
pharmaverse/teal.code#266 · 1 个 reaction · 已指派 1 人 ·
查看 pharmaverse/teal.code 的全部 Issue
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
Bioconductor/BiocParallel#289 ·
-
automation
难度 2/5 1-3 小时 新手友好度 68/100
waldronlab/BugSigDBcuration#2224 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
merliseclyde/BAS#118 ·