-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix logger error All unnamed arguments must be length 1
.
#103
Conversation
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good and works well!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 👍 |
glue
fails when receives a vector of length > 1. Message generate with warning could have n-elements andparse_logger_message
would return a vector instead of a single character.Example