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
Hi @FDelporte , Thank you for your efforts in organizing the code in jfxcentral-data. I appreciate the recent updates you made to the DataRepository methods. However, it seems that one of these changes may have introduced a subtle but significant bug. Please see the details below for more information.
Issue Description
After updating from DataRepository2 to DataRepository, a subtle bug affects data loading. It manifests as missing data files and exceptions during operations expecting populated lists.
Complete data loading and observe console errors indicating missing ...people/people.json. (no such file)
IndexOutOfBoundsException in QuickLinksGenerator due to createShuffledSublist returning an empty list.
Suspected Cause
The refactor might have altered the getRepositoryDirectory method's behavior:
When the method is static, the issue does not occur.
When non-static, the error surfaces, suggesting a potential linkage or initialization issue with repository path configurations.
Request
Need a review and potential fix of the getRepositoryDirectory method to ensure stable and correct data loading, considering its crucial role in application operations.
The text was updated successfully, but these errors were encountered:
Thanks for reporting, @leewyatt. I changed this to a static method, and all tests within the data project continue to succeed. It's strange that this error was not revealed by a unit test within the data project itself.
Hi @FDelporte , Thank you for your efforts in organizing the code in
jfxcentral-data
. I appreciate the recent updates you made to theDataRepository
methods. However, it seems that one of these changes may have introduced a subtle but significant bug. Please see the details below for more information.Issue Description
After updating from
DataRepository2
toDataRepository
, a subtle bug affects data loading. It manifests as missing data files and exceptions during operations expecting populated lists.Steps to Reproduce
.jfxcentralrepo
cache file.JFXCentral2App (develop)
. (PR: Change DataRepository2 references to DataRepository jfxcentral2#678 )...people/people.json
. (no such file)IndexOutOfBoundsException
inQuickLinksGenerator
due tocreateShuffledSublist
returning an empty list.Suspected Cause
The refactor might have altered the
getRepositoryDirectory
method's behavior:Request
Need a review and potential fix of the
getRepositoryDirectory
method to ensure stable and correct data loading, considering its crucial role in application operations.The text was updated successfully, but these errors were encountered: