fix logger error All unnamed arguments must be length 1.#103
fix logger error All unnamed arguments must be length 1.#103llrs-roche merged 2 commits intomainfrom
All unnamed arguments must be length 1.#103Conversation
Unit Tests Summary 1 files 4 suites 0s ⏱️ Results for commit e25afa4. |
Unit Tests Summary 1 files 4 suites 0s ⏱️ Results for commit 2e8be3a. ♻️ This comment has been updated with latest results. |
llrs-roche
left a comment
There was a problem hiding this comment.
This solves the issue. I get a warning though:
[WARN] 2025-01-14 13:50:54.6885 pid:25376 token:[] teal.code `get_var()` was deprecated in teal.code 0.5.1.
Please use `base::get()` instead.
[1] 1
|
The change fixed the issues because The warning is due to teal.logger::register_logger("teal.code")
teal.logger::register_handlers("teal.code")
q <- teal.code::qenv() |>
within(a <- 1)
q$a
q[["a"]]
get("a", envir = q)But these other methods do not trigger the logging of the deprecation message, without which we cannot get a multiple character vector as a message and see that the Please provide a test to add to the code base so that multiple messages are logged correctly from now on. |
Unit Test Performance DifferenceAdditional test case details
Results for commit 2ad660c ♻️ This comment has been updated with latest results. |
llrs-roche
left a comment
There was a problem hiding this comment.
Looks good and works well!
llrs-roche
left a comment
There was a problem hiding this comment.
Sorry, I forgot to mention this. I think a version bump is in order to make other packages like tmc and tmg depend on this specific version or above (just thinking on the tmg CI failing to resolve dependencies which is something that I got recently locally)
|
@llrs-roche all packages dependent on teal.logger bumped in the DESCRIPTION file. PR's linked to this PR 👍 |
gluefails when receives a vector of length > 1. Message generate with warning could have n-elements andparse_logger_messagewould return a vector instead of a single character.Example