-
Notifications
You must be signed in to change notification settings - Fork 186
settings$encoding used before set #2803
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
Comments
Here's the
|
That part's easy enough -- we're doing |
Have something working in |
This was referenced Mar 3, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lintr/R/lint.R
Lines 48 to 62 in a1a2cda
get_lines()
is run beforeread_settings()
but it relies onsettings$encoding
:lintr/R/lint.R
Lines 685 to 691 in a1a2cda
lintr/R/utils.R
Line 161 in a1a2cda
I seem to recall running into issues moving
read_settings()
earlier inlint()
, but this situation seems incorrect.This came up in #2801 -- when trying to move away from manually running
lintr:::read_settings()
in the test, we fail becauseget_source_expressions()
doesn't know the encoding, and neither does moving to accessing the file bylint()
instead help:lintr/tests/testthat/test-get_source_expressions.R
Lines 106 to 110 in a1a2cda
The text was updated successfully, but these errors were encountered: