Skip to content
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

[Formatter]: Failure to parse files containing Raw strings #255

Open
eitsupi opened this issue Feb 22, 2025 · 3 comments
Open

[Formatter]: Failure to parse files containing Raw strings #255

eitsupi opened this issue Feb 22, 2025 · 3 comments

Comments

@eitsupi
Copy link

eitsupi commented Feb 22, 2025

Found in eitsupi/neo-r-polars#73

We have noticed that the formatting of files with the following contents fails. Perhaps it is being tracked upstream, but is there a workaround for now to exclude the files?

tibble::tribble(
  ~.test_name, ~object,
  r"-(` ` = 1, r"(`'")" = 2))-", c(` ` = 1, r"(`'")" = 2),
)
c(r"(You can evaluating the expression with `pl\$select\(\))")
c(r"(candidate=(\w+))")
@etiennebacher
Copy link

I remember reporting something about wrong syntax highlighting in Positron, likely related to r-lib/tree-sitter-r#162

@lionel-
Copy link
Collaborator

lionel- commented Feb 22, 2025

Thanks for the report!

is there a workaround for now to exclude the files?

You can add excludes to your air.toml file: https://posit-dev.github.io/air/configuration.html#exclude

@eitsupi
Copy link
Author

eitsupi commented Feb 22, 2025

Thank you for your quick reply!
We have addressed the above repository with these Raw Strings fixes instead of excluding files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants