Skip to content

Attempt at fixing LT-22708 - #1122

Open
AndyBlack wants to merge 2 commits into
mainfrom
LT22708
Open

Attempt at fixing LT-22708#1122
AndyBlack wants to merge 2 commits into
mainfrom
LT22708

Conversation

@AndyBlack

@AndyBlack AndyBlack commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Change-Id: I24735bad6cd9e8823a0a028151afdc64722d5a8e
Using XAmple with additional properties can cause a crash per what is in https://jira.sil.org/browse/LT-22708.
This fix has the XAmple parser send a refresh message just after the new list is added. It does cause the Try a Word window to flash and then disappear while the main window also flashes but returns.

I do not know what is causing the Try a Word window to disappear although I suspect it may have to do with the parser running in a separate thread...


This change is Reviewable

Change-Id: I24735bad6cd9e8823a0a028151afdc64722d5a8e
@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

Comment hygiene (advisory)

No comment-style violations in the lines this branch adds since origin/main.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown

NUnit Tests

    1 files  ±0      1 suites  ±0   12m 42s ⏱️ + 1m 3s
6 011 tests ±0  5 930 ✅ ±0  81 💤 ±0  0 ❌ ±0 
6 020 runs  ±0  5 939 ✅ ±0  81 💤 ±0  0 ❌ ±0 

Results for commit bbe9293. ± Comparison against base commit 1ab408b.

♻️ This comment has been updated with latest results.

@codecov-commenter

codecov-commenter commented Sep 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 35.71429% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 38.58%. Comparing base (6f72671) to head (bbe9293).
⚠️ Report is 18 commits behind head on main.

Files with missing lines Patch % Lines
Src/LexText/ParserCore/XAmplePropertiesPreparer.cs 0.00% 8 Missing and 3 partials ⚠️
Src/LexText/ParserCore/XAmpleParser.cs 28.57% 4 Missing and 1 partial ⚠️
...ies/pcpatrflex/ToneParsFLExDll/ToneParsFLExForm.cs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1122      +/-   ##
==========================================
+ Coverage   38.33%   38.58%   +0.24%     
==========================================
  Files        1507     1514       +7     
  Lines      350580   351027     +447     
  Branches    40293    40356      +63     
==========================================
+ Hits       134410   135435    +1025     
+ Misses     186941   186378     -563     
+ Partials    29229    29214      -15     
Files with missing lines Coverage Δ
Src/FwParatextLexiconPlugin/FdoLexicon.cs 62.92% <100.00%> (+0.33%) ⬆️
Src/LexText/ParserCore/ParserWorker.cs 64.07% <100.00%> (ø)
...ies/pcpatrflex/ToneParsFLExDll/ToneParsFLExForm.cs 0.00% <0.00%> (ø)
Src/LexText/ParserCore/XAmpleParser.cs 57.86% <28.57%> (-0.54%) ⬇️
Src/LexText/ParserCore/XAmplePropertiesPreparer.cs 0.00% <0.00%> (ø)

... and 74 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread Src/LexText/ParserCore/XAmplePropertiesPreparer.cs Outdated
Comment thread Src/LexText/ParserCore/XAmplePropertiesPreparer.cs
{
case "XAmple":
m_parser = new XAmpleParser(m_cache, parserDataDir);
// LT-22708 As of 2026.08.26, this is only called within FLEx from FdoLexiconTests.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how expensive would it be to keep this test code out of production code?

@AndyBlack AndyBlack Sep 3, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasonleenaylor Could you reply to this, please? I suspect that this code is used between Paratext and FLEx...

Comment thread Src/LexText/ParserCore/XAmpleParser.cs
Change-Id: Ie7662021a72fe8e6f47d639d2ea4ea05dc54f3d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants