Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read string beyond 1000 characters #170

Open
GetPsyched opened this issue Aug 10, 2021 · 1 comment
Open

Cannot read string beyond 1000 characters #170

GetPsyched opened this issue Aug 10, 2021 · 1 comment
Labels
bug fluent.runtime Issues related to the fluent.runtime module. help wanted

Comments

@GetPsyched
Copy link

When trying to access a string with the format_value() method, it returns the string normally given it's a relatively short string. But if a string longer than 73 lines is entered, it returns {???} instead of said string. PFA test case which will help reproduce the bug here.

@zbraniecki
Copy link
Collaborator

Python resolver has a hard limit on number of characters in a pattern part:

That limit results in any pattern part that is longer than 1000 characters to be rejected.

This behavior is unique to Python implementation of Fluent and has no equivalent in Rust or JS versions.

@zbraniecki zbraniecki added bug fluent.runtime Issues related to the fluent.runtime module. help wanted labels Aug 10, 2021
@GetPsyched GetPsyched changed the title Cannot read string beyond 73 lines Cannot read string beyond 1000 characters Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fluent.runtime Issues related to the fluent.runtime module. help wanted
Projects
None yet
Development

No branches or pull requests

2 participants