Closed nmantani closed 2 months ago
ef command of version 0.6.36 can open relative file path with the -w
option.
$ cd /tmp
$ echo sample > sample.txt
$ ef -w sample.txt
sample
$ ef -w ./sample.txt
sample
$ ef -w ../tmp/sample.txt
sample
$ ef -w /tmp/sample.txt
sample
$
Yes I did toy around with that function quite a bit. I have little time next week so I can't promise a quick fix, but I'll try to get on it ASAP.
Thank you! I can use version 0.6.35 until you will fix it.
Luckily, it was a rather straightforward mistake. I added a regression test and fix, will push out a new release as soon as the tests show green.
Please wait! I think this fix doesn't address the use case where I'm encountering this same issue:
C:\Users\Donald\repositories\refinery>ef C:\Users\Donald\Desktop\install.log
(10:15:25) failure in ef: exception of type ValueError;
'\\\\?\\C:\\Users\\Donald\\Desktop\\install.log' is not in the subpath of '\\\\?\\C:\\Users\\Donald\\repositories\\refinery' OR one path is relative and the other is absolute.
In this case, I'm trying to ef
a file that's not in a subfolder relative to my CWD.
Windows 11 Python 3.11.9 Up-to-date including bugfix
Sorry @Donaldduck8, I move too fast. No worries, I can look into that and push out another release 😅.
I will close this one out as 0.6.37 / 58b3590 resolves the original issue. @Donaldduck8 I will track your issue in #47.
@huettenhain Thank you so much for the quick fix!
Sure thing @nmantani but stay tuned for 0.6.38 once I fixed #47 xD
Description
ef command of version 0.6.36 cannot open relative file path. Version 0.6.35 does not have this issue.
To Reproduce
Environment