XAMPPRocky/fluent-templates

ArcLoader won't work without a top level directory

Open

#41 aperta il 16 feb 2023

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Rust (38 fork)auto 404
buggood first issuehelp wanted

Metriche repository

Star
 (167 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

I spent a while trying to figure out why I was only getting panics trying to follow examples from the docs. I finally narrowed it down to this bit of code:

https://github.com/XAMPPRocky/fluent-templates/blob/66f53a7fc1e165012897861888647f75765a1d50/tests/template.rs#L21

The path from this test tests/locales from the test and examples works, but using "./" or any other iteration I can think of to use $CWD to look for resources ends in a panic.

Guida contributor