Open Masynchin opened 2 years ago
Interesting. I guess if we use the ignore
crate we better keep the same flags has ripgrep
with the same behavior ...
There's a workaround for this specific case, though:
$ cd venv
$ ruplacer 'from collections import Iterable' 'from collections.abc import Iterable'
Also, (sorry, I have to ask) - are your really trying to use Django 1.11 with Python 3.10? Because in that case, the problem with abc is going to be the least of your problems ...
Also, (sorry, I have to ask) - are you really trying to use Django 1.11 with Python 3.10?
Yes, this was my task from some course that requires to use Django of 1.11 version. I may used python of another version but create script that removes incompatible parts was easier. That is how I found this tool (there was also sd but it seems more complicated to use for editing files).
Problem
I want to patch code of ignored files (dependencies of my python project). But there is no difference with or without
--ignored
-Error: nothing found to replace
. At the same timeripgrep
correctly finds provided pattern.To reproduce
Libs used:
python==3.10.2
ripgrep==13.0.0
(orrg
)ruplacer==0.6.4
It might be overcomplicated, but it is my real situation. Steps to reproduce: