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

Handling parenthesis #255

Open
jeanlucthumm opened this issue Dec 20, 2024 · 2 comments
Open

Handling parenthesis #255

jeanlucthumm opened this issue Dec 20, 2024 · 2 comments

Comments

@jeanlucthumm
Copy link

jeanlucthumm commented Dec 20, 2024

I want to search for ref.read(metrics and replace it with ref.watch(metrics

Since we're using rg for search, I have to do ref.read\(metrics to get the files.

But since we're using sed for replacing which treats escaped parens as significant, we get these errors:

sed "-i" "-E" "28,28s/ref.read\(metrics/ref.watch(metrics/gi" "[file name]"
sed: 1: "28,28s/ref.read\(metric ...": RE error: parentheses not balanced
@windwp
Copy link
Collaborator

windwp commented Dec 23, 2024

Can you switch to using the "oxi"? It requires a build step with Rust.

@jeanlucthumm
Copy link
Author

Is there a non-oxi workaround? If not that's fine, feel free to close

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

2 participants