Adjacent Junks are incorrectly merged
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- localization
Research direction
Start by comparing the syntax parser's Junk handling with fluent.syntax/tests/syntax/fixtures_reference/comments.ftl and fluent.syntax/tests/syntax/fixtures_structure/unclosed.ftl. Run the syntax tests and adjust the boundary behavior so unclosed.ftl produces 4 Junks while the comments fixture continues to split correctly.
Written by the indexing model from the issue text.
Description
Per upstream issue 296, each Junk should end whenever a new line begins with a single character that could be the start of a new Entry (i.e. ^[-#a-zA-Z]). This is working correctly only in the case of potential Comment entries (see comments.ftl where the leading # starts a new Junk) but is incorrect for all other cases such as possible Messages and Terms (see unclosed.ftl which should result in 4 Junks but instead merges 6 junk_lines into 1 Junk).
Note the JavaScript implementation has the same bug.
- Dominant language
- Python
- Stars
- 245
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from projectfluent/python-fluent
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
projectfluent/python-fluent#221 ·
-
Outdated releases Open
Difficulty 5/5 Over a week Newbie friendliness 30/100
projectfluent/python-fluent#219 · 1 comment · 6 reactions ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
projectfluent/python-fluent#172 · 1 reaction ·
-
bug fluent.runtime help wanted
Difficulty 3/5 1-2 days Newbie friendliness 35/100
projectfluent/python-fluent#170 · 1 comment ·
-
bug fluent.runtime help wanted
Difficulty 3/5 1-2 days Newbie friendliness 45/100
projectfluent/python-fluent#169 · 3 reactions ·
All issues in projectfluent/python-fluent
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·