I ran into this following the instructions in the Example section on the crates.io page:
$ ucd-generate property-bool /tmp/ucd-10.0.0 --include Hyphen,Dash,Quotation_Mark --chars
No such file or directory (os error 2)
I had to dig into the code to figure out what was going on. The missing file is emoji-data.txt.
I reproduced this behavior with both version 0.2.1 (cargo install) and current master (b56d7f3f0c4e9a2a8c50023baa290a494191a0d5).
I would have expected:
The instruction on crates.io to not run into file-not-found errors. Maybe a first example that doesn't require emoji-data.txt?
A more discoverable instruction for downloading emoji-data.txt. Maybe an adapted version of the note in emoji_properties.rs in the Example section, along with some hints for when it's needed and which version to pick?
Path-related error messages to spell out the troublesome path. Maybe relative to <ucd-dir>?
If you like I could make a PR to spell out the relevant path in error messages?
I ran into this following the instructions in the Example section on the crates.io page:
I had to dig into the code to figure out what was going on. The missing file is
emoji-data.txt
.I reproduced this behavior with both version 0.2.1 (cargo install) and current master (b56d7f3f0c4e9a2a8c50023baa290a494191a0d5).
I would have expected:
emoji-data.txt
?emoji-data.txt
. Maybe an adapted version of the note inemoji_properties.rs
in the Example section, along with some hints for when it's needed and which version to pick?<ucd-dir>
?If you like I could make a PR to spell out the relevant path in error messages?