XAMPPRocky/fluent-templates

ArcLoader won't work without a top level directory

Open

#41 opened on Feb 16, 2023

 (3 comments) (0 reactions) (0 assignees)Rust (38 forks)auto 404
buggood first issuehelp wanted

Repository metrics

Stars
 (167 stars)
PR merge metrics
 (Avg merge 17d 14h) (6 merged PRs in 30d)

Description

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.

Contributor guide