Aardwolf-Social / aardwolf

Powering connected social communities with open software.
GNU Affero General Public License v3.0
480 stars 40 forks source link

'compile_i18n!' fails with NotFound #215

Closed nkoehring closed 4 years ago

nkoehring commented 4 years ago
error: proc macro panicked  --> aardwolf-templates/src/lib.rs:42:1
   |
42 | compile_i18n!();
   | ^^^^^^^^^^^^^^^^
   |   = help: message: Couldn't update PO file: Os { code: 2, kind: NotFound, message: "No such file or directory" }

error: aborting due to previous error

error: could not compile `aardwolf-templates`.

This might be related to me using a newer Rust version (1.41.0) or having run cargo update before to make the openssl-sys package work with libressl3. But a simple File Not Found should be something fixable. I unfortunately couldn't figure it out until now. Could somebody hint me the place where these files are mentioned or the file path is constructed?

BanjoFox commented 4 years ago

The PO files are in /aardwolf/po/ I do not see one called Os though.

elegaanz commented 4 years ago

This error message is not very explicit, but this error probably happens because you don't have the gettext tools installed. apt install gettext or equivalent should fix the issue.

nkoehring commented 4 years ago

That is the only thing I didn't try because the gettext-rs crate claims to be a complete reimplementation of gettext that doesn't use any external binaries. But it actually helped with the issue, thanks @AnaGelez !

BanjoFox commented 4 years ago

Looks like we need to update the docs :)