Closed DarrienG closed 3 years ago
I expected that to happen someday, it's due to serde_json
's Path
serialization serde_json#465. I can certainly "fix" it, in the sense that it won't crash, but the output certainly won't be as correct, I just need to escape the underlying OsString
. I'll work on it soon-ish. In the meantime, sorry for the inconvenience.
Edit : for my own reference :
Serialize
trait impl for Path
here with the reported errorNo worries! This free utility is probably better than what I could write in my own time. I look forward to when the fix is implemented :D
Just a quick FYI.
If you're running yadf
somewhere with non utf-8 paths, I'd advise raising the log level to something like :
yadf -vv path/to/somewhere | script.sh
Where script.sh
consumes the output of yadf
(in whatever chosen format), this will let you see the warnings about those paths more easily. (Or just pipe to /dev/null
)
Looks like there was a problem with a path containing invalid UTF-characters:
This is the second time I ran
yadf
though, and it only crashed with theJsonPretty
option pointing to the same path. This is running on a Synology NAS versionDSM 6.2.3-25426 Update 3
using btrfs file system.