You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at /home/henry/.cargo/registry/src/index.crates.io-6f17d22bba15001f/fluent-resmgr-0.0.7/src/resource_manager.rs:175:56:
called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
With this code:
use fluent_fallback::Localization;use fluent_resmgr::ResourceManager;use unic_langid::langid;fnmain(){let res_mgr = ResourceManager::new("./broken/resources/{locale}/".into());let loc = Localization::with_env(vec!["test.ftl".into()],true,vec![langid!("en-US")],
res_mgr,);let bundles = loc.bundles();letmut errors = vec![];let value = bundles
.format_value_sync("hello-world",None,&mut errors).expect("Failed to format a value");println!("{}", value.unwrap());}
The text was updated successfully, but these errors were encountered:
It does look like some of the setup for the crate tests is leaking into the crate itself. If anybody has a suggestion/PR to fix this I'd facilitate it. So far I've only had time to look and confirm that this seems like an issue that should be fixed.
fluent-rs/fluent-resmgr/src/resource_manager.rs
Line 174 in f2033ce
It seems that if I try to change the path in my program to something like this:
I get this:
With this code:
The text was updated successfully, but these errors were encountered: